| 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 606 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 617 | 617 |
| 618 // Compile a String source within a context for eval. | 618 // Compile a String source within a context for eval. |
| 619 MUST_USE_RESULT static MaybeHandle<JSFunction> GetFunctionFromEval( | 619 MUST_USE_RESULT static MaybeHandle<JSFunction> GetFunctionFromEval( |
| 620 Handle<String> source, Handle<SharedFunctionInfo> outer_info, | 620 Handle<String> source, Handle<SharedFunctionInfo> outer_info, |
| 621 Handle<Context> context, LanguageMode language_mode, | 621 Handle<Context> context, LanguageMode language_mode, |
| 622 ParseRestriction restriction, int scope_position); | 622 ParseRestriction restriction, int scope_position); |
| 623 | 623 |
| 624 // Compile a String source within a context. | 624 // Compile a String source within a context. |
| 625 static Handle<SharedFunctionInfo> CompileScript( | 625 static Handle<SharedFunctionInfo> CompileScript( |
| 626 Handle<String> source, Handle<Object> script_name, int line_offset, | 626 Handle<String> source, Handle<Object> script_name, int line_offset, |
| 627 int column_offset, bool is_debugger_script, bool is_shared_cross_origin, | 627 int column_offset, ScriptOriginOptions resource_options, |
| 628 Handle<Object> source_map_url, Handle<Context> context, | 628 Handle<Object> source_map_url, Handle<Context> context, |
| 629 v8::Extension* extension, ScriptData** cached_data, | 629 v8::Extension* extension, ScriptData** cached_data, |
| 630 ScriptCompiler::CompileOptions compile_options, | 630 ScriptCompiler::CompileOptions compile_options, |
| 631 NativesFlag is_natives_code, bool is_module); | 631 NativesFlag is_natives_code, bool is_module); |
| 632 | 632 |
| 633 static Handle<SharedFunctionInfo> CompileStreamedScript(Handle<Script> script, | 633 static Handle<SharedFunctionInfo> CompileStreamedScript(Handle<Script> script, |
| 634 ParseInfo* info, | 634 ParseInfo* info, |
| 635 int source_length); | 635 int source_length); |
| 636 | 636 |
| 637 // Create a shared function info object (the code may be lazily compiled). | 637 // Create a shared function info object (the code may be lazily compiled). |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 679 Zone zone_; | 679 Zone zone_; |
| 680 size_t info_zone_start_allocation_size_; | 680 size_t info_zone_start_allocation_size_; |
| 681 base::ElapsedTimer timer_; | 681 base::ElapsedTimer timer_; |
| 682 | 682 |
| 683 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); | 683 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); |
| 684 }; | 684 }; |
| 685 | 685 |
| 686 } } // namespace v8::internal | 686 } } // namespace v8::internal |
| 687 | 687 |
| 688 #endif // V8_COMPILER_H_ | 688 #endif // V8_COMPILER_H_ |
| OLD | NEW |