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

Unified Diff: runtime/vm/object.cc

Issue 326183002: Pass around the current isolate in exception handling code. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 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/isolate.h ('k') | runtime/vm/reusable_handles.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.cc
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc
index a363916525c2e15ddafc8bc8277b10e4cdbe9984..83864c626576617e344c5be10066b0f40336324a 100644
--- a/runtime/vm/object.cc
+++ b/runtime/vm/object.cc
@@ -1572,7 +1572,7 @@ RawObject* Object::Allocate(intptr_t cls_id,
// into dart code or allocating any code.
const Instance& exception =
Instance::Handle(isolate->object_store()->out_of_memory());
- Exceptions::Throw(exception);
+ Exceptions::Throw(isolate, exception);
UNREACHABLE();
}
if (space == Heap::kNew) {
@@ -16671,7 +16671,7 @@ RawString* String::ConcatAllRange(const Array& strings,
Isolate* isolate = Isolate::Current();
const Instance& exception =
Instance::Handle(isolate->object_store()->out_of_memory());
- Exceptions::Throw(exception);
+ Exceptions::Throw(isolate, exception);
UNREACHABLE();
}
result_len += str_len;
@@ -17891,7 +17891,7 @@ void GrowableObjectArray::Add(const Object& value, Heap::Space space) const {
Isolate* isolate = Isolate::Current();
const Instance& exception =
Instance::Handle(isolate->object_store()->out_of_memory());
- Exceptions::Throw(exception);
+ Exceptions::Throw(isolate, exception);
UNREACHABLE();
}
Grow(new_capacity, space);
« no previous file with comments | « runtime/vm/isolate.h ('k') | runtime/vm/reusable_handles.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698