Index: src/rewriter.cc |
=================================================================== |
--- src/rewriter.cc (revision 5322) |
+++ src/rewriter.cc (working copy) |
@@ -106,7 +106,7 @@ |
has_function_literal_ = false; |
node->cond()->set_no_negative_zero(true); |
Visit(node->cond()); |
- node->may_have_function_literal_ = has_function_literal_; |
+ node->set_may_have_function_literal(has_function_literal_); |
Visit(node->body()); |
} |
@@ -119,7 +119,7 @@ |
has_function_literal_ = false; |
node->cond()->set_no_negative_zero(true); |
Visit(node->cond()); |
- node->may_have_function_literal_ = has_function_literal_; |
+ node->set_may_have_function_literal(has_function_literal_); |
} |
Visit(node->body()); |
if (node->next() != NULL) { |
@@ -668,6 +668,11 @@ |
} |
+void AstOptimizer::VisitCompareToNull(CompareToNull* node) { |
+ Visit(node->expression()); |
+} |
+ |
+ |
void AstOptimizer::VisitThisFunction(ThisFunction* node) { |
USE(node); |
} |
@@ -960,6 +965,12 @@ |
} |
+void Processor::VisitCompareToNull(CompareToNull* node) { |
+ USE(node); |
+ UNREACHABLE(); |
+} |
+ |
+ |
void Processor::VisitThisFunction(ThisFunction* node) { |
USE(node); |
UNREACHABLE(); |