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 RUNTIME_VM_THREAD_H_ | 5 #ifndef RUNTIME_VM_THREAD_H_ |
6 #define RUNTIME_VM_THREAD_H_ | 6 #define RUNTIME_VM_THREAD_H_ |
7 | 7 |
8 #include "include/dart_api.h" | 8 #include "include/dart_api.h" |
9 #include "platform/assert.h" | 9 #include "platform/assert.h" |
10 #include "vm/atomic.h" | 10 #include "vm/atomic.h" |
11 #include "vm/bitfield.h" | 11 #include "vm/bitfield.h" |
12 #include "vm/globals.h" | 12 #include "vm/globals.h" |
13 #include "vm/handles.h" | 13 #include "vm/handles.h" |
14 #include "vm/os_thread.h" | 14 #include "vm/os_thread.h" |
| 15 #include "vm/runtime_entry_list.h" |
15 #include "vm/store_buffer.h" | 16 #include "vm/store_buffer.h" |
16 #include "vm/runtime_entry_list.h" | |
17 namespace dart { | 17 namespace dart { |
18 | 18 |
19 class AbstractType; | 19 class AbstractType; |
20 class ApiLocalScope; | 20 class ApiLocalScope; |
21 class Array; | 21 class Array; |
22 class CHA; | 22 class CHA; |
23 class Class; | 23 class Class; |
24 class Code; | 24 class Code; |
25 class CompilerStats; | 25 class CompilerStats; |
26 class Error; | 26 class Error; |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 V(GrowableObjectArray) \ | 67 V(GrowableObjectArray) \ |
68 V(Instance) \ | 68 V(Instance) \ |
69 V(Library) \ | 69 V(Library) \ |
70 V(Object) \ | 70 V(Object) \ |
71 V(PcDescriptors) \ | 71 V(PcDescriptors) \ |
72 V(Smi) \ | 72 V(Smi) \ |
73 V(String) \ | 73 V(String) \ |
74 V(TypeArguments) \ | 74 V(TypeArguments) \ |
75 V(TypeParameter) | 75 V(TypeParameter) |
76 | 76 |
77 | |
78 #if defined(TARGET_ARCH_DBC) | 77 #if defined(TARGET_ARCH_DBC) |
79 #define CACHED_VM_STUBS_LIST(V) | 78 #define CACHED_VM_STUBS_LIST(V) |
80 #else | 79 #else |
81 #define CACHED_VM_STUBS_LIST(V) \ | 80 #define CACHED_VM_STUBS_LIST(V) \ |
82 V(RawCode*, update_store_buffer_code_, \ | 81 V(RawCode*, update_store_buffer_code_, \ |
83 StubCode::UpdateStoreBuffer_entry()->code(), NULL) \ | 82 StubCode::UpdateStoreBuffer_entry()->code(), NULL) \ |
84 V(RawCode*, fix_callers_target_code_, \ | 83 V(RawCode*, fix_callers_target_code_, \ |
85 StubCode::FixCallersTarget_entry()->code(), NULL) \ | 84 StubCode::FixCallersTarget_entry()->code(), NULL) \ |
86 V(RawCode*, fix_allocation_stub_code_, \ | 85 V(RawCode*, fix_allocation_stub_code_, \ |
87 StubCode::FixAllocationStubTarget_entry()->code(), NULL) \ | 86 StubCode::FixAllocationStubTarget_entry()->code(), NULL) \ |
(...skipping 713 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
801 friend class InterruptChecker; | 800 friend class InterruptChecker; |
802 friend class Isolate; | 801 friend class Isolate; |
803 friend class IsolateTestHelper; | 802 friend class IsolateTestHelper; |
804 friend class NoOOBMessageScope; | 803 friend class NoOOBMessageScope; |
805 friend class Simulator; | 804 friend class Simulator; |
806 friend class StackZone; | 805 friend class StackZone; |
807 friend class ThreadRegistry; | 806 friend class ThreadRegistry; |
808 DISALLOW_COPY_AND_ASSIGN(Thread); | 807 DISALLOW_COPY_AND_ASSIGN(Thread); |
809 }; | 808 }; |
810 | 809 |
811 | |
812 #if defined(HOST_OS_WINDOWS) | 810 #if defined(HOST_OS_WINDOWS) |
813 // Clears the state of the current thread and frees the allocation. | 811 // Clears the state of the current thread and frees the allocation. |
814 void WindowsThreadCleanUp(); | 812 void WindowsThreadCleanUp(); |
815 #endif | 813 #endif |
816 | 814 |
817 | |
818 // Disable thread interrupts. | 815 // Disable thread interrupts. |
819 class DisableThreadInterruptsScope : public StackResource { | 816 class DisableThreadInterruptsScope : public StackResource { |
820 public: | 817 public: |
821 explicit DisableThreadInterruptsScope(Thread* thread); | 818 explicit DisableThreadInterruptsScope(Thread* thread); |
822 ~DisableThreadInterruptsScope(); | 819 ~DisableThreadInterruptsScope(); |
823 }; | 820 }; |
824 | 821 |
825 } // namespace dart | 822 } // namespace dart |
826 | 823 |
827 #endif // RUNTIME_VM_THREAD_H_ | 824 #endif // RUNTIME_VM_THREAD_H_ |
OLD | NEW |