Index: src/rewriter.cc |
diff --git a/src/rewriter.cc b/src/rewriter.cc |
index 861696035ee2d950500ee0f2beef8fe0d60d321d..e870e90806232fc98870f600a8bf86a9454d0700 100644 |
--- a/src/rewriter.cc |
+++ b/src/rewriter.cc |
@@ -15,15 +15,13 @@ namespace internal { |
class Processor: public AstVisitor { |
public: |
- Processor(Variable* result, Zone* zone, AstNode::IdGen* ast_node_id_gen) |
+ Processor(Variable* result, AstValueFactory* ast_value_factory) |
: result_(result), |
result_assigned_(false), |
is_set_(false), |
in_try_(false), |
- // Passing a null AstValueFactory is fine, because Processor doesn't |
- // need to create strings or literals. |
- factory_(zone, NULL, ast_node_id_gen) { |
- InitializeAstVisitor(zone); |
+ factory_(ast_value_factory) { |
+ InitializeAstVisitor(ast_value_factory->zone()); |
} |
virtual ~Processor() { } |
@@ -240,7 +238,7 @@ bool Rewriter::Rewrite(CompilationInfo* info) { |
scope->NewTemporary(info->ast_value_factory()->dot_result_string()); |
// The name string must be internalized at this point. |
DCHECK(!result->name().is_null()); |
- Processor processor(result, info->zone(), info->ast_node_id_gen()); |
+ Processor processor(result, info->ast_value_factory()); |
processor.Process(body); |
if (processor.HasStackOverflow()) return false; |