Chromium Code Reviews| Index: runtime/vm/exceptions.h |
| diff --git a/runtime/vm/exceptions.h b/runtime/vm/exceptions.h |
| index de7e9e3bb41270e5d64285f16bc049f82c6ccff9..2de03c0983d4e35cec8da242cb575be427c3c9e8 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. |
|
srdjan
2015/05/26 23:39:02
s/dart/Dart/
|
| static void ThrowOOM(); |
| static void ThrowStackOverflow(); |
| static void ThrowArgumentError(const Instance& arg); |