Index: src/interpreter/bytecode-generator.cc |
diff --git a/src/interpreter/bytecode-generator.cc b/src/interpreter/bytecode-generator.cc |
index f4ee9f49f5d98c6f36f8f0fa4ef3bd284acc962c..044cf16f664946c1d525787522ce65372e530ff6 100644 |
--- a/src/interpreter/bytecode-generator.cc |
+++ b/src/interpreter/bytecode-generator.cc |
@@ -1514,7 +1514,7 @@ void BytecodeGenerator::VisitLiteral(Literal* expr) { |
Handle<Object> value = expr->value(); |
if (value->IsSmi()) { |
builder()->LoadLiteral(Smi::cast(*value)); |
- } else if (value->IsUndefined()) { |
+ } else if (value->IsUndefined(isolate())) { |
builder()->LoadUndefined(); |
} else if (value->IsTrue()) { |
builder()->LoadTrue(); |
@@ -1522,7 +1522,7 @@ void BytecodeGenerator::VisitLiteral(Literal* expr) { |
builder()->LoadFalse(); |
} else if (value->IsNull()) { |
builder()->LoadNull(); |
- } else if (value->IsTheHole()) { |
+ } else if (value->IsTheHole(isolate())) { |
builder()->LoadTheHole(); |
} else { |
builder()->LoadLiteral(value); |