| 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 666 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 677 | 677 | 
| 678   static bool EnsureCompiled(Handle<JSFunction> function, | 678   static bool EnsureCompiled(Handle<JSFunction> function, | 
| 679                              ClearExceptionFlag flag); | 679                              ClearExceptionFlag flag); | 
| 680 | 680 | 
| 681   static bool EnsureDeoptimizationSupport(CompilationInfo* info); | 681   static bool EnsureDeoptimizationSupport(CompilationInfo* info); | 
| 682 | 682 | 
| 683   static void CompileForLiveEdit(Handle<Script> script); | 683   static void CompileForLiveEdit(Handle<Script> script); | 
| 684 | 684 | 
| 685   // Compile a String source within a context for eval. | 685   // Compile a String source within a context for eval. | 
| 686   MUST_USE_RESULT static MaybeHandle<JSFunction> GetFunctionFromEval( | 686   MUST_USE_RESULT static MaybeHandle<JSFunction> GetFunctionFromEval( | 
| 687       Handle<String> source, | 687       Handle<String> source, Handle<SharedFunctionInfo> outer_info, | 
| 688       Handle<Context> context, | 688       Handle<Context> context, StrictMode strict_mode, | 
| 689       StrictMode strict_mode, | 689       ParseRestriction restriction, int scope_position); | 
| 690       ParseRestriction restriction, |  | 
| 691       int scope_position); |  | 
| 692 | 690 | 
| 693   // Compile a String source within a context. | 691   // Compile a String source within a context. | 
| 694   static Handle<SharedFunctionInfo> CompileScript( | 692   static Handle<SharedFunctionInfo> CompileScript( | 
| 695       Handle<String> source, Handle<Object> script_name, int line_offset, | 693       Handle<String> source, Handle<Object> script_name, int line_offset, | 
| 696       int column_offset, bool is_shared_cross_origin, Handle<Context> context, | 694       int column_offset, bool is_shared_cross_origin, Handle<Context> context, | 
| 697       v8::Extension* extension, ScriptData** cached_data, | 695       v8::Extension* extension, ScriptData** cached_data, | 
| 698       ScriptCompiler::CompileOptions compile_options, | 696       ScriptCompiler::CompileOptions compile_options, | 
| 699       NativesFlag is_natives_code); | 697       NativesFlag is_natives_code); | 
| 700 | 698 | 
| 701   static Handle<SharedFunctionInfo> CompileStreamedScript(CompilationInfo* info, | 699   static Handle<SharedFunctionInfo> CompileStreamedScript(CompilationInfo* info, | 
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 745   Zone zone_; | 743   Zone zone_; | 
| 746   unsigned info_zone_start_allocation_size_; | 744   unsigned info_zone_start_allocation_size_; | 
| 747   base::ElapsedTimer timer_; | 745   base::ElapsedTimer timer_; | 
| 748 | 746 | 
| 749   DISALLOW_COPY_AND_ASSIGN(CompilationPhase); | 747   DISALLOW_COPY_AND_ASSIGN(CompilationPhase); | 
| 750 }; | 748 }; | 
| 751 | 749 | 
| 752 } }  // namespace v8::internal | 750 } }  // namespace v8::internal | 
| 753 | 751 | 
| 754 #endif  // V8_COMPILER_H_ | 752 #endif  // V8_COMPILER_H_ | 
| OLD | NEW | 
|---|