Index: runtime/vm/code_generator.cc |
diff --git a/runtime/vm/code_generator.cc b/runtime/vm/code_generator.cc |
index 666b13cee7bbe50596dbf5763f22edd35e471a0c..2e7df3b80a8fe22815dce90d45b6508c90007e6c 100644 |
--- a/runtime/vm/code_generator.cc |
+++ b/runtime/vm/code_generator.cc |
@@ -630,7 +630,7 @@ DEFINE_RUNTIME_ENTRY(BadTypeError, 3) { |
DEFINE_RUNTIME_ENTRY(Throw, 1) { |
const Instance& exception = |
Instance::CheckedHandle(zone, arguments.ArgAt(0)); |
- Exceptions::Throw(isolate, exception); |
+ Exceptions::Throw(thread, exception); |
} |
@@ -639,7 +639,7 @@ DEFINE_RUNTIME_ENTRY(ReThrow, 2) { |
Instance::CheckedHandle(zone, arguments.ArgAt(0)); |
const Instance& stacktrace = |
Instance::CheckedHandle(zone, arguments.ArgAt(1)); |
- Exceptions::ReThrow(isolate, exception, stacktrace); |
+ Exceptions::ReThrow(thread, exception, stacktrace); |
} |
@@ -1125,7 +1125,7 @@ DEFINE_RUNTIME_ENTRY(StackOverflow, 0) { |
// into dart code. |
const Instance& exception = |
Instance::Handle(isolate->object_store()->stack_overflow()); |
- Exceptions::Throw(isolate, exception); |
+ Exceptions::Throw(thread, exception); |
UNREACHABLE(); |
} |