diff options
Diffstat (limited to 'deps/v8/src/objects/frame-array-inl.h')
-rw-r--r-- | deps/v8/src/objects/frame-array-inl.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/deps/v8/src/objects/frame-array-inl.h b/deps/v8/src/objects/frame-array-inl.h index 1e9ac1002e..bd76214464 100644 --- a/deps/v8/src/objects/frame-array-inl.h +++ b/deps/v8/src/objects/frame-array-inl.h @@ -6,6 +6,8 @@ #define V8_OBJECTS_FRAME_ARRAY_INL_H_ #include "src/objects/frame-array.h" + +#include "src/objects/foreign-inl.h" #include "src/wasm/wasm-objects-inl.h" // Has to be the last include (doesn't have include guards): @@ -14,16 +16,17 @@ namespace v8 { namespace internal { +OBJECT_CONSTRUCTORS_IMPL(FrameArray, FixedArray) CAST_ACCESSOR(FrameArray) #define DEFINE_FRAME_ARRAY_ACCESSORS(name, type) \ - type* FrameArray::name(int frame_ix) const { \ - Object* obj = \ + type FrameArray::name(int frame_ix) const { \ + Object obj = \ get(kFirstIndex + frame_ix * kElementsPerFrame + k##name##Offset); \ return type::cast(obj); \ } \ \ - void FrameArray::Set##name(int frame_ix, type* value) { \ + void FrameArray::Set##name(int frame_ix, type value) { \ set(kFirstIndex + frame_ix * kElementsPerFrame + k##name##Offset, value); \ } FRAME_ARRAY_FIELD_LIST(DEFINE_FRAME_ARRAY_ACCESSORS) |