Index: src/full-codegen/x64/full-codegen-x64.cc |
diff --git a/src/full-codegen/x64/full-codegen-x64.cc b/src/full-codegen/x64/full-codegen-x64.cc |
index f50b0d0896e3c66466147d53c1e8ae8f92f98acb..a56c127eb590f5c48a9204834252376e51fcc1c3 100644 |
--- a/src/full-codegen/x64/full-codegen-x64.cc |
+++ b/src/full-codegen/x64/full-codegen-x64.cc |
@@ -504,11 +504,12 @@ void FullCodeGenerator::TestContext::Plug(Handle<Object> lit) const { |
true, |
true_label_, |
false_label_); |
- DCHECK(lit->IsNull() || lit->IsUndefined(isolate()) || |
+ DCHECK(lit->IsNull(isolate()) || lit->IsUndefined(isolate()) || |
!lit->IsUndetectable()); |
- if (lit->IsUndefined(isolate()) || lit->IsNull() || lit->IsFalse()) { |
+ if (lit->IsUndefined(isolate()) || lit->IsNull(isolate()) || |
+ lit->IsFalse(isolate())) { |
if (false_label_ != fall_through_) __ jmp(false_label_); |
- } else if (lit->IsTrue() || lit->IsJSObject()) { |
+ } else if (lit->IsTrue(isolate()) || lit->IsJSObject()) { |
if (true_label_ != fall_through_) __ jmp(true_label_); |
} else if (lit->IsString()) { |
if (String::cast(*lit)->length() == 0) { |