Index: src/full-codegen/ppc/full-codegen-ppc.cc |
diff --git a/src/full-codegen/ppc/full-codegen-ppc.cc b/src/full-codegen/ppc/full-codegen-ppc.cc |
index 71c9a059867f6cafb4ec6c58d2424745157949b4..ab24409585a5d67486af3629dd4d1095c4d10658 100644 |
--- a/src/full-codegen/ppc/full-codegen-ppc.cc |
+++ b/src/full-codegen/ppc/full-codegen-ppc.cc |
@@ -516,8 +516,9 @@ void FullCodeGenerator::StackValueContext::Plug(Handle<Object> lit) const { |
void FullCodeGenerator::TestContext::Plug(Handle<Object> lit) const { |
codegen()->PrepareForBailoutBeforeSplit(condition(), 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_); |