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 657 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
668 public: | 668 public: |
669 MUST_USE_RESULT static MaybeHandle<Code> GetUnoptimizedCode( | 669 MUST_USE_RESULT static MaybeHandle<Code> GetUnoptimizedCode( |
670 Handle<JSFunction> function); | 670 Handle<JSFunction> function); |
671 MUST_USE_RESULT static MaybeHandle<Code> GetLazyCode( | 671 MUST_USE_RESULT static MaybeHandle<Code> GetLazyCode( |
672 Handle<JSFunction> function); | 672 Handle<JSFunction> function); |
673 MUST_USE_RESULT static MaybeHandle<Code> GetUnoptimizedCode( | 673 MUST_USE_RESULT static MaybeHandle<Code> GetUnoptimizedCode( |
674 Handle<SharedFunctionInfo> shared); | 674 Handle<SharedFunctionInfo> shared); |
675 MUST_USE_RESULT static MaybeHandle<Code> GetDebugCode( | 675 MUST_USE_RESULT static MaybeHandle<Code> GetDebugCode( |
676 Handle<JSFunction> function); | 676 Handle<JSFunction> function); |
677 | 677 |
678 // Parser::Parse, then Compiler::Analyze. | |
679 static bool ParseAndAnalyze(CompilationInfo* info); | |
680 // Rewrite, analyze scopes, and renumber. | |
681 static bool Analyze(CompilationInfo* info); | |
682 | |
678 static bool EnsureCompiled(Handle<JSFunction> function, | 683 static bool EnsureCompiled(Handle<JSFunction> function, |
679 ClearExceptionFlag flag); | 684 ClearExceptionFlag flag); |
680 | 685 |
681 static bool EnsureDeoptimizationSupport(CompilationInfo* info); | 686 static bool EnsureDeoptimizationSupport(CompilationInfo* info); |
Michael Starzinger
2014/10/27 11:41:54
nit: I know it's not part of you change, but can w
wingo
2014/10/27 14:58:09
Done.
| |
682 | 687 |
683 static void CompileForLiveEdit(Handle<Script> script); | 688 static void CompileForLiveEdit(Handle<Script> script); |
684 | 689 |
685 // Compile a String source within a context for eval. | 690 // Compile a String source within a context for eval. |
686 MUST_USE_RESULT static MaybeHandle<JSFunction> GetFunctionFromEval( | 691 MUST_USE_RESULT static MaybeHandle<JSFunction> GetFunctionFromEval( |
687 Handle<String> source, | 692 Handle<String> source, |
688 Handle<Context> context, | 693 Handle<Context> context, |
689 StrictMode strict_mode, | 694 StrictMode strict_mode, |
690 ParseRestriction restriction, | 695 ParseRestriction restriction, |
691 int scope_position); | 696 int scope_position); |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
745 Zone zone_; | 750 Zone zone_; |
746 unsigned info_zone_start_allocation_size_; | 751 unsigned info_zone_start_allocation_size_; |
747 base::ElapsedTimer timer_; | 752 base::ElapsedTimer timer_; |
748 | 753 |
749 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); | 754 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); |
750 }; | 755 }; |
751 | 756 |
752 } } // namespace v8::internal | 757 } } // namespace v8::internal |
753 | 758 |
754 #endif // V8_COMPILER_H_ | 759 #endif // V8_COMPILER_H_ |
OLD | NEW |