| OLD | NEW |
| 1 // Copyright (c) 2014, the Dartino project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dartino 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.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
| 4 | 4 |
| 5 #ifndef SRC_VM_PORT_H_ | 5 #ifndef SRC_VM_PORT_H_ |
| 6 #define SRC_VM_PORT_H_ | 6 #define SRC_VM_PORT_H_ |
| 7 | 7 |
| 8 #include "src/shared/globals.h" | 8 #include "src/shared/globals.h" |
| 9 #include "src/shared/platform.h" | 9 #include "src/shared/platform.h" |
| 10 | 10 |
| 11 #include "src/vm/object_memory.h" | 11 #include "src/vm/object_memory.h" |
| 12 #include "src/vm/spinlock.h" | 12 #include "src/vm/spinlock.h" |
| 13 | 13 |
| 14 namespace fletch { | 14 namespace dartino { |
| 15 | 15 |
| 16 class HeapObject; | 16 class HeapObject; |
| 17 class Instance; | 17 class Instance; |
| 18 class Object; | 18 class Object; |
| 19 class PointerVisitor; | 19 class PointerVisitor; |
| 20 class Process; | 20 class Process; |
| 21 | 21 |
| 22 class Port { | 22 class Port { |
| 23 public: | 23 public: |
| 24 Port(Process* process, Instance* channel); | 24 Port(Process* process, Instance* channel); |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 | 63 |
| 64 Process* process_; | 64 Process* process_; |
| 65 Instance* channel_; | 65 Instance* channel_; |
| 66 Atomic<int> ref_count_; | 66 Atomic<int> ref_count_; |
| 67 Spinlock spinlock_; | 67 Spinlock spinlock_; |
| 68 // The ports are in a list in the process so that we can GC the channel | 68 // The ports are in a list in the process so that we can GC the channel |
| 69 // pointer. | 69 // pointer. |
| 70 Port* next_; | 70 Port* next_; |
| 71 }; | 71 }; |
| 72 | 72 |
| 73 } // namespace fletch | 73 } // namespace dartino |
| 74 | 74 |
| 75 #endif // SRC_VM_PORT_H_ | 75 #endif // SRC_VM_PORT_H_ |
| OLD | NEW |