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

Unified Diff: src/compiler.cc

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/compiler.h ('k') | src/isolate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler.cc
diff --git a/src/compiler.cc b/src/compiler.cc
index e496aee62d6760f3f13325fe5e84147aa1b7a91d..323bea83c375b0bd712de4c36b4df493664ec3e6 100644
--- a/src/compiler.cc
+++ b/src/compiler.cc
@@ -44,8 +44,7 @@ ScriptData::ScriptData(const byte* data, int length)
}
-CompilationInfo::CompilationInfo(Handle<Script> script,
- Zone* zone)
+CompilationInfo::CompilationInfo(Handle<Script> script, Zone* zone)
: flags_(StrictModeField::encode(SLOPPY)),
script_(script),
osr_ast_id_(BailoutId::None()),
@@ -53,7 +52,8 @@ CompilationInfo::CompilationInfo(Handle<Script> script,
this_has_uses_(true),
optimization_id_(-1),
ast_value_factory_(NULL),
- ast_value_factory_owned_(false) {
+ ast_value_factory_owned_(false),
+ ast_node_id_counter_(0) {
Initialize(script->GetIsolate(), BASE, zone);
}
@@ -66,7 +66,8 @@ CompilationInfo::CompilationInfo(Isolate* isolate, Zone* zone)
this_has_uses_(true),
optimization_id_(-1),
ast_value_factory_(NULL),
- ast_value_factory_owned_(false) {
+ ast_value_factory_owned_(false),
+ ast_node_id_counter_(0) {
Initialize(isolate, STUB, zone);
}
@@ -81,13 +82,13 @@ CompilationInfo::CompilationInfo(Handle<SharedFunctionInfo> shared_info,
this_has_uses_(true),
optimization_id_(-1),
ast_value_factory_(NULL),
- ast_value_factory_owned_(false) {
+ ast_value_factory_owned_(false),
+ ast_node_id_counter_(0) {
Initialize(script_->GetIsolate(), BASE, zone);
}
-CompilationInfo::CompilationInfo(Handle<JSFunction> closure,
- Zone* zone)
+CompilationInfo::CompilationInfo(Handle<JSFunction> closure, Zone* zone)
: flags_(StrictModeField::encode(SLOPPY) | IsLazy::encode(true)),
closure_(closure),
shared_info_(Handle<SharedFunctionInfo>(closure->shared())),
@@ -98,13 +99,13 @@ CompilationInfo::CompilationInfo(Handle<JSFunction> closure,
this_has_uses_(true),
optimization_id_(-1),
ast_value_factory_(NULL),
- ast_value_factory_owned_(false) {
+ ast_value_factory_owned_(false),
+ ast_node_id_counter_(0) {
Initialize(script_->GetIsolate(), BASE, zone);
}
-CompilationInfo::CompilationInfo(HydrogenCodeStub* stub,
- Isolate* isolate,
+CompilationInfo::CompilationInfo(HydrogenCodeStub* stub, Isolate* isolate,
Zone* zone)
: flags_(StrictModeField::encode(SLOPPY) | IsLazy::encode(true)),
osr_ast_id_(BailoutId::None()),
@@ -112,7 +113,8 @@ CompilationInfo::CompilationInfo(HydrogenCodeStub* stub,
this_has_uses_(true),
optimization_id_(-1),
ast_value_factory_(NULL),
- ast_value_factory_owned_(false) {
+ ast_value_factory_owned_(false),
+ ast_node_id_counter_(0) {
Initialize(isolate, STUB, zone);
code_stub_ = stub;
}
« src/ast.h ('K') | « src/compiler.h ('k') | src/isolate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698