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

Unified Diff: src/compiler.h

Issue 490173002: Take ast node id counting away from Isolate. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: . 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
« src/ast.h ('K') | « src/ast.cc ('k') | src/compiler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler.h
diff --git a/src/compiler.h b/src/compiler.h
index e8beca5a05a68f2230108bec4127c16f5ef189f1..6a875482a65f10a53c13612af340b2f8bc8b0bea 100644
--- a/src/compiler.h
+++ b/src/compiler.h
@@ -365,6 +365,8 @@ class CompilationInfo {
ast_value_factory_owned_ = owned;
}
+ int* ast_node_id_counter() { return &ast_node_id_counter_; }
+
protected:
CompilationInfo(Handle<Script> script,
Zone* zone);
@@ -511,6 +513,7 @@ class CompilationInfo {
AstValueFactory* ast_value_factory_;
bool ast_value_factory_owned_;
+ int ast_node_id_counter_;
DISALLOW_COPY_AND_ASSIGN(CompilationInfo);
};
« src/ast.h ('K') | « src/ast.cc ('k') | src/compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698