| 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 686 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  697  |  697  | 
|  698   // Compile a String source within a context for eval. |  698   // Compile a String source within a context for eval. | 
|  699   MUST_USE_RESULT static MaybeHandle<JSFunction> GetFunctionFromEval( |  699   MUST_USE_RESULT static MaybeHandle<JSFunction> GetFunctionFromEval( | 
|  700       Handle<String> source, Handle<SharedFunctionInfo> outer_info, |  700       Handle<String> source, Handle<SharedFunctionInfo> outer_info, | 
|  701       Handle<Context> context, StrictMode strict_mode, |  701       Handle<Context> context, StrictMode strict_mode, | 
|  702       ParseRestriction restriction, int scope_position); |  702       ParseRestriction restriction, int scope_position); | 
|  703  |  703  | 
|  704   // Compile a String source within a context. |  704   // Compile a String source within a context. | 
|  705   static Handle<SharedFunctionInfo> CompileScript( |  705   static Handle<SharedFunctionInfo> CompileScript( | 
|  706       Handle<String> source, Handle<Object> script_name, int line_offset, |  706       Handle<String> source, Handle<Object> script_name, int line_offset, | 
|  707       int column_offset, bool is_shared_cross_origin, Handle<Context> context, |  707       int column_offset, bool is_debugger_script, bool is_shared_cross_origin, | 
|  708       v8::Extension* extension, ScriptData** cached_data, |  708       Handle<Context> context, v8::Extension* extension, | 
|  709       ScriptCompiler::CompileOptions compile_options, |  709       ScriptData** cached_data, ScriptCompiler::CompileOptions compile_options, | 
|  710       NativesFlag is_natives_code); |  710       NativesFlag is_natives_code); | 
|  711  |  711  | 
|  712   static Handle<SharedFunctionInfo> CompileStreamedScript(CompilationInfo* info, |  712   static Handle<SharedFunctionInfo> CompileStreamedScript(CompilationInfo* info, | 
|  713                                                           int source_length); |  713                                                           int source_length); | 
|  714  |  714  | 
|  715   // Create a shared function info object (the code may be lazily compiled). |  715   // Create a shared function info object (the code may be lazily compiled). | 
|  716   static Handle<SharedFunctionInfo> BuildFunctionInfo(FunctionLiteral* node, |  716   static Handle<SharedFunctionInfo> BuildFunctionInfo(FunctionLiteral* node, | 
|  717                                                       Handle<Script> script, |  717                                                       Handle<Script> script, | 
|  718                                                       CompilationInfo* outer); |  718                                                       CompilationInfo* outer); | 
|  719  |  719  | 
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  756   Zone zone_; |  756   Zone zone_; | 
|  757   unsigned info_zone_start_allocation_size_; |  757   unsigned info_zone_start_allocation_size_; | 
|  758   base::ElapsedTimer timer_; |  758   base::ElapsedTimer timer_; | 
|  759  |  759  | 
|  760   DISALLOW_COPY_AND_ASSIGN(CompilationPhase); |  760   DISALLOW_COPY_AND_ASSIGN(CompilationPhase); | 
|  761 }; |  761 }; | 
|  762  |  762  | 
|  763 } }  // namespace v8::internal |  763 } }  // namespace v8::internal | 
|  764  |  764  | 
|  765 #endif  // V8_COMPILER_H_ |  765 #endif  // V8_COMPILER_H_ | 
| OLD | NEW |