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

Side by Side Diff: src/d8.h

Issue 2347933002: [modules] Introduce v8::Module to the API and return it from CompileModule (Closed)
Patch Set: Less maybe Created 4 years, 3 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/api.cc ('k') | src/d8.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_D8_H_ 5 #ifndef V8_D8_H_
6 #define V8_D8_H_ 6 #define V8_D8_H_
7 7
8 #ifndef V8_SHARED 8 #ifndef V8_SHARED
9 #include "src/allocation.h" 9 #include "src/allocation.h"
10 #include "src/base/hashmap.h" 10 #include "src/base/hashmap.h"
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 class Shell { 328 class Shell {
329 #else 329 #else
330 class Shell : public i::AllStatic { 330 class Shell : public i::AllStatic {
331 #endif // V8_SHARED 331 #endif // V8_SHARED
332 332
333 public: 333 public:
334 enum SourceType { SCRIPT, MODULE }; 334 enum SourceType { SCRIPT, MODULE };
335 335
336 static MaybeLocal<Script> CompileString( 336 static MaybeLocal<Script> CompileString(
337 Isolate* isolate, Local<String> source, Local<Value> name, 337 Isolate* isolate, Local<String> source, Local<Value> name,
338 v8::ScriptCompiler::CompileOptions compile_options, 338 v8::ScriptCompiler::CompileOptions compile_options);
339 SourceType source_type);
340 static bool ExecuteString(Isolate* isolate, Local<String> source, 339 static bool ExecuteString(Isolate* isolate, Local<String> source,
341 Local<Value> name, bool print_result, 340 Local<Value> name, bool print_result,
342 bool report_exceptions, 341 bool report_exceptions,
343 SourceType source_type = SCRIPT); 342 SourceType source_type = SCRIPT);
344 static const char* ToCString(const v8::String::Utf8Value& value); 343 static const char* ToCString(const v8::String::Utf8Value& value);
345 static void ReportException(Isolate* isolate, TryCatch* try_catch); 344 static void ReportException(Isolate* isolate, TryCatch* try_catch);
346 static Local<String> ReadFile(Isolate* isolate, const char* name); 345 static Local<String> ReadFile(Isolate* isolate, const char* name);
347 static Local<Context> CreateEvaluationContext(Isolate* isolate); 346 static Local<Context> CreateEvaluationContext(Isolate* isolate);
348 static int RunMain(Isolate* isolate, int argc, char* argv[], bool last_run); 347 static int RunMain(Isolate* isolate, int argc, char* argv[], bool last_run);
349 static int Main(int argc, char* argv[]); 348 static int Main(int argc, char* argv[]);
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
477 static Local<ObjectTemplate> CreateGlobalTemplate(Isolate* isolate); 476 static Local<ObjectTemplate> CreateGlobalTemplate(Isolate* isolate);
478 static MaybeLocal<Context> CreateRealm( 477 static MaybeLocal<Context> CreateRealm(
479 const v8::FunctionCallbackInfo<v8::Value>& args); 478 const v8::FunctionCallbackInfo<v8::Value>& args);
480 }; 479 };
481 480
482 481
483 } // namespace v8 482 } // namespace v8
484 483
485 484
486 #endif // V8_D8_H_ 485 #endif // V8_D8_H_
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/d8.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698