| 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/zone.h" | 10 #include "src/zone.h" |
| (...skipping 694 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 705 MUST_USE_RESULT static MaybeHandle<Code> GetOptimizedCode( | 705 MUST_USE_RESULT static MaybeHandle<Code> GetOptimizedCode( |
| 706 Handle<JSFunction> function, | 706 Handle<JSFunction> function, |
| 707 Handle<Code> current_code, | 707 Handle<Code> current_code, |
| 708 ConcurrencyMode mode, | 708 ConcurrencyMode mode, |
| 709 BailoutId osr_ast_id = BailoutId::None()); | 709 BailoutId osr_ast_id = BailoutId::None()); |
| 710 | 710 |
| 711 // Generate and return code from previously queued optimization job. | 711 // Generate and return code from previously queued optimization job. |
| 712 // On failure, return the empty handle. | 712 // On failure, return the empty handle. |
| 713 static Handle<Code> GetConcurrentlyOptimizedCode(OptimizedCompileJob* job); | 713 static Handle<Code> GetConcurrentlyOptimizedCode(OptimizedCompileJob* job); |
| 714 | 714 |
| 715 static void RecordFunctionCompilation(Logger::LogEventsAndTags tag, | |
| 716 CompilationInfo* info, | |
| 717 Handle<SharedFunctionInfo> shared); | |
| 718 | |
| 719 static bool DebuggerWantsEagerCompilation( | 715 static bool DebuggerWantsEagerCompilation( |
| 720 CompilationInfo* info, bool allow_lazy_without_ctx = false); | 716 CompilationInfo* info, bool allow_lazy_without_ctx = false); |
| 721 }; | 717 }; |
| 722 | 718 |
| 723 | 719 |
| 724 class CompilationPhase BASE_EMBEDDED { | 720 class CompilationPhase BASE_EMBEDDED { |
| 725 public: | 721 public: |
| 726 CompilationPhase(const char* name, CompilationInfo* info); | 722 CompilationPhase(const char* name, CompilationInfo* info); |
| 727 ~CompilationPhase(); | 723 ~CompilationPhase(); |
| 728 | 724 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 740 Zone zone_; | 736 Zone zone_; |
| 741 unsigned info_zone_start_allocation_size_; | 737 unsigned info_zone_start_allocation_size_; |
| 742 base::ElapsedTimer timer_; | 738 base::ElapsedTimer timer_; |
| 743 | 739 |
| 744 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); | 740 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); |
| 745 }; | 741 }; |
| 746 | 742 |
| 747 } } // namespace v8::internal | 743 } } // namespace v8::internal |
| 748 | 744 |
| 749 #endif // V8_COMPILER_H_ | 745 #endif // V8_COMPILER_H_ |
| OLD | NEW |