| 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 643 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 654 // Please note this interface returns shared function infos. This means you | 654 // Please note this interface returns shared function infos. This means you |
| 655 // need to call Factory::NewFunctionFromSharedFunctionInfo before you have a | 655 // need to call Factory::NewFunctionFromSharedFunctionInfo before you have a |
| 656 // real function with a context. | 656 // real function with a context. |
| 657 | 657 |
| 658 class Compiler : public AllStatic { | 658 class Compiler : public AllStatic { |
| 659 public: | 659 public: |
| 660 MUST_USE_RESULT static MaybeHandle<Code> GetUnoptimizedCode( | 660 MUST_USE_RESULT static MaybeHandle<Code> GetUnoptimizedCode( |
| 661 Handle<JSFunction> function); | 661 Handle<JSFunction> function); |
| 662 MUST_USE_RESULT static MaybeHandle<Code> GetUnoptimizedCode( | 662 MUST_USE_RESULT static MaybeHandle<Code> GetUnoptimizedCode( |
| 663 Handle<SharedFunctionInfo> shared); | 663 Handle<SharedFunctionInfo> shared); |
| 664 MUST_USE_RESULT static MaybeHandle<Code> GetCodeForDebugging( |
| 665 Handle<JSFunction> function); |
| 666 |
| 664 static bool EnsureCompiled(Handle<JSFunction> function, | 667 static bool EnsureCompiled(Handle<JSFunction> function, |
| 665 ClearExceptionFlag flag); | 668 ClearExceptionFlag flag); |
| 666 MUST_USE_RESULT static MaybeHandle<Code> GetCodeForDebugging( | 669 |
| 667 Handle<JSFunction> function); | 670 static bool EnsureDeoptimizationSupport(CompilationInfo* info); |
| 668 | 671 |
| 669 static void CompileForLiveEdit(Handle<Script> script); | 672 static void CompileForLiveEdit(Handle<Script> script); |
| 670 | 673 |
| 671 // Compile a String source within a context for eval. | 674 // Compile a String source within a context for eval. |
| 672 MUST_USE_RESULT static MaybeHandle<JSFunction> GetFunctionFromEval( | 675 MUST_USE_RESULT static MaybeHandle<JSFunction> GetFunctionFromEval( |
| 673 Handle<String> source, | 676 Handle<String> source, |
| 674 Handle<Context> context, | 677 Handle<Context> context, |
| 675 StrictMode strict_mode, | 678 StrictMode strict_mode, |
| 676 ParseRestriction restriction, | 679 ParseRestriction restriction, |
| 677 int scope_position); | 680 int scope_position); |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 735 Zone zone_; | 738 Zone zone_; |
| 736 unsigned info_zone_start_allocation_size_; | 739 unsigned info_zone_start_allocation_size_; |
| 737 base::ElapsedTimer timer_; | 740 base::ElapsedTimer timer_; |
| 738 | 741 |
| 739 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); | 742 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); |
| 740 }; | 743 }; |
| 741 | 744 |
| 742 } } // namespace v8::internal | 745 } } // namespace v8::internal |
| 743 | 746 |
| 744 #endif // V8_COMPILER_H_ | 747 #endif // V8_COMPILER_H_ |
| OLD | NEW |