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

Side by Side Diff: src/d8.h

Issue 902263002: Enable compiling mjsunit tests as ES6 modules (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 10 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 | « no previous file | 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/hashmap.h" 10 #include "src/hashmap.h"
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 const char* snapshot_blob; 241 const char* snapshot_blob;
242 }; 242 };
243 243
244 #ifdef V8_SHARED 244 #ifdef V8_SHARED
245 class Shell { 245 class Shell {
246 #else 246 #else
247 class Shell : public i::AllStatic { 247 class Shell : public i::AllStatic {
248 #endif // V8_SHARED 248 #endif // V8_SHARED
249 249
250 public: 250 public:
251 static Local<UnboundScript> CompileString( 251 enum SourceType { SCRIPT, MODULE };
252
253 static Local<Script> CompileString(
252 Isolate* isolate, Local<String> source, Local<Value> name, 254 Isolate* isolate, Local<String> source, Local<Value> name,
253 v8::ScriptCompiler::CompileOptions compile_options); 255 v8::ScriptCompiler::CompileOptions compile_options,
254 static bool ExecuteString(Isolate* isolate, 256 SourceType source_type);
255 Handle<String> source, 257 static bool ExecuteString(Isolate* isolate, Handle<String> source,
256 Handle<Value> name, 258 Handle<Value> name, bool print_result,
257 bool print_result, 259 bool report_exceptions,
258 bool report_exceptions); 260 SourceType source_type = SCRIPT);
259 static const char* ToCString(const v8::String::Utf8Value& value); 261 static const char* ToCString(const v8::String::Utf8Value& value);
260 static void ReportException(Isolate* isolate, TryCatch* try_catch); 262 static void ReportException(Isolate* isolate, TryCatch* try_catch);
261 static Handle<String> ReadFile(Isolate* isolate, const char* name); 263 static Handle<String> ReadFile(Isolate* isolate, const char* name);
262 static Local<Context> CreateEvaluationContext(Isolate* isolate); 264 static Local<Context> CreateEvaluationContext(Isolate* isolate);
263 static int RunMain(Isolate* isolate, int argc, char* argv[]); 265 static int RunMain(Isolate* isolate, int argc, char* argv[]);
264 static int Main(int argc, char* argv[]); 266 static int Main(int argc, char* argv[]);
265 static void Exit(int exit_code); 267 static void Exit(int exit_code);
266 static void OnExit(Isolate* isolate); 268 static void OnExit(Isolate* isolate);
267 269
268 #ifndef V8_SHARED 270 #ifndef V8_SHARED
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 static void ExternalArrayWeakCallback(Isolate* isolate, 407 static void ExternalArrayWeakCallback(Isolate* isolate,
406 Persistent<Object>* object, 408 Persistent<Object>* object,
407 uint8_t* data); 409 uint8_t* data);
408 }; 410 };
409 411
410 412
411 } // namespace v8 413 } // namespace v8
412 414
413 415
414 #endif // V8_D8_H_ 416 #endif // V8_D8_H_
OLDNEW
« no previous file with comments | « no previous file | src/d8.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698