5 #ifndef V8_OBJECTS_EMBEDDER_DATA_ARRAY_INL_H_ 6 #define V8_OBJECTS_EMBEDDER_DATA_ARRAY_INL_H_ 8 #include "src/objects/embedder-data-array.h" 11 #include "src/objects/maybe-object-inl.h" 12 #include "src/objects/slots.h" 15 #include "src/objects/object-macros.h" 20 CAST_ACCESSOR2(EmbedderDataArray)
22 SMI_ACCESSORS(EmbedderDataArray, length, kLengthOffset)
24 OBJECT_CONSTRUCTORS_IMPL(EmbedderDataArray, HeapObjectPtr)
26 Address EmbedderDataArray::slots_start() {
27 return FIELD_ADDR(
this, OffsetOfElementAt(0));
30 Address EmbedderDataArray::slots_end() {
31 return FIELD_ADDR(
this, OffsetOfElementAt(length()));
37 #include "src/objects/object-macros-undef.h" 39 #endif // V8_OBJECTS_EMBEDDER_DATA_ARRAY_INL_H_