Chromium Code Reviews| Index: runtime/vm/isolate.cc |
| =================================================================== |
| --- runtime/vm/isolate.cc (revision 35191) |
| +++ runtime/vm/isolate.cc (working copy) |
| @@ -123,14 +123,14 @@ |
| // If the message is in band we lookup the receive port to dispatch to. If |
| // the receive port is closed, we drop the message without deserializing it. |
|
Cutch
2014/04/22 20:15:22
Comment needs updating.
Ivan Posva
2014/04/22 21:28:30
Updated.
|
| - Object& receive_port = Object::Handle(); |
| + Object& msg_handler = Object::Handle(); |
| if (!message->IsOOB()) { |
| - receive_port = DartLibraryCalls::LookupReceivePort(message->dest_port()); |
| - if (receive_port.IsError()) { |
| + msg_handler = DartLibraryCalls::LookupHandler(message->dest_port()); |
| + if (msg_handler.IsError()) { |
| return ProcessUnhandledException(Object::null_instance(), |
| - Error::Cast(receive_port)); |
| + Error::Cast(msg_handler)); |
| } |
| - if (receive_port.IsNull()) { |
| + if (msg_handler.IsNull()) { |
| delete message; |
| return true; |
| } |
| @@ -162,7 +162,7 @@ |
| Service::HandleIsolateMessage(isolate_, msg); |
| } else { |
| const Object& result = Object::Handle( |
| - DartLibraryCalls::HandleMessage(receive_port, msg)); |
| + DartLibraryCalls::HandleMessage(msg_handler, msg)); |
| if (result.IsError()) { |
| success = ProcessUnhandledException(msg, Error::Cast(result)); |
| } else { |