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 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
375 void AddInlinedFunction(Handle<SharedFunctionInfo> inlined_function) { | 375 void AddInlinedFunction(Handle<SharedFunctionInfo> inlined_function) { |
376 inlined_functions_.push_back(InlinedFunctionHolder(inlined_function)); | 376 inlined_functions_.push_back(InlinedFunctionHolder(inlined_function)); |
377 } | 377 } |
378 | 378 |
379 base::SmartArrayPointer<char> GetDebugName() const; | 379 base::SmartArrayPointer<char> GetDebugName() const; |
380 | 380 |
381 Code::Kind output_code_kind() const { | 381 Code::Kind output_code_kind() const { |
382 return Code::ExtractKindFromFlags(code_flags_); | 382 return Code::ExtractKindFromFlags(code_flags_); |
383 } | 383 } |
384 | 384 |
| 385 StackFrame::Type GetOutputStackFrameType() const; |
| 386 |
385 protected: | 387 protected: |
386 ParseInfo* parse_info_; | 388 ParseInfo* parse_info_; |
387 | 389 |
388 void DisableFutureOptimization() { | 390 void DisableFutureOptimization() { |
389 if (GetFlag(kDisableFutureOptimization) && has_shared_info()) { | 391 if (GetFlag(kDisableFutureOptimization) && has_shared_info()) { |
390 // If Crankshaft tried to optimize this function, bailed out, and | 392 // If Crankshaft tried to optimize this function, bailed out, and |
391 // doesn't want to try again, then use TurboFan next time. | 393 // doesn't want to try again, then use TurboFan next time. |
392 if (!shared_info()->dont_crankshaft()) { | 394 if (!shared_info()->dont_crankshaft()) { |
393 shared_info()->set_dont_crankshaft(true); | 395 shared_info()->set_dont_crankshaft(true); |
394 if (FLAG_trace_opt) { | 396 if (FLAG_trace_opt) { |
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
665 // Generate and return code from previously queued optimization job. | 667 // Generate and return code from previously queued optimization job. |
666 // On failure, return the empty handle. | 668 // On failure, return the empty handle. |
667 MUST_USE_RESULT static MaybeHandle<Code> GetConcurrentlyOptimizedCode( | 669 MUST_USE_RESULT static MaybeHandle<Code> GetConcurrentlyOptimizedCode( |
668 OptimizedCompileJob* job); | 670 OptimizedCompileJob* job); |
669 }; | 671 }; |
670 | 672 |
671 } // namespace internal | 673 } // namespace internal |
672 } // namespace v8 | 674 } // namespace v8 |
673 | 675 |
674 #endif // V8_COMPILER_H_ | 676 #endif // V8_COMPILER_H_ |
OLD | NEW |