| 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 783 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 794 | 794 |
| 795 static bool EnsureCompiled(Handle<JSFunction> function, | 795 static bool EnsureCompiled(Handle<JSFunction> function, |
| 796 ClearExceptionFlag flag); | 796 ClearExceptionFlag flag); |
| 797 | 797 |
| 798 static void CompileForLiveEdit(Handle<Script> script); | 798 static void CompileForLiveEdit(Handle<Script> script); |
| 799 | 799 |
| 800 // Compile a String source within a context for eval. | 800 // Compile a String source within a context for eval. |
| 801 MUST_USE_RESULT static MaybeHandle<JSFunction> GetFunctionFromEval( | 801 MUST_USE_RESULT static MaybeHandle<JSFunction> GetFunctionFromEval( |
| 802 Handle<String> source, Handle<SharedFunctionInfo> outer_info, | 802 Handle<String> source, Handle<SharedFunctionInfo> outer_info, |
| 803 Handle<Context> context, LanguageMode language_mode, | 803 Handle<Context> context, LanguageMode language_mode, |
| 804 ParseRestriction restriction, int scope_position); | 804 ParseRestriction restriction, int line_offset, int column_offset = 0, |
| 805 Handle<Object> script_name = Handle<Object>(), |
| 806 bool is_embedder_debug_script = false, |
| 807 bool is_shared_cross_origin = false); |
| 805 | 808 |
| 806 // Compile a String source within a context. | 809 // Compile a String source within a context. |
| 807 static Handle<SharedFunctionInfo> CompileScript( | 810 static Handle<SharedFunctionInfo> CompileScript( |
| 808 Handle<String> source, Handle<Object> script_name, int line_offset, | 811 Handle<String> source, Handle<Object> script_name, int line_offset, |
| 809 int column_offset, bool is_debugger_script, bool is_shared_cross_origin, | 812 int column_offset, bool is_debugger_script, bool is_shared_cross_origin, |
| 810 Handle<Context> context, v8::Extension* extension, | 813 Handle<Context> context, v8::Extension* extension, |
| 811 ScriptData** cached_data, ScriptCompiler::CompileOptions compile_options, | 814 ScriptData** cached_data, ScriptCompiler::CompileOptions compile_options, |
| 812 NativesFlag is_natives_code, bool is_module); | 815 NativesFlag is_natives_code, bool is_module); |
| 813 | 816 |
| 814 static Handle<SharedFunctionInfo> CompileStreamedScript(CompilationInfo* info, | 817 static Handle<SharedFunctionInfo> CompileStreamedScript(CompilationInfo* info, |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 858 Zone zone_; | 861 Zone zone_; |
| 859 size_t info_zone_start_allocation_size_; | 862 size_t info_zone_start_allocation_size_; |
| 860 base::ElapsedTimer timer_; | 863 base::ElapsedTimer timer_; |
| 861 | 864 |
| 862 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); | 865 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); |
| 863 }; | 866 }; |
| 864 | 867 |
| 865 } } // namespace v8::internal | 868 } } // namespace v8::internal |
| 866 | 869 |
| 867 #endif // V8_COMPILER_H_ | 870 #endif // V8_COMPILER_H_ |
| OLD | NEW |