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

Unified Diff: runtime/vm/isolate.cc

Issue 23510006: - More use of pre-allocated read-only handles. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 3 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/assembler_x64.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/isolate.cc
===================================================================
--- runtime/vm/isolate.cc (revision 27481)
+++ runtime/vm/isolate.cc (working copy)
@@ -109,7 +109,7 @@
if (!message->IsOOB()) {
receive_port = DartLibraryCalls::LookupReceivePort(message->dest_port());
if (receive_port.IsError()) {
- return ProcessUnhandledException(Instance::Handle(),
+ return ProcessUnhandledException(Object::null_instance(),
Error::Cast(receive_port));
}
if (receive_port.IsNull()) {
@@ -124,7 +124,8 @@
const Object& msg_obj = Object::Handle(reader.ReadObject());
if (msg_obj.IsError()) {
// An error occurred while reading the message.
- return ProcessUnhandledException(Instance::Handle(), Error::Cast(msg_obj));
+ return ProcessUnhandledException(Object::null_instance(),
+ Error::Cast(msg_obj));
}
if (!msg_obj.IsNull() && !msg_obj.IsInstance()) {
// TODO(turnidge): We need to decide what an isolate does with
« no previous file with comments | « runtime/vm/assembler_x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698