| 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 #ifndef V8_COMPILER_H_ | 5 #ifndef V8_COMPILER_H_ |
| 6 #define V8_COMPILER_H_ | 6 #define V8_COMPILER_H_ |
| 7 | 7 |
| 8 #include "src/allocation.h" | 8 #include "src/allocation.h" |
| 9 #include "src/ast.h" | 9 #include "src/ast.h" |
| 10 #include "src/bailout-reason.h" | 10 #include "src/bailout-reason.h" |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 bool is_osr() const { return !osr_ast_id_.IsNone(); } | 166 bool is_osr() const { return !osr_ast_id_.IsNone(); } |
| 167 Handle<Code> code() const { return code_; } | 167 Handle<Code> code() const { return code_; } |
| 168 CodeStub* code_stub() const { return code_stub_; } | 168 CodeStub* code_stub() const { return code_stub_; } |
| 169 BailoutId osr_ast_id() const { return osr_ast_id_; } | 169 BailoutId osr_ast_id() const { return osr_ast_id_; } |
| 170 Handle<Code> unoptimized_code() const { return unoptimized_code_; } | 170 Handle<Code> unoptimized_code() const { return unoptimized_code_; } |
| 171 int opt_count() const { return opt_count_; } | 171 int opt_count() const { return opt_count_; } |
| 172 int num_parameters() const; | 172 int num_parameters() const; |
| 173 int num_parameters_including_this() const; | 173 int num_parameters_including_this() const; |
| 174 bool is_this_defined() const; | 174 bool is_this_defined() const; |
| 175 int num_heap_slots() const; | 175 int num_heap_slots() const; |
| 176 Code::Flags flags() const; | |
| 177 | 176 |
| 178 void set_parameter_count(int parameter_count) { | 177 void set_parameter_count(int parameter_count) { |
| 179 DCHECK(IsStub()); | 178 DCHECK(IsStub()); |
| 180 parameter_count_ = parameter_count; | 179 parameter_count_ = parameter_count; |
| 181 } | 180 } |
| 182 | 181 |
| 183 bool is_tracking_positions() const { return track_positions_; } | 182 bool is_tracking_positions() const { return track_positions_; } |
| 184 | 183 |
| 185 bool is_calling() const { | 184 bool is_calling() const { |
| 186 return GetFlag(kDeferredCalling) || GetFlag(kNonDeferredCalling); | 185 return GetFlag(kDeferredCalling) || GetFlag(kNonDeferredCalling); |
| (...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 701 Zone zone_; | 700 Zone zone_; |
| 702 size_t info_zone_start_allocation_size_; | 701 size_t info_zone_start_allocation_size_; |
| 703 base::ElapsedTimer timer_; | 702 base::ElapsedTimer timer_; |
| 704 | 703 |
| 705 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); | 704 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); |
| 706 }; | 705 }; |
| 707 | 706 |
| 708 } } // namespace v8::internal | 707 } } // namespace v8::internal |
| 709 | 708 |
| 710 #endif // V8_COMPILER_H_ | 709 #endif // V8_COMPILER_H_ |
| OLD | NEW |