diff options
Diffstat (limited to 'deps/v8/src/objects/data-handler-inl.h')
-rw-r--r-- | deps/v8/src/objects/data-handler-inl.h | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/deps/v8/src/objects/data-handler-inl.h b/deps/v8/src/objects/data-handler-inl.h index ce9b5682c76..e754e6e68c2 100644 --- a/deps/v8/src/objects/data-handler-inl.h +++ b/deps/v8/src/objects/data-handler-inl.h @@ -5,6 +5,7 @@ #ifndef V8_OBJECTS_DATA_HANDLER_INL_H_ #define V8_OBJECTS_DATA_HANDLER_INL_H_ +#include "src/objects-inl.h" // Needed for write barriers #include "src/objects/data-handler.h" // Has to be the last include (doesn't have include guards): @@ -13,12 +14,6 @@ namespace v8 { namespace internal { -bool HeapObject::IsDataHandler() const { - return IsLoadHandler() || IsStoreHandler(); -} - -CAST_ACCESSOR(DataHandler) - ACCESSORS(DataHandler, smi_handler, Object, kSmiHandlerOffset) ACCESSORS(DataHandler, validity_cell, Object, kValidityCellOffset) @@ -28,10 +23,10 @@ int DataHandler::data_field_count() const { WEAK_ACCESSORS_CHECKED(DataHandler, data1, kData1Offset, map()->instance_size() >= kSizeWithData1) -ACCESSORS_CHECKED(DataHandler, data2, Object, kData2Offset, - map()->instance_size() >= kSizeWithData2) -ACCESSORS_CHECKED(DataHandler, data3, Object, kData3Offset, - map()->instance_size() >= kSizeWithData3) +WEAK_ACCESSORS_CHECKED(DataHandler, data2, kData2Offset, + map()->instance_size() >= kSizeWithData2) +WEAK_ACCESSORS_CHECKED(DataHandler, data3, kData3Offset, + map()->instance_size() >= kSizeWithData3) } // namespace internal } // namespace v8 |