Chromium Code Reviews| 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/ast.h" | 9 #include "src/ast/ast.h" |
| 10 #include "src/bailout-reason.h" | 10 #include "src/bailout-reason.h" |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 86 | 86 |
| 87 // Create a shared function info object for a String source within a context. | 87 // Create a shared function info object for a String source within a context. |
| 88 static Handle<SharedFunctionInfo> GetSharedFunctionInfoForScript( | 88 static Handle<SharedFunctionInfo> GetSharedFunctionInfoForScript( |
| 89 Handle<String> source, Handle<Object> script_name, int line_offset, | 89 Handle<String> source, Handle<Object> script_name, int line_offset, |
| 90 int column_offset, ScriptOriginOptions resource_options, | 90 int column_offset, ScriptOriginOptions resource_options, |
| 91 Handle<Object> source_map_url, Handle<Context> context, | 91 Handle<Object> source_map_url, Handle<Context> context, |
| 92 v8::Extension* extension, ScriptData** cached_data, | 92 v8::Extension* extension, ScriptData** cached_data, |
| 93 ScriptCompiler::CompileOptions compile_options, | 93 ScriptCompiler::CompileOptions compile_options, |
| 94 NativesFlag is_natives_code, bool is_module); | 94 NativesFlag is_natives_code, bool is_module); |
| 95 | 95 |
| 96 MUST_USE_RESULT static MaybeHandle<JSFunction> CompileString( | |
|
Michael Starzinger
2016/07/20 12:03:35
Can we call this "GetFunctomFromString" instead. T
Michael Starzinger
2016/07/20 12:05:12
s/GetFunctomFromString/GetFunctionFromString/ of c
jgruber
2016/07/20 12:42:11
Done.
| |
| 97 Handle<Context> context, Handle<String> source, | |
| 98 ParseRestriction restriction); | |
| 99 | |
| 96 // Create a shared function info object for a Script that has already been | 100 // Create a shared function info object for a Script that has already been |
| 97 // parsed while the script was being loaded from a streamed source. | 101 // parsed while the script was being loaded from a streamed source. |
| 98 static Handle<SharedFunctionInfo> GetSharedFunctionInfoForStreamedScript( | 102 static Handle<SharedFunctionInfo> GetSharedFunctionInfoForStreamedScript( |
| 99 Handle<Script> script, ParseInfo* info, int source_length); | 103 Handle<Script> script, ParseInfo* info, int source_length); |
| 100 | 104 |
| 101 // Create a shared function info object (the code may be lazily compiled). | 105 // Create a shared function info object (the code may be lazily compiled). |
| 102 static Handle<SharedFunctionInfo> GetSharedFunctionInfo( | 106 static Handle<SharedFunctionInfo> GetSharedFunctionInfo( |
| 103 FunctionLiteral* node, Handle<Script> script, CompilationInfo* outer); | 107 FunctionLiteral* node, Handle<Script> script, CompilationInfo* outer); |
| 104 | 108 |
| 105 // Create a shared function info object for a native function literal. | 109 // Create a shared function info object for a native function literal. |
| (...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 572 MUST_USE_RESULT Status SetLastStatus(Status status) { | 576 MUST_USE_RESULT Status SetLastStatus(Status status) { |
| 573 last_status_ = status; | 577 last_status_ = status; |
| 574 return last_status_; | 578 return last_status_; |
| 575 } | 579 } |
| 576 }; | 580 }; |
| 577 | 581 |
| 578 } // namespace internal | 582 } // namespace internal |
| 579 } // namespace v8 | 583 } // namespace v8 |
| 580 | 584 |
| 581 #endif // V8_COMPILER_H_ | 585 #endif // V8_COMPILER_H_ |
| OLD | NEW |