| Index: src/objects-inl.h
|
| diff --git a/src/objects-inl.h b/src/objects-inl.h
|
| index 2bca797d18a8bc5d33c839e842a0474a33530dbc..9685168f919cd1bfb1ff65cf10b8b77a4763efa8 100644
|
| --- a/src/objects-inl.h
|
| +++ b/src/objects-inl.h
|
| @@ -6957,6 +6957,25 @@ void FlexibleBodyDescriptor<start_offset>::IterateBody(HeapObject* obj,
|
| }
|
|
|
|
|
| +template<class Derived, class TableType>
|
| +Object* OrderedHashTableIterator<Derived, TableType>::CurrentKey() {
|
| + TableType* table(TableType::cast(this->table()));
|
| + int index = Smi::cast(this->index())->value();
|
| + Object* key = table->KeyAt(index);
|
| + ASSERT(!key->IsTheHole());
|
| + return key;
|
| +}
|
| +
|
| +
|
| +Object* JSMapIterator::CurrentValue() {
|
| + OrderedHashMap* table(OrderedHashMap::cast(this->table()));
|
| + int index = Smi::cast(this->index())->value();
|
| + Object* value = table->ValueAt(index);
|
| + ASSERT(!value->IsTheHole());
|
| + return value;
|
| +}
|
| +
|
| +
|
| #undef TYPE_CHECKER
|
| #undef CAST_ACCESSOR
|
| #undef INT_ACCESSORS
|
|
|