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

Side by Side Diff: runtime/vm/port.cc

Issue 2035383004: Fix MacOS build (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698