Index: src/full-codegen/mips/full-codegen-mips.cc |
diff --git a/src/full-codegen/mips/full-codegen-mips.cc b/src/full-codegen/mips/full-codegen-mips.cc |
index 7312e423d1014e37c9bce96959a60696d808345f..7353030f4ad730459a817b0e9bb54af2bd95707f 100644 |
--- a/src/full-codegen/mips/full-codegen-mips.cc |
+++ b/src/full-codegen/mips/full-codegen-mips.cc |
@@ -531,8 +531,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_) __ Branch(false_label_); |
} else if (lit->IsTrue() || lit->IsJSObject()) { |
if (true_label_ != fall_through_) __ Branch(true_label_); |