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

Unified Diff: runtime/vm/object_store.cc

Issue 10693071: Use VM type cast and save handles. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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/object.cc ('k') | runtime/vm/parser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object_store.cc
===================================================================
--- runtime/vm/object_store.cc (revision 9315)
+++ runtime/vm/object_store.cc (working copy)
@@ -110,21 +110,18 @@
ASSERT(this->out_of_memory() == Instance::null());
GrowableArray<const Object*> args;
Object& result = Object::Handle();
- Instance& exception = Instance::Handle();
result = Exceptions::Create(Exceptions::kStackOverflow, args);
if (result.IsError()) {
return false;
}
- exception ^= result.raw();
- set_stack_overflow(exception);
+ set_stack_overflow(Instance::Cast(result));
result = Exceptions::Create(Exceptions::kOutOfMemory, args);
if (result.IsError()) {
return false;
}
- exception ^= result.raw();
- set_out_of_memory(exception);
+ set_out_of_memory(Instance::Cast(result));
return true;
}
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698