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

Side by Side Diff: src/d8.h

Issue 2563673002: [wasm] Generate correct locations for error messages (Closed)
Patch Set: Created 4 years 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') | src/d8.cc » ('J')
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 #include <string> 8 #include <string>
9 9
10 #include "src/allocation.h" 10 #include "src/allocation.h"
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 317
318 class Shell : public i::AllStatic { 318 class Shell : public i::AllStatic {
319 public: 319 public:
320 static MaybeLocal<Script> CompileString( 320 static MaybeLocal<Script> CompileString(
321 Isolate* isolate, Local<String> source, Local<Value> name, 321 Isolate* isolate, Local<String> source, Local<Value> name,
322 v8::ScriptCompiler::CompileOptions compile_options); 322 v8::ScriptCompiler::CompileOptions compile_options);
323 static bool ExecuteString(Isolate* isolate, Local<String> source, 323 static bool ExecuteString(Isolate* isolate, Local<String> source,
324 Local<Value> name, bool print_result, 324 Local<Value> name, bool print_result,
325 bool report_exceptions); 325 bool report_exceptions);
326 static bool ExecuteModule(Isolate* isolate, const char* file_name); 326 static bool ExecuteModule(Isolate* isolate, const char* file_name);
327 static const char* ToCString(const v8::String::Utf8Value& value);
328 static void ReportException(Isolate* isolate, TryCatch* try_catch); 327 static void ReportException(Isolate* isolate, TryCatch* try_catch);
329 static Local<String> ReadFile(Isolate* isolate, const char* name); 328 static Local<String> ReadFile(Isolate* isolate, const char* name);
330 static Local<Context> CreateEvaluationContext(Isolate* isolate); 329 static Local<Context> CreateEvaluationContext(Isolate* isolate);
331 static int RunMain(Isolate* isolate, int argc, char* argv[], bool last_run); 330 static int RunMain(Isolate* isolate, int argc, char* argv[], bool last_run);
332 static int Main(int argc, char* argv[]); 331 static int Main(int argc, char* argv[]);
333 static void Exit(int exit_code); 332 static void Exit(int exit_code);
334 static void OnExit(Isolate* isolate); 333 static void OnExit(Isolate* isolate);
335 static void CollectGarbage(Isolate* isolate); 334 static void CollectGarbage(Isolate* isolate);
336 static void EmptyMessageQueues(Isolate* isolate); 335 static void EmptyMessageQueues(Isolate* isolate);
337 336
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
459 const v8::FunctionCallbackInfo<v8::Value>& args); 458 const v8::FunctionCallbackInfo<v8::Value>& args);
460 static MaybeLocal<Module> FetchModuleTree(v8::Local<v8::Context> context, 459 static MaybeLocal<Module> FetchModuleTree(v8::Local<v8::Context> context,
461 const std::string& file_name); 460 const std::string& file_name);
462 }; 461 };
463 462
464 463
465 } // namespace v8 464 } // namespace v8
466 465
467 466
468 #endif // V8_D8_H_ 467 #endif // V8_D8_H_
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/d8.cc » ('j') | src/d8.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698