5 #ifndef V8_OBJECTS_DATA_HANDLER_INL_H_ 6 #define V8_OBJECTS_DATA_HANDLER_INL_H_ 8 #include "src/objects-inl.h" 9 #include "src/objects/data-handler.h" 12 #include "src/objects/object-macros.h" 17 ACCESSORS(DataHandler, smi_handler, Object, kSmiHandlerOffset)
18 ACCESSORS(DataHandler, validity_cell, Object, kValidityCellOffset)
20 int DataHandler::data_field_count()
const {
21 return (map()->instance_size() - kSizeWithData0) / kTaggedSize;
24 WEAK_ACCESSORS_CHECKED(DataHandler, data1, kData1Offset,
25 map()->instance_size() >= kSizeWithData1)
26 WEAK_ACCESSORS_CHECKED(DataHandler, data2, kData2Offset,
27 map()->instance_size() >= kSizeWithData2)
28 WEAK_ACCESSORS_CHECKED(DataHandler, data3, kData3Offset,
29 map()->instance_size() >= kSizeWithData3)
34 #include "src/objects/object-macros-undef.h" 36 #endif // V8_OBJECTS_DATA_HANDLER_INL_H_