5 #ifndef V8_OBJECTS_JS_COLLECTION_H_ 6 #define V8_OBJECTS_JS_COLLECTION_H_ 8 #include "src/objects.h" 9 #include "src/objects/ordered-hash-table.h" 12 #include "src/objects/object-macros.h" 20 DECL_ACCESSORS(table,
Object)
23 #define JS_COLLECTION_FIELDS(V) \ 24 V(kTableOffset, kTaggedSize) \ 28 DEFINE_FIELD_OFFSET_CONSTANTS(JSObject::kHeaderSize, JS_COLLECTION_FIELDS)
29 #undef JS_COLLECTION_FIELDS 31 static const int kAddFunctionDescriptorIndex = 3;
50 DISALLOW_IMPLICIT_CONSTRUCTORS(
JSSet);
79 DISALLOW_IMPLICIT_CONSTRUCTORS(
JSMap);
93 inline Object* CurrentValue();
105 DECL_ACCESSORS(table,
Object)
116 #define JS_WEAK_COLLECTION_FIELDS(V) \ 117 V(kTableOffset, kTaggedSize) \ 121 DEFINE_FIELD_OFFSET_CONSTANTS(JSObject::kHeaderSize,
122 JS_WEAK_COLLECTION_FIELDS)
123 #undef JS_WEAK_COLLECTION_FIELDS 125 static const int kAddFunctionDescriptorIndex = 3;
147 DISALLOW_IMPLICIT_CONSTRUCTORS(
JSWeakMap);
160 DISALLOW_IMPLICIT_CONSTRUCTORS(
JSWeakSet);
166 #include "src/objects/object-macros-undef.h" 168 #endif // V8_OBJECTS_JS_COLLECTION_H_