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