diff options
Diffstat (limited to 'deps/v8/src/objects/cell.h')
-rw-r--r-- | deps/v8/src/objects/cell.h | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/deps/v8/src/objects/cell.h b/deps/v8/src/objects/cell.h index 9c77f5d332..fc49f164b2 100644 --- a/deps/v8/src/objects/cell.h +++ b/deps/v8/src/objects/cell.h @@ -6,7 +6,7 @@ #define V8_OBJECTS_CELL_H_ #include "src/objects/heap-object.h" -#include "torque-generated/field-offsets-tq.h" +#include "torque-generated/class-definitions-tq.h" // Has to be the last include (doesn't have include guards): #include "src/objects/object-macros.h" @@ -14,27 +14,18 @@ namespace v8 { namespace internal { -class Cell : public HeapObject { +class Cell : public TorqueGeneratedCell<Cell, HeapObject> { public: - // [value]: value of the cell. - DECL_ACCESSORS(value, Object) - - DECL_CAST(Cell) - static inline Cell FromValueAddress(Address value); inline Address ValueAddress() { return address() + kValueOffset; } // Dispatched behavior. DECL_PRINTER(Cell) - DECL_VERIFIER(Cell) - - DEFINE_FIELD_OFFSET_CONSTANTS(HeapObject::kHeaderSize, - TORQUE_GENERATED_CELL_FIELDS) using BodyDescriptor = FixedBodyDescriptor<kValueOffset, kSize, kSize>; - OBJECT_CONSTRUCTORS(Cell, HeapObject); + TQ_OBJECT_CONSTRUCTORS(Cell) }; } // namespace internal |