Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(176)

Unified Diff: src/scopes.cc

Issue 490173002: Take ast node id counting away from Isolate. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: rebased Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/rewriter.cc ('k') | src/zone.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/scopes.cc
diff --git a/src/scopes.cc b/src/scopes.cc
index e810d98800dd060a9661e2d3b419a2c03a591712..5a9169547e4fedfec3bf2cc3c07f21cc8a6da5a3 100644
--- a/src/scopes.cc
+++ b/src/scopes.cc
@@ -267,9 +267,8 @@ bool Scope::Analyze(CompilationInfo* info) {
// Allocate the variables.
{
- // Passing NULL as AstValueFactory is ok, because AllocateVariables doesn't
- // need to create new strings or values.
- AstNodeFactory<AstNullVisitor> ast_node_factory(info->zone(), NULL);
+ AstNodeFactory<AstNullVisitor> ast_node_factory(
+ info->zone(), info->ast_value_factory(), info->ast_node_id_gen());
if (!top->AllocateVariables(info, &ast_node_factory)) return false;
}
« no previous file with comments | « src/rewriter.cc ('k') | src/zone.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698