Index: src/full-codegen/ia32/full-codegen-ia32.cc |
diff --git a/src/full-codegen/ia32/full-codegen-ia32.cc b/src/full-codegen/ia32/full-codegen-ia32.cc |
index 574c3dbb6efa7a17c96b21b54c2831a62f2ce35b..aa35e49f605a0aa32761336ce4792cb660afe1eb 100644 |
--- a/src/full-codegen/ia32/full-codegen-ia32.cc |
+++ b/src/full-codegen/ia32/full-codegen-ia32.cc |
@@ -490,8 +490,9 @@ void FullCodeGenerator::TestContext::Plug(Handle<Object> lit) const { |
true, |
true_label_, |
false_label_); |
- DCHECK(lit->IsNull() || lit->IsUndefined() || !lit->IsUndetectable()); |
- if (lit->IsUndefined() || lit->IsNull() || lit->IsFalse()) { |
+ DCHECK(lit->IsNull() || lit->IsUndefined(isolate()) || |
+ !lit->IsUndetectable()); |
+ if (lit->IsUndefined(isolate()) || lit->IsNull() || lit->IsFalse()) { |
if (false_label_ != fall_through_) __ jmp(false_label_); |
} else if (lit->IsTrue() || lit->IsJSObject()) { |
if (true_label_ != fall_through_) __ jmp(true_label_); |