| Index: src/objects-inl.h
|
| ===================================================================
|
| --- src/objects-inl.h (revision 7557)
|
| +++ src/objects-inl.h (working copy)
|
| @@ -1200,6 +1200,12 @@
|
| }
|
|
|
|
|
| +int JSObject::GetInternalFieldOffset(int index) {
|
| + ASSERT(index < GetInternalFieldCount() && index >= 0);
|
| + return GetHeaderSize() + (kPointerSize * index);
|
| +}
|
| +
|
| +
|
| Object* JSObject::GetInternalField(int index) {
|
| ASSERT(index < GetInternalFieldCount() && index >= 0);
|
| // Internal objects do follow immediately after the header, whereas in-object
|
| @@ -1251,6 +1257,14 @@
|
| }
|
|
|
|
|
| +int JSObject::GetInObjectPropertyOffset(int index) {
|
| + // Adjust for the number of properties stored in the object.
|
| + index -= map()->inobject_properties();
|
| + ASSERT(index < 0);
|
| + return map()->instance_size() + (index * kPointerSize);
|
| +}
|
| +
|
| +
|
| Object* JSObject::InObjectPropertyAt(int index) {
|
| // Adjust for the number of properties stored in the object.
|
| index -= map()->inobject_properties();
|
|
|