Index: src/compiler/js-context-specialization.cc |
diff --git a/src/compiler/js-context-specialization.cc b/src/compiler/js-context-specialization.cc |
index 4d9d1d950412321d03cefc884a1f3e6d47476f9d..e02fc49de87f3d54eabb3dde75e6742f5341684e 100644 |
--- a/src/compiler/js-context-specialization.cc |
+++ b/src/compiler/js-context-specialization.cc |
@@ -70,7 +70,7 @@ Reduction JSContextSpecialization::ReduceJSLoadContext(Node* node) { |
// before the function to which it belongs has initialized the slot. |
// We must be conservative and check if the value in the slot is currently the |
// hole or undefined. If it is neither of these, then it must be initialized. |
- if (value->IsUndefined() || value->IsTheHole()) { |
+ if (value->IsUndefined(isolate()) || value->IsTheHole(isolate())) { |
return NoChange(); |
} |