| Index: src/full-codegen.cc
|
| ===================================================================
|
| --- src/full-codegen.cc (revision 9281)
|
| +++ src/full-codegen.cc (working copy)
|
| @@ -244,11 +244,6 @@
|
| }
|
|
|
|
|
| -void BreakableStatementChecker::VisitCompareToNull(CompareToNull* expr) {
|
| - Visit(expr->expression());
|
| -}
|
| -
|
| -
|
| void BreakableStatementChecker::VisitCompareOperation(CompareOperation* expr) {
|
| Visit(expr->left());
|
| Visit(expr->right());
|
| @@ -1325,6 +1320,7 @@
|
| Label* if_true,
|
| Label* if_false,
|
| Label* fall_through) {
|
| + bool is_strict = compare->op() == Token::EQ_STRICT;
|
| Expression *expr;
|
| Handle<String> check;
|
| if (compare->IsLiteralCompareTypeof(&expr, &check)) {
|
| @@ -1337,6 +1333,11 @@
|
| return true;
|
| }
|
|
|
| + if (compare->IsLiteralCompareNull(&expr)) {
|
| + EmitLiteralCompareNull(expr, is_strict, if_true, if_false, fall_through);
|
| + return true;
|
| + }
|
| +
|
| return false;
|
| }
|
|
|
|
|