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

Unified Diff: runtime/vm/exceptions.h

Issue 1156143003: Refactor Isolate -> Thread in NativeArguments and exception handler jump. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Fix comment; remove unused accessor. Created 5 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/dart_api_impl.cc ('k') | runtime/vm/exceptions.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/exceptions.h
diff --git a/runtime/vm/exceptions.h b/runtime/vm/exceptions.h
index de7e9e3bb41270e5d64285f16bc049f82c6ccff9..026477892478aaad6a66ea0786d47bf705ca5576 100644
--- a/runtime/vm/exceptions.h
+++ b/runtime/vm/exceptions.h
@@ -26,13 +26,14 @@ class Script;
class StackFrame;
class Stacktrace;
class String;
+class Thread;
class Exceptions : AllStatic {
public:
static const char* kCastErrorDstName;
- static void Throw(Isolate* isolate, const Instance& exception);
- static void ReThrow(Isolate* isolate,
+ static void Throw(Thread* thread, const Instance& exception);
+ static void ReThrow(Thread* thread,
const Instance& exception,
const Instance& stacktrace);
static void PropagateError(const Error& error);
@@ -70,6 +71,8 @@ class Exceptions : AllStatic {
};
static void ThrowByType(ExceptionType type, const Array& arguments);
+ // Uses the preallocated out of memory exception to avoid calling
+ // into Dart code or allocating any code.
static void ThrowOOM();
static void ThrowStackOverflow();
static void ThrowArgumentError(const Instance& arg);
« no previous file with comments | « runtime/vm/dart_api_impl.cc ('k') | runtime/vm/exceptions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698