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 710 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
721 Handle<String> source, Handle<SharedFunctionInfo> outer_info, | 721 Handle<String> source, Handle<SharedFunctionInfo> outer_info, |
722 Handle<Context> context, LanguageMode language_mode, | 722 Handle<Context> context, LanguageMode language_mode, |
723 ParseRestriction restriction, int scope_position); | 723 ParseRestriction restriction, int scope_position); |
724 | 724 |
725 // Compile a String source within a context. | 725 // Compile a String source within a context. |
726 static Handle<SharedFunctionInfo> CompileScript( | 726 static Handle<SharedFunctionInfo> CompileScript( |
727 Handle<String> source, Handle<Object> script_name, int line_offset, | 727 Handle<String> source, Handle<Object> script_name, int line_offset, |
728 int column_offset, bool is_debugger_script, bool is_shared_cross_origin, | 728 int column_offset, bool is_debugger_script, bool is_shared_cross_origin, |
729 Handle<Context> context, v8::Extension* extension, | 729 Handle<Context> context, v8::Extension* extension, |
730 ScriptData** cached_data, ScriptCompiler::CompileOptions compile_options, | 730 ScriptData** cached_data, ScriptCompiler::CompileOptions compile_options, |
731 NativesFlag is_natives_code); | 731 NativesFlag is_natives_code, bool is_module); |
732 | 732 |
733 static Handle<SharedFunctionInfo> CompileStreamedScript(CompilationInfo* info, | 733 static Handle<SharedFunctionInfo> CompileStreamedScript(CompilationInfo* info, |
734 int source_length); | 734 int source_length); |
735 | 735 |
736 // Create a shared function info object (the code may be lazily compiled). | 736 // Create a shared function info object (the code may be lazily compiled). |
737 static Handle<SharedFunctionInfo> BuildFunctionInfo(FunctionLiteral* node, | 737 static Handle<SharedFunctionInfo> BuildFunctionInfo(FunctionLiteral* node, |
738 Handle<Script> script, | 738 Handle<Script> script, |
739 CompilationInfo* outer); | 739 CompilationInfo* outer); |
740 | 740 |
741 enum ConcurrencyMode { NOT_CONCURRENT, CONCURRENT }; | 741 enum ConcurrencyMode { NOT_CONCURRENT, CONCURRENT }; |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
777 Zone zone_; | 777 Zone zone_; |
778 unsigned info_zone_start_allocation_size_; | 778 unsigned info_zone_start_allocation_size_; |
779 base::ElapsedTimer timer_; | 779 base::ElapsedTimer timer_; |
780 | 780 |
781 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); | 781 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); |
782 }; | 782 }; |
783 | 783 |
784 } } // namespace v8::internal | 784 } } // namespace v8::internal |
785 | 785 |
786 #endif // V8_COMPILER_H_ | 786 #endif // V8_COMPILER_H_ |
OLD | NEW |