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

Unified Diff: vm/object_store.cc

Issue 9030013: Fix issue 1023: (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 12 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 | « vm/object_store.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/object_store.cc
===================================================================
--- vm/object_store.cc (revision 2927)
+++ vm/object_store.cc (working copy)
@@ -53,6 +53,7 @@
sticky_error_(String::null()),
empty_context_(Context::null()),
stack_overflow_(Instance::null()),
+ out_of_memory_(Instance::null()),
preallocate_objects_called_(false) {
}
@@ -86,9 +87,11 @@
isolate->set_long_jump_base(&jump);
if (setjmp(*jump.Set()) == 0) {
GrowableArray<const Object*> args;
- const Instance& exception =
- Instance::Handle(Exceptions::Create(Exceptions::kStackOverflow, args));
+ Instance& exception =Instance::Handle();
+ exception = Exceptions::Create(Exceptions::kStackOverflow, args);
set_stack_overflow(exception);
+ exception = Exceptions::Create(Exceptions::kOutOfMemory, args);
+ set_out_of_memory(exception);
} else {
return false;
}
« no previous file with comments | « vm/object_store.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698