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 9a0c18cf244ea3e9fc5e9bdb95755b56acd50f92..e9ff060dd82df6e40fd3132a7138b161a11ba21a 100644 |
--- a/src/compiler/js-global-object-specialization.cc |
+++ b/src/compiler/js-global-object-specialization.cc |
@@ -72,7 +72,7 @@ Reduction JSGlobalObjectSpecialization::ReduceJSLoadGlobal(Node* node) { |
// Try to lookup the name on the script context table first (lexical scoping). |
ScriptContextTableLookupResult result; |
if (LookupInScriptContextTable(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, |
@@ -153,7 +153,7 @@ Reduction JSGlobalObjectSpecialization::ReduceJSStoreGlobal(Node* node) { |
// Try to lookup the name on the script context table first (lexical scoping). |
ScriptContextTableLookupResult result; |
if (LookupInScriptContextTable(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), |