Chromium Code Reviews| Index: src/objects.cc |
| diff --git a/src/objects.cc b/src/objects.cc |
| index a846fba4164c9cf3647cbbd0297365cb8bbd03d2..2cfe8b210d272409b1a0435c914cce37908435aa 100644 |
| --- a/src/objects.cc |
| +++ b/src/objects.cc |
| @@ -15166,6 +15166,13 @@ PropertyCell* GlobalObject::GetPropertyCell(LookupResult* result) { |
| } |
| +PropertyCell* GlobalObject::GetPropertyCell(LookupIterator* lookup) { |
|
Toon Verwaest
2014/07/30 16:54:53
Let the LookupIterator return the cell instead.
Jakob Kummerow
2014/07/31 13:55:51
Done.
|
| + ASSERT(!HasFastProperties()); |
| + Object* value = property_dictionary()->ValueAt(lookup->dictionary_entry()); |
| + return PropertyCell::cast(value); |
| +} |
| + |
| + |
| Handle<PropertyCell> JSGlobalObject::EnsurePropertyCell( |
| Handle<JSGlobalObject> global, |
| Handle<Name> name) { |