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 793 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
804 // Compile a String source within a context for eval. | 804 // Compile a String source within a context for eval. |
805 MUST_USE_RESULT static MaybeHandle<JSFunction> GetFunctionFromEval( | 805 MUST_USE_RESULT static MaybeHandle<JSFunction> GetFunctionFromEval( |
806 Handle<String> source, Handle<SharedFunctionInfo> outer_info, | 806 Handle<String> source, Handle<SharedFunctionInfo> outer_info, |
807 Handle<Context> context, LanguageMode language_mode, | 807 Handle<Context> context, LanguageMode language_mode, |
808 ParseRestriction restriction, int scope_position); | 808 ParseRestriction restriction, int scope_position); |
809 | 809 |
810 // Compile a String source within a context. | 810 // Compile a String source within a context. |
811 static Handle<SharedFunctionInfo> CompileScript( | 811 static Handle<SharedFunctionInfo> CompileScript( |
812 Handle<String> source, Handle<Object> script_name, int line_offset, | 812 Handle<String> source, Handle<Object> script_name, int line_offset, |
813 int column_offset, bool is_debugger_script, bool is_shared_cross_origin, | 813 int column_offset, bool is_debugger_script, bool is_shared_cross_origin, |
814 Handle<Context> context, v8::Extension* extension, | 814 Handle<Object> source_map_url, Handle<Context> context, |
815 ScriptData** cached_data, ScriptCompiler::CompileOptions compile_options, | 815 v8::Extension* extension, ScriptData** cached_data, |
| 816 ScriptCompiler::CompileOptions compile_options, |
816 NativesFlag is_natives_code, bool is_module); | 817 NativesFlag is_natives_code, bool is_module); |
817 | 818 |
818 static Handle<SharedFunctionInfo> CompileStreamedScript(CompilationInfo* info, | 819 static Handle<SharedFunctionInfo> CompileStreamedScript(CompilationInfo* info, |
819 int source_length); | 820 int source_length); |
820 | 821 |
821 // Create a shared function info object (the code may be lazily compiled). | 822 // Create a shared function info object (the code may be lazily compiled). |
822 static Handle<SharedFunctionInfo> BuildFunctionInfo(FunctionLiteral* node, | 823 static Handle<SharedFunctionInfo> BuildFunctionInfo(FunctionLiteral* node, |
823 Handle<Script> script, | 824 Handle<Script> script, |
824 CompilationInfo* outer); | 825 CompilationInfo* outer); |
825 | 826 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
862 Zone zone_; | 863 Zone zone_; |
863 size_t info_zone_start_allocation_size_; | 864 size_t info_zone_start_allocation_size_; |
864 base::ElapsedTimer timer_; | 865 base::ElapsedTimer timer_; |
865 | 866 |
866 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); | 867 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); |
867 }; | 868 }; |
868 | 869 |
869 } } // namespace v8::internal | 870 } } // namespace v8::internal |
870 | 871 |
871 #endif // V8_COMPILER_H_ | 872 #endif // V8_COMPILER_H_ |
OLD | NEW |