| 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;
|
| }
|
|
|