| 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 "allocation.h" | 8 #include "allocation.h" |
| 9 #include "ast.h" | 9 #include "ast.h" |
| 10 #include "zone.h" | 10 #include "zone.h" |
| (...skipping 645 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 656 ConcurrencyMode mode, | 656 ConcurrencyMode mode, |
| 657 BailoutId osr_ast_id = BailoutId::None()); | 657 BailoutId osr_ast_id = BailoutId::None()); |
| 658 | 658 |
| 659 // Generate and return code from previously queued optimization job. | 659 // Generate and return code from previously queued optimization job. |
| 660 // On failure, return the empty handle. | 660 // On failure, return the empty handle. |
| 661 static Handle<Code> GetConcurrentlyOptimizedCode(OptimizedCompileJob* job); | 661 static Handle<Code> GetConcurrentlyOptimizedCode(OptimizedCompileJob* job); |
| 662 | 662 |
| 663 static void RecordFunctionCompilation(Logger::LogEventsAndTags tag, | 663 static void RecordFunctionCompilation(Logger::LogEventsAndTags tag, |
| 664 CompilationInfo* info, | 664 CompilationInfo* info, |
| 665 Handle<SharedFunctionInfo> shared); | 665 Handle<SharedFunctionInfo> shared); |
| 666 |
| 667 static void Optimize(JSFunction* function, const char* reason); |
| 666 }; | 668 }; |
| 667 | 669 |
| 668 | 670 |
| 669 class CompilationPhase BASE_EMBEDDED { | 671 class CompilationPhase BASE_EMBEDDED { |
| 670 public: | 672 public: |
| 671 CompilationPhase(const char* name, CompilationInfo* info); | 673 CompilationPhase(const char* name, CompilationInfo* info); |
| 672 ~CompilationPhase(); | 674 ~CompilationPhase(); |
| 673 | 675 |
| 674 protected: | 676 protected: |
| 675 bool ShouldProduceTraceOutput() const; | 677 bool ShouldProduceTraceOutput() const; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 686 unsigned info_zone_start_allocation_size_; | 688 unsigned info_zone_start_allocation_size_; |
| 687 ElapsedTimer timer_; | 689 ElapsedTimer timer_; |
| 688 | 690 |
| 689 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); | 691 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); |
| 690 }; | 692 }; |
| 691 | 693 |
| 692 | 694 |
| 693 } } // namespace v8::internal | 695 } } // namespace v8::internal |
| 694 | 696 |
| 695 #endif // V8_COMPILER_H_ | 697 #endif // V8_COMPILER_H_ |
| OLD | NEW |