| 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 be3a2ab16a4a13727818a764e3b3f4b7987c4640..27c16d144acf915980c2039ee81b5f2661a2e8d0 100644
|
| --- a/src/full-codegen/x87/full-codegen-x87.cc
|
| +++ b/src/full-codegen/x87/full-codegen-x87.cc
|
| @@ -487,8 +487,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_);
|
|
|