| Index: src/runtime/runtime-object.cc
|
| diff --git a/src/runtime/runtime-object.cc b/src/runtime/runtime-object.cc
|
| index 624708714e5ab813a8c21ee66a452cda179e2ca9..cdaf19ebfc5affb79f6689d4d1816ce67166b91d 100644
|
| --- a/src/runtime/runtime-object.cc
|
| +++ b/src/runtime/runtime-object.cc
|
| @@ -424,8 +424,7 @@ RUNTIME_FUNCTION(Runtime_LoadGlobalViaContext) {
|
| DCHECK(script_context->get(slot)->IsPropertyCell());
|
|
|
| // Lookup the named property on the global object.
|
| - Handle<ScopeInfo> scope_info(ScopeInfo::cast(script_context->extension()),
|
| - isolate);
|
| + Handle<ScopeInfo> scope_info(script_context->scope_info(), isolate);
|
| Handle<Name> name(scope_info->ContextSlotName(slot), isolate);
|
| Handle<GlobalObject> global_object(script_context->global_object(), isolate);
|
| LookupIterator it(global_object, name, LookupIterator::HIDDEN);
|
| @@ -459,8 +458,7 @@ Object* StoreGlobalViaContext(Isolate* isolate, int slot, Handle<Object> value,
|
| DCHECK(script_context->get(slot)->IsPropertyCell());
|
|
|
| // Lookup the named property on the global object.
|
| - Handle<ScopeInfo> scope_info(ScopeInfo::cast(script_context->extension()),
|
| - isolate);
|
| + Handle<ScopeInfo> scope_info(script_context->scope_info(), isolate);
|
| Handle<Name> name(scope_info->ContextSlotName(slot), isolate);
|
| Handle<GlobalObject> global_object(script_context->global_object(), isolate);
|
| LookupIterator it(global_object, name, LookupIterator::HIDDEN);
|
|
|