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 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
319 // Deoptimization support. | 319 // Deoptimization support. |
320 bool HasDeoptimizationSupport() const { | 320 bool HasDeoptimizationSupport() const { |
321 return GetFlag(kDeoptimizationSupport); | 321 return GetFlag(kDeoptimizationSupport); |
322 } | 322 } |
323 void EnableDeoptimizationSupport() { | 323 void EnableDeoptimizationSupport() { |
324 DCHECK_EQ(BASE, mode_); | 324 DCHECK_EQ(BASE, mode_); |
325 SetFlag(kDeoptimizationSupport); | 325 SetFlag(kDeoptimizationSupport); |
326 } | 326 } |
327 bool ShouldEnsureSpaceForLazyDeopt() { return !IsStub(); } | 327 bool ShouldEnsureSpaceForLazyDeopt() { return !IsStub(); } |
328 | 328 |
329 bool MustReplaceUndefinedReceiverWithGlobalProxy(); | 329 bool ExpectsJSReceiverAsReceiver(); |
330 | 330 |
331 // Determines whether or not to insert a self-optimization header. | 331 // Determines whether or not to insert a self-optimization header. |
332 bool ShouldSelfOptimize(); | 332 bool ShouldSelfOptimize(); |
333 | 333 |
334 void set_deferred_handles(DeferredHandles* deferred_handles) { | 334 void set_deferred_handles(DeferredHandles* deferred_handles) { |
335 DCHECK(deferred_handles_ == NULL); | 335 DCHECK(deferred_handles_ == NULL); |
336 deferred_handles_ = deferred_handles; | 336 deferred_handles_ = deferred_handles; |
337 } | 337 } |
338 | 338 |
339 void ReopenHandlesInNewHandleScope() { | 339 void ReopenHandlesInNewHandleScope() { |
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
722 size_t info_zone_start_allocation_size_; | 722 size_t info_zone_start_allocation_size_; |
723 base::ElapsedTimer timer_; | 723 base::ElapsedTimer timer_; |
724 | 724 |
725 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); | 725 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); |
726 }; | 726 }; |
727 | 727 |
728 } // namespace internal | 728 } // namespace internal |
729 } // namespace v8 | 729 } // namespace v8 |
730 | 730 |
731 #endif // V8_COMPILER_H_ | 731 #endif // V8_COMPILER_H_ |
OLD | NEW |