11cb0ef41Sopenharmony_ci// Copyright 2018 the V8 project authors. All rights reserved. 21cb0ef41Sopenharmony_ci// Use of this source code is governed by a BSD-style license that can be 31cb0ef41Sopenharmony_ci// found in the LICENSE file. 41cb0ef41Sopenharmony_ci 51cb0ef41Sopenharmony_ci#ifndef V8_OBJECTS_EMBEDDER_DATA_ARRAY_INL_H_ 61cb0ef41Sopenharmony_ci#define V8_OBJECTS_EMBEDDER_DATA_ARRAY_INL_H_ 71cb0ef41Sopenharmony_ci 81cb0ef41Sopenharmony_ci#include "src/objects/embedder-data-array.h" 91cb0ef41Sopenharmony_ci#include "src/objects/heap-object-inl.h" 101cb0ef41Sopenharmony_ci#include "src/objects/instance-type-inl.h" 111cb0ef41Sopenharmony_ci#include "src/objects/maybe-object-inl.h" 121cb0ef41Sopenharmony_ci 131cb0ef41Sopenharmony_ci// Has to be the last include (doesn't have include guards): 141cb0ef41Sopenharmony_ci#include "src/objects/object-macros.h" 151cb0ef41Sopenharmony_ci 161cb0ef41Sopenharmony_cinamespace v8 { 171cb0ef41Sopenharmony_cinamespace internal { 181cb0ef41Sopenharmony_ci 191cb0ef41Sopenharmony_ci#include "torque-generated/src/objects/embedder-data-array-tq-inl.inc" 201cb0ef41Sopenharmony_ci 211cb0ef41Sopenharmony_ciTQ_OBJECT_CONSTRUCTORS_IMPL(EmbedderDataArray) 221cb0ef41Sopenharmony_ci 231cb0ef41Sopenharmony_ciAddress EmbedderDataArray::slots_start() { 241cb0ef41Sopenharmony_ci return field_address(OffsetOfElementAt(0)); 251cb0ef41Sopenharmony_ci} 261cb0ef41Sopenharmony_ci 271cb0ef41Sopenharmony_ciAddress EmbedderDataArray::slots_end() { 281cb0ef41Sopenharmony_ci return field_address(OffsetOfElementAt(length())); 291cb0ef41Sopenharmony_ci} 301cb0ef41Sopenharmony_ci 311cb0ef41Sopenharmony_ci} // namespace internal 321cb0ef41Sopenharmony_ci} // namespace v8 331cb0ef41Sopenharmony_ci 341cb0ef41Sopenharmony_ci#include "src/objects/object-macros-undef.h" 351cb0ef41Sopenharmony_ci 361cb0ef41Sopenharmony_ci#endif // V8_OBJECTS_EMBEDDER_DATA_ARRAY_INL_H_ 37