1// Copyright 2018 the V8 project authors. All rights reserved. 2// Use of this source code is governed by a BSD-style license that can be 3// found in the LICENSE file. 4 5#ifndef V8_OBJECTS_EMBEDDER_DATA_ARRAY_INL_H_ 6#define V8_OBJECTS_EMBEDDER_DATA_ARRAY_INL_H_ 7 8#include "src/objects/embedder-data-array.h" 9#include "src/objects/heap-object-inl.h" 10#include "src/objects/instance-type-inl.h" 11#include "src/objects/maybe-object-inl.h" 12 13// Has to be the last include (doesn't have include guards): 14#include "src/objects/object-macros.h" 15 16namespace v8 { 17namespace internal { 18 19#include "torque-generated/src/objects/embedder-data-array-tq-inl.inc" 20 21TQ_OBJECT_CONSTRUCTORS_IMPL(EmbedderDataArray) 22 23Address EmbedderDataArray::slots_start() { 24 return field_address(OffsetOfElementAt(0)); 25} 26 27Address EmbedderDataArray::slots_end() { 28 return field_address(OffsetOfElementAt(length())); 29} 30 31} // namespace internal 32} // namespace v8 33 34#include "src/objects/object-macros-undef.h" 35 36#endif // V8_OBJECTS_EMBEDDER_DATA_ARRAY_INL_H_ 37