Index: src/compiler/js-graph.cc |
diff --git a/src/compiler/js-graph.cc b/src/compiler/js-graph.cc |
index e91e62efd385628125f1e572933a6ee8ab41ae21..5d3c220ab20210461788fd76d03a74ab7e68e45d 100644 |
--- a/src/compiler/js-graph.cc |
+++ b/src/compiler/js-graph.cc |
@@ -113,7 +113,7 @@ Node* JSGraph::Constant(Handle<Object> value) { |
// canonicalized node can be used. |
if (value->IsNumber()) { |
return Constant(value->Number()); |
- } else if (value->IsUndefined()) { |
+ } else if (value->IsUndefined(isolate())) { |
return UndefinedConstant(); |
} else if (value->IsTrue()) { |
return TrueConstant(); |
@@ -121,7 +121,7 @@ Node* JSGraph::Constant(Handle<Object> value) { |
return FalseConstant(); |
} else if (value->IsNull()) { |
return NullConstant(); |
- } else if (value->IsTheHole()) { |
+ } else if (value->IsTheHole(isolate())) { |
return TheHoleConstant(); |
} else { |
return HeapConstant(Handle<HeapObject>::cast(value)); |