Changeset 43461 in webkit for trunk/JavaScriptCore/runtime/JSObject.h
- Timestamp:
- May 10, 2009, 10:32:44 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/runtime/JSObject.h
r43432 r43461 53 53 54 54 typedef EncodedJSValue* PropertyStorage; 55 typedef EncodedJSValue const* ConstPropertyStorage;55 typedef const EncodedJSValue* ConstPropertyStorage; 56 56 57 57 class JSObject : public JSCell { … … 150 150 size_t offsetForLocation(JSValue* location) const 151 151 { 152 return location - reinterpret_cast< JSValue const*>(propertyStorage());153 } 154 155 JSValue const* locationForOffset(size_t offset) const156 { 157 return reinterpret_cast< JSValue const*>(&propertyStorage()[offset]);152 return location - reinterpret_cast<const JSValue*>(propertyStorage()); 153 } 154 155 const JSValue* locationForOffset(size_t offset) const 156 { 157 return reinterpret_cast<const JSValue*>(&propertyStorage()[offset]); 158 158 } 159 159
Note:
See TracChangeset
for help on using the changeset viewer.