| 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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 int opt_count() const { return opt_count_; } | 161 int opt_count() const { return opt_count_; } |
| 162 int num_parameters() const; | 162 int num_parameters() const; |
| 163 int num_heap_slots() const; | 163 int num_heap_slots() const; |
| 164 Code::Flags flags() const; | 164 Code::Flags flags() const; |
| 165 | 165 |
| 166 void set_parameter_count(int parameter_count) { | 166 void set_parameter_count(int parameter_count) { |
| 167 DCHECK(IsStub()); | 167 DCHECK(IsStub()); |
| 168 parameter_count_ = parameter_count; | 168 parameter_count_ = parameter_count; |
| 169 } | 169 } |
| 170 | 170 |
| 171 bool is_tracking_positions() const { return track_positions_; } |
| 172 |
| 171 bool is_calling() const { | 173 bool is_calling() const { |
| 172 return GetFlag(kDeferredCalling) || GetFlag(kNonDeferredCalling); | 174 return GetFlag(kDeferredCalling) || GetFlag(kNonDeferredCalling); |
| 173 } | 175 } |
| 174 | 176 |
| 175 void MarkAsDeferredCalling() { SetFlag(kDeferredCalling); } | 177 void MarkAsDeferredCalling() { SetFlag(kDeferredCalling); } |
| 176 | 178 |
| 177 bool is_deferred_calling() const { return GetFlag(kDeferredCalling); } | 179 bool is_deferred_calling() const { return GetFlag(kDeferredCalling); } |
| 178 | 180 |
| 179 void MarkAsNonDeferredCalling() { SetFlag(kNonDeferredCalling); } | 181 void MarkAsNonDeferredCalling() { SetFlag(kNonDeferredCalling); } |
| 180 | 182 |
| (...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 442 DeferredHandles* deferred_handles_; | 444 DeferredHandles* deferred_handles_; |
| 443 | 445 |
| 444 ZoneList<Handle<HeapObject> >* dependencies_[DependentCode::kGroupCount]; | 446 ZoneList<Handle<HeapObject> >* dependencies_[DependentCode::kGroupCount]; |
| 445 | 447 |
| 446 BailoutReason bailout_reason_; | 448 BailoutReason bailout_reason_; |
| 447 | 449 |
| 448 int prologue_offset_; | 450 int prologue_offset_; |
| 449 | 451 |
| 450 List<OffsetRange>* no_frame_ranges_; | 452 List<OffsetRange>* no_frame_ranges_; |
| 451 std::vector<InlinedFunctionInfo>* inlined_function_infos_; | 453 std::vector<InlinedFunctionInfo>* inlined_function_infos_; |
| 454 bool track_positions_; |
| 452 | 455 |
| 453 // A copy of shared_info()->opt_count() to avoid handle deref | 456 // A copy of shared_info()->opt_count() to avoid handle deref |
| 454 // during graph optimization. | 457 // during graph optimization. |
| 455 int opt_count_; | 458 int opt_count_; |
| 456 | 459 |
| 457 // Number of parameters used for compilation of stubs that require arguments. | 460 // Number of parameters used for compilation of stubs that require arguments. |
| 458 int parameter_count_; | 461 int parameter_count_; |
| 459 | 462 |
| 460 Handle<Foreign> object_wrapper_; | 463 Handle<Foreign> object_wrapper_; |
| 461 | 464 |
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 689 Zone zone_; | 692 Zone zone_; |
| 690 size_t info_zone_start_allocation_size_; | 693 size_t info_zone_start_allocation_size_; |
| 691 base::ElapsedTimer timer_; | 694 base::ElapsedTimer timer_; |
| 692 | 695 |
| 693 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); | 696 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); |
| 694 }; | 697 }; |
| 695 | 698 |
| 696 } } // namespace v8::internal | 699 } } // namespace v8::internal |
| 697 | 700 |
| 698 #endif // V8_COMPILER_H_ | 701 #endif // V8_COMPILER_H_ |
| OLD | NEW |