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 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
294 | 294 |
295 // Deoptimization support. | 295 // Deoptimization support. |
296 bool HasDeoptimizationSupport() const { | 296 bool HasDeoptimizationSupport() const { |
297 return GetFlag(kDeoptimizationSupport); | 297 return GetFlag(kDeoptimizationSupport); |
298 } | 298 } |
299 void EnableDeoptimizationSupport() { | 299 void EnableDeoptimizationSupport() { |
300 DCHECK(IsOptimizable()); | 300 DCHECK(IsOptimizable()); |
301 SetFlag(kDeoptimizationSupport); | 301 SetFlag(kDeoptimizationSupport); |
302 } | 302 } |
303 | 303 |
| 304 // Determines whether or not to insert a self-optimization header. |
| 305 bool ShouldSelfOptimize(); |
| 306 |
304 void set_deferred_handles(DeferredHandles* deferred_handles) { | 307 void set_deferred_handles(DeferredHandles* deferred_handles) { |
305 DCHECK(deferred_handles_ == NULL); | 308 DCHECK(deferred_handles_ == NULL); |
306 deferred_handles_ = deferred_handles; | 309 deferred_handles_ = deferred_handles; |
307 } | 310 } |
308 | 311 |
309 ZoneList<Handle<HeapObject> >* dependencies( | 312 ZoneList<Handle<HeapObject> >* dependencies( |
310 DependentCode::DependencyGroup group) { | 313 DependentCode::DependencyGroup group) { |
311 if (dependencies_[group] == NULL) { | 314 if (dependencies_[group] == NULL) { |
312 dependencies_[group] = new(zone_) ZoneList<Handle<HeapObject> >(2, zone_); | 315 dependencies_[group] = new(zone_) ZoneList<Handle<HeapObject> >(2, zone_); |
313 } | 316 } |
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
748 Zone zone_; | 751 Zone zone_; |
749 unsigned info_zone_start_allocation_size_; | 752 unsigned info_zone_start_allocation_size_; |
750 base::ElapsedTimer timer_; | 753 base::ElapsedTimer timer_; |
751 | 754 |
752 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); | 755 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); |
753 }; | 756 }; |
754 | 757 |
755 } } // namespace v8::internal | 758 } } // namespace v8::internal |
756 | 759 |
757 #endif // V8_COMPILER_H_ | 760 #endif // V8_COMPILER_H_ |
OLD | NEW |