| Index: src/ia32/full-codegen-ia32.cc
|
| ===================================================================
|
| --- src/ia32/full-codegen-ia32.cc (revision 9281)
|
| +++ src/ia32/full-codegen-ia32.cc (working copy)
|
| @@ -4146,19 +4146,15 @@
|
| }
|
|
|
|
|
| -void FullCodeGenerator::VisitCompareToNull(CompareToNull* expr) {
|
| - Label materialize_true, materialize_false;
|
| - Label* if_true = NULL;
|
| - Label* if_false = NULL;
|
| - Label* fall_through = NULL;
|
| - context()->PrepareTest(&materialize_true, &materialize_false,
|
| - &if_true, &if_false, &fall_through);
|
| -
|
| - VisitForAccumulatorValue(expr->expression());
|
| +void FullCodeGenerator::EmitLiteralCompareNull(Expression* expr,
|
| + bool is_strict,
|
| + Label* if_true,
|
| + Label* if_false,
|
| + Label* fall_through) {
|
| + VisitForAccumulatorValue(expr);
|
| PrepareForBailoutBeforeSplit(TOS_REG, true, if_true, if_false);
|
| -
|
| __ cmp(eax, isolate()->factory()->null_value());
|
| - if (expr->is_strict()) {
|
| + if (is_strict) {
|
| Split(equal, if_true, if_false, fall_through);
|
| } else {
|
| __ j(equal, if_true);
|
| @@ -4171,7 +4167,6 @@
|
| __ test(edx, Immediate(1 << Map::kIsUndetectable));
|
| Split(not_zero, if_true, if_false, fall_through);
|
| }
|
| - context()->Plug(if_true, if_false);
|
| }
|
|
|
|
|
|
|