Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(337)

Side by Side Diff: src/compiler.h

Issue 2611643002: [modules] Add an IsModule flag to ScriptOriginOptions. (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 <memory> 8 #include <memory>
9 9
10 #include "src/allocation.h" 10 #include "src/allocation.h"
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 Handle<Context> context, Handle<String> source, 103 Handle<Context> context, Handle<String> source,
104 ParseRestriction restriction); 104 ParseRestriction restriction);
105 105
106 // Create a shared function info object for a String source within a context. 106 // Create a shared function info object for a String source within a context.
107 static Handle<SharedFunctionInfo> GetSharedFunctionInfoForScript( 107 static Handle<SharedFunctionInfo> GetSharedFunctionInfoForScript(
108 Handle<String> source, Handle<Object> script_name, int line_offset, 108 Handle<String> source, Handle<Object> script_name, int line_offset,
109 int column_offset, ScriptOriginOptions resource_options, 109 int column_offset, ScriptOriginOptions resource_options,
110 Handle<Object> source_map_url, Handle<Context> context, 110 Handle<Object> source_map_url, Handle<Context> context,
111 v8::Extension* extension, ScriptData** cached_data, 111 v8::Extension* extension, ScriptData** cached_data,
112 ScriptCompiler::CompileOptions compile_options, 112 ScriptCompiler::CompileOptions compile_options,
113 NativesFlag is_natives_code, bool is_module); 113 NativesFlag is_natives_code);
114 114
115 // Create a shared function info object for a Script that has already been 115 // Create a shared function info object for a Script that has already been
116 // parsed while the script was being loaded from a streamed source. 116 // parsed while the script was being loaded from a streamed source.
117 static Handle<SharedFunctionInfo> GetSharedFunctionInfoForStreamedScript( 117 static Handle<SharedFunctionInfo> GetSharedFunctionInfoForStreamedScript(
118 Handle<Script> script, ParseInfo* info, int source_length); 118 Handle<Script> script, ParseInfo* info, int source_length);
119 119
120 // Create a shared function info object (the code may be lazily compiled). 120 // Create a shared function info object (the code may be lazily compiled).
121 static Handle<SharedFunctionInfo> GetSharedFunctionInfo( 121 static Handle<SharedFunctionInfo> GetSharedFunctionInfo(
122 FunctionLiteral* node, Handle<Script> script, CompilationInfo* outer, 122 FunctionLiteral* node, Handle<Script> script, CompilationInfo* outer,
123 LazyCompilationMode mode = LazyCompilationMode::kIfRequested); 123 LazyCompilationMode mode = LazyCompilationMode::kIfRequested);
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 state_ = State::kFailed; 226 state_ = State::kFailed;
227 } 227 }
228 return status; 228 return status;
229 } 229 }
230 }; 230 };
231 231
232 } // namespace internal 232 } // namespace internal
233 } // namespace v8 233 } // namespace v8
234 234
235 #endif // V8_COMPILER_H_ 235 #endif // V8_COMPILER_H_
OLDNEW
« include/v8.h ('K') | « src/bootstrapper.cc ('k') | src/compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698