| 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" |
| 11 #include "vm/runtime_entry_list.h" | 11 #include "vm/runtime_entry_list.h" |
| 12 | 12 |
| 13 namespace dart { | 13 namespace dart { |
| 14 | 14 |
| 15 class CHA; | 15 class CHA; |
| 16 class HandleScope; | 16 class HandleScope; |
| 17 class Heap; | 17 class Heap; |
| 18 class Isolate; | 18 class Isolate; |
| 19 class LongJumpScope; | 19 class LongJumpScope; |
| 20 class Object; | 20 class Object; |
| 21 class RawBool; | 21 class RawBool; |
| 22 class RawObject; | 22 class RawObject; |
| 23 class RawString; |
| 23 class RuntimeEntry; | 24 class RuntimeEntry; |
| 24 class StackResource; | 25 class StackResource; |
| 25 class TimelineEventBlock; | 26 class TimelineEventBlock; |
| 26 class Zone; | 27 class Zone; |
| 27 | 28 |
| 28 // List of VM-global objects/addresses cached in each Thread object. | 29 // List of VM-global objects/addresses cached in each Thread object. |
| 29 #define CACHED_VM_OBJECTS_LIST(V) \ | 30 #define CACHED_VM_OBJECTS_LIST(V) \ |
| 30 V(RawObject*, object_null_, Object::null(), NULL) \ | 31 V(RawObject*, object_null_, Object::null(), NULL) \ |
| 31 V(RawBool*, bool_true_, Object::bool_true().raw(), NULL) \ | 32 V(RawBool*, bool_true_, Object::bool_true().raw(), NULL) \ |
| 32 V(RawBool*, bool_false_, Object::bool_false().raw(), NULL) \ | 33 V(RawBool*, bool_false_, Object::bool_false().raw(), NULL) \ |
| 33 | 34 |
| 34 #define CACHED_ADDRESSES_LIST(V) \ | 35 #define CACHED_ADDRESSES_LIST(V) \ |
| 35 V(uword, update_store_buffer_entry_point_, \ | 36 V(uword, update_store_buffer_entry_point_, \ |
| 36 StubCode::UpdateStoreBuffer_entry()->EntryPoint(), 0) \ | 37 StubCode::UpdateStoreBuffer_entry()->EntryPoint(), 0) \ |
| 38 V(RawString**, predefined_symbols_address_, \ |
| 39 Symbols::PredefinedAddress(), NULL) \ |
| 37 | 40 |
| 38 #define CACHED_CONSTANTS_LIST(V) \ | 41 #define CACHED_CONSTANTS_LIST(V) \ |
| 39 CACHED_VM_OBJECTS_LIST(V) \ | 42 CACHED_VM_OBJECTS_LIST(V) \ |
| 40 CACHED_ADDRESSES_LIST(V) \ | 43 CACHED_ADDRESSES_LIST(V) \ |
| 41 | 44 |
| 42 struct InterruptedThreadState { | 45 struct InterruptedThreadState { |
| 43 ThreadId tid; | 46 ThreadId tid; |
| 44 uintptr_t pc; | 47 uintptr_t pc; |
| 45 uintptr_t csp; | 48 uintptr_t csp; |
| 46 uintptr_t dsp; | 49 uintptr_t dsp; |
| (...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 320 friend class ApiZone; | 323 friend class ApiZone; |
| 321 friend class Isolate; | 324 friend class Isolate; |
| 322 friend class StackZone; | 325 friend class StackZone; |
| 323 friend class ThreadRegistry; | 326 friend class ThreadRegistry; |
| 324 DISALLOW_COPY_AND_ASSIGN(Thread); | 327 DISALLOW_COPY_AND_ASSIGN(Thread); |
| 325 }; | 328 }; |
| 326 | 329 |
| 327 } // namespace dart | 330 } // namespace dart |
| 328 | 331 |
| 329 #endif // VM_THREAD_H_ | 332 #endif // VM_THREAD_H_ |
| OLD | NEW |