| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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_THREAD_H_ | 5 #ifndef VM_THREAD_H_ |
| 6 #define VM_THREAD_H_ | 6 #define VM_THREAD_H_ |
| 7 | 7 |
| 8 #include "vm/globals.h" | 8 #include "vm/globals.h" |
| 9 #include "vm/os_thread.h" | 9 #include "vm/os_thread.h" |
| 10 #include "vm/store_buffer.h" | 10 #include "vm/store_buffer.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 | 23 |
| 24 | 24 |
| 25 // List of VM-global objects/addresses cached in each Thread object. | 25 // List of VM-global objects/addresses cached in each Thread object. |
| 26 #define CACHED_VM_OBJECTS_LIST(V) \ | 26 #define CACHED_VM_OBJECTS_LIST(V) \ |
| 27 V(RawObject*, object_null_, Object::null(), NULL) \ | 27 V(RawObject*, object_null_, Object::null(), NULL) \ |
| 28 V(RawBool*, bool_true_, Object::bool_true().raw(), NULL) \ | 28 V(RawBool*, bool_true_, Object::bool_true().raw(), NULL) \ |
| 29 V(RawBool*, bool_false_, Object::bool_false().raw(), NULL) \ | 29 V(RawBool*, bool_false_, Object::bool_false().raw(), NULL) \ |
| 30 | 30 |
| 31 #define CACHED_ADDRESSES_LIST(V) \ | 31 #define CACHED_ADDRESSES_LIST(V) \ |
| 32 V(uword, update_store_buffer_entry_point_, \ | 32 V(uword, update_store_buffer_entry_point_, \ |
| 33 StubCode::UpdateStoreBufferEntryPoint(), 0) | 33 StubCode::UpdateStoreBuffer_entry()->EntryPoint(), 0) |
| 34 | 34 |
| 35 #define CACHED_CONSTANTS_LIST(V) \ | 35 #define CACHED_CONSTANTS_LIST(V) \ |
| 36 CACHED_VM_OBJECTS_LIST(V) \ | 36 CACHED_VM_OBJECTS_LIST(V) \ |
| 37 CACHED_ADDRESSES_LIST(V) | 37 CACHED_ADDRESSES_LIST(V) |
| 38 | 38 |
| 39 | 39 |
| 40 // A VM thread; may be executing Dart code or performing helper tasks like | 40 // A VM thread; may be executing Dart code or performing helper tasks like |
| 41 // garbage collection or compilation. The Thread structure associated with | 41 // garbage collection or compilation. The Thread structure associated with |
| 42 // a thread is allocated by EnsureInit before entering an isolate, and destroyed | 42 // a thread is allocated by EnsureInit before entering an isolate, and destroyed |
| 43 // automatically when the underlying OS thread exits. NOTE: On Windows, CleanUp | 43 // automatically when the underlying OS thread exits. NOTE: On Windows, CleanUp |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 | 239 |
| 240 friend class ApiZone; | 240 friend class ApiZone; |
| 241 friend class Isolate; | 241 friend class Isolate; |
| 242 friend class StackZone; | 242 friend class StackZone; |
| 243 DISALLOW_COPY_AND_ASSIGN(Thread); | 243 DISALLOW_COPY_AND_ASSIGN(Thread); |
| 244 }; | 244 }; |
| 245 | 245 |
| 246 } // namespace dart | 246 } // namespace dart |
| 247 | 247 |
| 248 #endif // VM_THREAD_H_ | 248 #endif // VM_THREAD_H_ |
| OLD | NEW |