OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "src/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #include "src/compiler.h" | 7 #include "src/compiler.h" |
8 | 8 |
9 #include "src/ast-numbering.h" | 9 #include "src/ast-numbering.h" |
10 #include "src/ast-this-access-visitor.h" | 10 #include "src/ast-this-access-visitor.h" |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 parameter_count_(0), | 106 parameter_count_(0), |
107 optimization_id_(-1), | 107 optimization_id_(-1), |
108 ast_value_factory_(NULL), | 108 ast_value_factory_(NULL), |
109 ast_value_factory_owned_(false), | 109 ast_value_factory_owned_(false), |
110 aborted_due_to_dependency_change_(false), | 110 aborted_due_to_dependency_change_(false), |
111 osr_expr_stack_height_(0) { | 111 osr_expr_stack_height_(0) { |
112 Initialize(script_->GetIsolate(), BASE, zone); | 112 Initialize(script_->GetIsolate(), BASE, zone); |
113 } | 113 } |
114 | 114 |
115 | 115 |
116 CompilationInfo::CompilationInfo(HydrogenCodeStub* stub, Isolate* isolate, | 116 CompilationInfo::CompilationInfo(CodeStub* stub, Isolate* isolate, Zone* zone) |
117 Zone* zone) | |
118 : flags_(kLazy | kThisHasUses), | 117 : flags_(kLazy | kThisHasUses), |
119 source_stream_(NULL), | 118 source_stream_(NULL), |
120 osr_ast_id_(BailoutId::None()), | 119 osr_ast_id_(BailoutId::None()), |
121 parameter_count_(0), | 120 parameter_count_(0), |
122 optimization_id_(-1), | 121 optimization_id_(-1), |
123 ast_value_factory_(NULL), | 122 ast_value_factory_(NULL), |
124 ast_value_factory_owned_(false), | 123 ast_value_factory_owned_(false), |
125 aborted_due_to_dependency_change_(false), | 124 aborted_due_to_dependency_change_(false), |
126 osr_expr_stack_height_(0) { | 125 osr_expr_stack_height_(0) { |
127 Initialize(isolate, STUB, zone); | 126 Initialize(isolate, STUB, zone); |
(...skipping 1488 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1616 } | 1615 } |
1617 | 1616 |
1618 | 1617 |
1619 #if DEBUG | 1618 #if DEBUG |
1620 void CompilationInfo::PrintAstForTesting() { | 1619 void CompilationInfo::PrintAstForTesting() { |
1621 PrintF("--- Source from AST ---\n%s\n", | 1620 PrintF("--- Source from AST ---\n%s\n", |
1622 PrettyPrinter(isolate(), zone()).PrintProgram(function())); | 1621 PrettyPrinter(isolate(), zone()).PrintProgram(function())); |
1623 } | 1622 } |
1624 #endif | 1623 #endif |
1625 } } // namespace v8::internal | 1624 } } // namespace v8::internal |
OLD | NEW |