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

Unified Diff: runtime/lib/isolate.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 | « no previous file | runtime/lib/mirrors.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/isolate.cc
===================================================================
--- runtime/lib/isolate.cc (revision 9315)
+++ runtime/lib/isolate.cc (working copy)
@@ -326,7 +326,7 @@
// can't talk to.
const Object& port = Object::Handle(DartLibraryCalls::NewSendPort(port_id));
if (port.IsError()) {
- Exceptions::PropagateError(port);
+ Exceptions::PropagateError(Error::Cast(port));
}
arguments->SetReturn(port);
}
@@ -338,7 +338,7 @@
PortMap::CreatePort(arguments->isolate()->message_handler());
const Object& port = Object::Handle(ReceivePortCreate(port_id));
if (port.IsError()) {
- Exceptions::PropagateError(port);
+ Exceptions::PropagateError(Error::Cast(port));
}
arguments->SetReturn(port);
}
@@ -593,7 +593,7 @@
if (port.IsError()) {
state->Cleanup();
delete state;
- Exceptions::PropagateError(port);
+ Exceptions::PropagateError(Error::Cast(port));
}
// Start the new isolate.
@@ -648,7 +648,7 @@
DEFINE_NATIVE_ENTRY(isolate_getPortInternal, 0) {
const Object& port = Object::Handle(ReceivePortCreate(isolate->main_port()));
if (port.IsError()) {
- Exceptions::PropagateError(port);
+ Exceptions::PropagateError(Error::Cast(port));
}
arguments->SetReturn(port);
}
« no previous file with comments | « no previous file | runtime/lib/mirrors.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698