OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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_ISOLATE_H_ | 5 #ifndef VM_ISOLATE_H_ |
6 #define VM_ISOLATE_H_ | 6 #define VM_ISOLATE_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/base_isolate.h" | 10 #include "vm/base_isolate.h" |
11 #include "vm/class_table.h" | 11 #include "vm/class_table.h" |
12 #include "vm/counters.h" | 12 #include "vm/counters.h" |
13 #include "vm/handles.h" | 13 #include "vm/handles.h" |
14 #include "vm/megamorphic_cache_table.h" | 14 #include "vm/megamorphic_cache_table.h" |
15 #include "vm/metrics.h" | 15 #include "vm/metrics.h" |
16 #include "vm/random.h" | 16 #include "vm/random.h" |
17 #include "vm/store_buffer.h" | 17 #include "vm/store_buffer.h" |
18 #include "vm/tags.h" | 18 #include "vm/tags.h" |
19 #include "vm/thread.h" | 19 #include "vm/os_thread.h" |
20 #include "vm/trace_buffer.h" | 20 #include "vm/trace_buffer.h" |
21 #include "vm/timer.h" | 21 #include "vm/timer.h" |
22 | 22 |
23 namespace dart { | 23 namespace dart { |
24 | 24 |
25 // Forward declarations. | 25 // Forward declarations. |
26 class AbstractType; | 26 class AbstractType; |
27 class ApiState; | 27 class ApiState; |
28 class Array; | 28 class Array; |
29 class Capability; | 29 class Capability; |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 V(PcDescriptors) \ | 104 V(PcDescriptors) \ |
105 V(String) \ | 105 V(String) \ |
106 V(TypeArguments) \ | 106 V(TypeArguments) \ |
107 V(TypeParameter) \ | 107 V(TypeParameter) \ |
108 | 108 |
109 class Isolate : public BaseIsolate { | 109 class Isolate : public BaseIsolate { |
110 public: | 110 public: |
111 ~Isolate(); | 111 ~Isolate(); |
112 | 112 |
113 static inline Isolate* Current() { | 113 static inline Isolate* Current() { |
114 return reinterpret_cast<Isolate*>(Thread::GetThreadLocal(isolate_key)); | 114 return reinterpret_cast<Isolate*>(OSThread::GetThreadLocal(isolate_key)); |
115 } | 115 } |
116 | 116 |
117 static void SetCurrent(Isolate* isolate); | 117 static void SetCurrent(Isolate* isolate); |
118 | 118 |
119 static void InitOnce(); | 119 static void InitOnce(); |
120 static Isolate* Init(const char* name_prefix); | 120 static Isolate* Init(const char* name_prefix); |
121 void Shutdown(); | 121 void Shutdown(); |
122 | 122 |
123 Isolate* ShallowCopy(); | 123 Isolate* ShallowCopy(); |
124 | 124 |
(...skipping 738 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
863 uint8_t* serialized_args_; | 863 uint8_t* serialized_args_; |
864 intptr_t serialized_args_len_; | 864 intptr_t serialized_args_len_; |
865 uint8_t* serialized_message_; | 865 uint8_t* serialized_message_; |
866 intptr_t serialized_message_len_; | 866 intptr_t serialized_message_len_; |
867 bool paused_; | 867 bool paused_; |
868 }; | 868 }; |
869 | 869 |
870 } // namespace dart | 870 } // namespace dart |
871 | 871 |
872 #endif // VM_ISOLATE_H_ | 872 #endif // VM_ISOLATE_H_ |
OLD | NEW |