| OLD | NEW | 
|---|
| 1 // Copyright (c) 2012, the Dart project authors.  Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors.  Please see the AUTHORS file | 
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a | 
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. | 
| 4 | 4 | 
| 5 #include "vm/port.h" | 5 #include "vm/port.h" | 
| 6 | 6 | 
| 7 #include "vm/dart_entry.h" | 7 #include "vm/dart_entry.h" | 
| 8 #include "platform/utils.h" | 8 #include "platform/utils.h" | 
| 9 #include "vm/dart_api_impl.h" | 9 #include "vm/dart_api_impl.h" | 
| 10 #include "vm/isolate.h" | 10 #include "vm/isolate.h" | 
| (...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 326   } | 326   } | 
| 327 } | 327 } | 
| 328 | 328 | 
| 329 | 329 | 
| 330 void PortMap::DebugDumpForMessageHandler(MessageHandler* handler) { | 330 void PortMap::DebugDumpForMessageHandler(MessageHandler* handler) { | 
| 331   SafepointMutexLocker ml(mutex_); | 331   SafepointMutexLocker ml(mutex_); | 
| 332   Object& msg_handler = Object::Handle(); | 332   Object& msg_handler = Object::Handle(); | 
| 333   for (intptr_t i = 0; i < capacity_; i++) { | 333   for (intptr_t i = 0; i < capacity_; i++) { | 
| 334     if (map_[i].handler == handler) { | 334     if (map_[i].handler == handler) { | 
| 335       if (map_[i].state == kLivePort) { | 335       if (map_[i].state == kLivePort) { | 
| 336         OS::Print("Live Port = %" Pd "\n", map_[i].port); | 336         OS::Print("Live Port = %" Pd64 "\n", map_[i].port); | 
| 337         msg_handler = DartLibraryCalls::LookupHandler(map_[i].port); | 337         msg_handler = DartLibraryCalls::LookupHandler(map_[i].port); | 
| 338         OS::Print("Handler = %s\n", msg_handler.ToCString()); | 338         OS::Print("Handler = %s\n", msg_handler.ToCString()); | 
| 339       } | 339       } | 
| 340     } | 340     } | 
| 341   } | 341   } | 
| 342 } | 342 } | 
| 343 | 343 | 
| 344 | 344 | 
| 345 }  // namespace dart | 345 }  // namespace dart | 
| OLD | NEW | 
|---|