| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 #ifndef VM_PORT_H_ | 5 #ifndef VM_PORT_H_ |
| 6 #define VM_PORT_H_ | 6 #define VM_PORT_H_ |
| 7 | 7 |
| 8 #include "include/dart_api.h" | 8 #include "include/dart_api.h" |
| 9 #include "vm/allocation.h" | 9 #include "vm/allocation.h" |
| 10 #include "vm/globals.h" | 10 #include "vm/globals.h" |
| 11 #include "vm/random.h" | |
| 12 | 11 |
| 13 namespace dart { | 12 namespace dart { |
| 14 | 13 |
| 15 class Isolate; | 14 class Isolate; |
| 16 class Message; | 15 class Message; |
| 17 class MessageHandler; | 16 class MessageHandler; |
| 18 class Mutex; | 17 class Mutex; |
| 19 class PortMapTestPeer; | 18 class PortMapTestPeer; |
| 20 | 19 |
| 21 class PortMap: public AllStatic { | 20 class PortMap: public AllStatic { |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 // Lock protecting access to the port map. | 75 // Lock protecting access to the port map. |
| 77 static Mutex* mutex_; | 76 static Mutex* mutex_; |
| 78 | 77 |
| 79 // Hashmap of ports. | 78 // Hashmap of ports. |
| 80 static Entry* map_; | 79 static Entry* map_; |
| 81 static MessageHandler* deleted_entry_; | 80 static MessageHandler* deleted_entry_; |
| 82 static intptr_t capacity_; | 81 static intptr_t capacity_; |
| 83 static intptr_t used_; | 82 static intptr_t used_; |
| 84 static intptr_t deleted_; | 83 static intptr_t deleted_; |
| 85 | 84 |
| 86 static Random* prng_; | 85 static Dart_Port next_port_; |
| 87 }; | 86 }; |
| 88 | 87 |
| 89 } // namespace dart | 88 } // namespace dart |
| 90 | 89 |
| 91 #endif // VM_PORT_H_ | 90 #endif // VM_PORT_H_ |
| OLD | NEW |