| 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/ast.h" | 9 #include "src/ast/ast.h" |
| 10 #include "src/bailout-reason.h" | 10 #include "src/bailout-reason.h" |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 int num_heap_slots() const; | 109 int num_heap_slots() const; |
| 110 | 110 |
| 111 void set_parameter_count(int parameter_count) { | 111 void set_parameter_count(int parameter_count) { |
| 112 DCHECK(IsStub()); | 112 DCHECK(IsStub()); |
| 113 parameter_count_ = parameter_count; | 113 parameter_count_ = parameter_count; |
| 114 } | 114 } |
| 115 | 115 |
| 116 bool has_bytecode_array() const { return !bytecode_array_.is_null(); } | 116 bool has_bytecode_array() const { return !bytecode_array_.is_null(); } |
| 117 Handle<BytecodeArray> bytecode_array() const { return bytecode_array_; } | 117 Handle<BytecodeArray> bytecode_array() const { return bytecode_array_; } |
| 118 | 118 |
| 119 Handle<AbstractCode> abstract_code() const { |
| 120 return has_bytecode_array() ? Handle<AbstractCode>::cast(bytecode_array()) |
| 121 : Handle<AbstractCode>::cast(code()); |
| 122 } |
| 123 |
| 119 bool is_tracking_positions() const { return track_positions_; } | 124 bool is_tracking_positions() const { return track_positions_; } |
| 120 | 125 |
| 121 bool is_calling() const { | 126 bool is_calling() const { |
| 122 return GetFlag(kDeferredCalling) || GetFlag(kNonDeferredCalling); | 127 return GetFlag(kDeferredCalling) || GetFlag(kNonDeferredCalling); |
| 123 } | 128 } |
| 124 | 129 |
| 125 void MarkAsDeferredCalling() { SetFlag(kDeferredCalling); } | 130 void MarkAsDeferredCalling() { SetFlag(kDeferredCalling); } |
| 126 | 131 |
| 127 bool is_deferred_calling() const { return GetFlag(kDeferredCalling); } | 132 bool is_deferred_calling() const { return GetFlag(kDeferredCalling); } |
| 128 | 133 |
| (...skipping 543 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 672 size_t info_zone_start_allocation_size_; | 677 size_t info_zone_start_allocation_size_; |
| 673 base::ElapsedTimer timer_; | 678 base::ElapsedTimer timer_; |
| 674 | 679 |
| 675 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); | 680 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); |
| 676 }; | 681 }; |
| 677 | 682 |
| 678 } // namespace internal | 683 } // namespace internal |
| 679 } // namespace v8 | 684 } // namespace v8 |
| 680 | 685 |
| 681 #endif // V8_COMPILER_H_ | 686 #endif // V8_COMPILER_H_ |
| OLD | NEW |