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

Side by Side Diff: src/compiler.h

Issue 2611643002: [modules] Add an IsModule flag to ScriptOriginOptions. (Closed)
Patch Set: Remove convenience function from API. 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
« no previous file with comments | « src/bootstrapper.cc ('k') | src/compiler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 Handle<Context> context, Handle<String> source, 108 Handle<Context> context, Handle<String> source,
109 ParseRestriction restriction); 109 ParseRestriction restriction);
110 110
111 // Create a shared function info object for a String source within a context. 111 // Create a shared function info object for a String source within a context.
112 static Handle<SharedFunctionInfo> GetSharedFunctionInfoForScript( 112 static Handle<SharedFunctionInfo> GetSharedFunctionInfoForScript(
113 Handle<String> source, Handle<Object> script_name, int line_offset, 113 Handle<String> source, Handle<Object> script_name, int line_offset,
114 int column_offset, ScriptOriginOptions resource_options, 114 int column_offset, ScriptOriginOptions resource_options,
115 Handle<Object> source_map_url, Handle<Context> context, 115 Handle<Object> source_map_url, Handle<Context> context,
116 v8::Extension* extension, ScriptData** cached_data, 116 v8::Extension* extension, ScriptData** cached_data,
117 ScriptCompiler::CompileOptions compile_options, 117 ScriptCompiler::CompileOptions compile_options,
118 NativesFlag is_natives_code, bool is_module); 118 NativesFlag is_natives_code);
119 119
120 // Create a shared function info object for a Script that has already been 120 // Create a shared function info object for a Script that has already been
121 // parsed while the script was being loaded from a streamed source. 121 // parsed while the script was being loaded from a streamed source.
122 static Handle<SharedFunctionInfo> GetSharedFunctionInfoForStreamedScript( 122 static Handle<SharedFunctionInfo> GetSharedFunctionInfoForStreamedScript(
123 Handle<Script> script, ParseInfo* info, int source_length); 123 Handle<Script> script, ParseInfo* info, int source_length);
124 124
125 // Create a shared function info object (the code may be lazily compiled). 125 // Create a shared function info object (the code may be lazily compiled).
126 static Handle<SharedFunctionInfo> GetSharedFunctionInfo( 126 static Handle<SharedFunctionInfo> GetSharedFunctionInfo(
127 FunctionLiteral* node, Handle<Script> script, CompilationInfo* outer); 127 FunctionLiteral* node, Handle<Script> script, CompilationInfo* outer);
128 128
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 state_ = State::kFailed; 233 state_ = State::kFailed;
234 } 234 }
235 return status; 235 return status;
236 } 236 }
237 }; 237 };
238 238
239 } // namespace internal 239 } // namespace internal
240 } // namespace v8 240 } // namespace v8
241 241
242 #endif // V8_COMPILER_H_ 242 #endif // V8_COMPILER_H_
OLDNEW
« no previous file with comments | « src/bootstrapper.cc ('k') | src/compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698