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 | |
307 void set_deferred_handles(DeferredHandles* deferred_handles) { | 304 void set_deferred_handles(DeferredHandles* deferred_handles) { |
308 DCHECK(deferred_handles_ == NULL); | 305 DCHECK(deferred_handles_ == NULL); |
309 deferred_handles_ = deferred_handles; | 306 deferred_handles_ = deferred_handles; |
310 } | 307 } |
311 | 308 |
312 ZoneList<Handle<HeapObject> >* dependencies( | 309 ZoneList<Handle<HeapObject> >* dependencies( |
313 DependentCode::DependencyGroup group) { | 310 DependentCode::DependencyGroup group) { |
314 if (dependencies_[group] == NULL) { | 311 if (dependencies_[group] == NULL) { |
315 dependencies_[group] = new(zone_) ZoneList<Handle<HeapObject> >(2, zone_); | 312 dependencies_[group] = new(zone_) ZoneList<Handle<HeapObject> >(2, zone_); |
316 } | 313 } |
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
751 Zone zone_; | 748 Zone zone_; |
752 unsigned info_zone_start_allocation_size_; | 749 unsigned info_zone_start_allocation_size_; |
753 base::ElapsedTimer timer_; | 750 base::ElapsedTimer timer_; |
754 | 751 |
755 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); | 752 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); |
756 }; | 753 }; |
757 | 754 |
758 } } // namespace v8::internal | 755 } } // namespace v8::internal |
759 | 756 |
760 #endif // V8_COMPILER_H_ | 757 #endif // V8_COMPILER_H_ |
OLD | NEW |