| Index: src/runtime/runtime-object.cc
|
| diff --git a/src/runtime/runtime-object.cc b/src/runtime/runtime-object.cc
|
| index be688d2a32cf5dfa901b7e222cb03bee2dc99ae3..c7d4fee44f438475b10ca771d96abe91adf4dad8 100644
|
| --- a/src/runtime/runtime-object.cc
|
| +++ b/src/runtime/runtime-object.cc
|
| @@ -423,8 +423,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);
|
| @@ -458,8 +457,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);
|
|
|