| Index: src/compiler/js-global-object-specialization.cc
|
| diff --git a/src/compiler/js-global-object-specialization.cc b/src/compiler/js-global-object-specialization.cc
|
| index 44f9293ce35fd196fab74a75db1a6d749d3bd5ae..36610d0e199704d3d6b81ab15e7e022419948bfc 100644
|
| --- a/src/compiler/js-global-object-specialization.cc
|
| +++ b/src/compiler/js-global-object-specialization.cc
|
| @@ -61,7 +61,7 @@ Reduction JSGlobalObjectSpecialization::ReduceJSLoadGlobal(Node* node) {
|
| // Try to lookup the name on the script context table first (lexical scoping).
|
| ScriptContextTableLookupResult result;
|
| if (LookupInScriptContextTable(global_object, name, &result)) {
|
| - if (result.context->is_the_hole(result.index)) return NoChange();
|
| + if (result.context->is_the_hole(isolate(), result.index)) return NoChange();
|
| Node* context = jsgraph()->HeapConstant(result.context);
|
| Node* value = effect = graph()->NewNode(
|
| javascript()->LoadContext(0, result.index, result.immutable), context,
|
| @@ -142,7 +142,7 @@ Reduction JSGlobalObjectSpecialization::ReduceJSStoreGlobal(Node* node) {
|
| // Try to lookup the name on the script context table first (lexical scoping).
|
| ScriptContextTableLookupResult result;
|
| if (LookupInScriptContextTable(global_object, name, &result)) {
|
| - if (result.context->is_the_hole(result.index)) return NoChange();
|
| + if (result.context->is_the_hole(isolate(), result.index)) return NoChange();
|
| if (result.immutable) return NoChange();
|
| Node* context = jsgraph()->HeapConstant(result.context);
|
| effect = graph()->NewNode(javascript()->StoreContext(0, result.index),
|
|
|