v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
embedder-data-array-inl.h
Go to the documentation of this file.
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
9// Include the non-inl header before the rest of the headers.
10
15
16// Has to be the last include (doesn't have include guards):
18
19namespace v8 {
20namespace internal {
21
22#include "torque-generated/src/objects/embedder-data-array-tq-inl.inc"
23
24TQ_OBJECT_CONSTRUCTORS_IMPL(EmbedderDataArray)
25
26Address EmbedderDataArray::slots_start() {
27 return field_address(OffsetOfElementAt(0));
28}
29
31 return field_address(OffsetOfElementAt(length()));
32}
33
34} // namespace internal
35} // namespace v8
36
38
39#endif // V8_OBJECTS_EMBEDDER_DATA_ARRAY_INL_H_
static constexpr int OffsetOfElementAt(int index)
#define TQ_OBJECT_CONSTRUCTORS_IMPL(Type)