Index: src/full-codegen/arm/full-codegen-arm.cc |
diff --git a/src/full-codegen/arm/full-codegen-arm.cc b/src/full-codegen/arm/full-codegen-arm.cc |
index b1c53dcfa67bb305ad824461fc742d5bb5e7b051..08cf50acd8bf5b9d06ce9865ca52fb526b5c938b 100644 |
--- a/src/full-codegen/arm/full-codegen-arm.cc |
+++ b/src/full-codegen/arm/full-codegen-arm.cc |
@@ -540,8 +540,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_) __ b(false_label_); |
} else if (lit->IsTrue() || lit->IsJSObject()) { |
if (true_label_ != fall_through_) __ b(true_label_); |