OLD | NEW |
---|---|
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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/class_table.h" | 10 #include "vm/class_table.h" |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
167 | 167 |
168 void ScheduleInterrupts(uword interrupt_bits); | 168 void ScheduleInterrupts(uword interrupt_bits); |
169 uword GetAndClearInterrupts(); | 169 uword GetAndClearInterrupts(); |
170 | 170 |
171 MessageHandler* message_handler() const { return message_handler_; } | 171 MessageHandler* message_handler() const { return message_handler_; } |
172 void set_message_handler(MessageHandler* value) { message_handler_ = value; } | 172 void set_message_handler(MessageHandler* value) { message_handler_ = value; } |
173 | 173 |
174 uword spawn_data() const { return spawn_data_; } | 174 uword spawn_data() const { return spawn_data_; } |
175 void set_spawn_data(uword value) { spawn_data_ = value; } | 175 void set_spawn_data(uword value) { spawn_data_ = value; } |
176 | 176 |
177 // Deprecate. | 177 static const intptr_t kNoDeoptId = -1; |
srdjan
2012/08/04 00:53:25
Weird indentation.
regis
2012/08/06 19:51:44
Done.
| |
178 intptr_t ast_node_id() const { return ast_node_id_; } | 178 intptr_t deopt_id() const { return deopt_id_; } |
179 void set_ast_node_id(int value) { ast_node_id_ = value; } | 179 void set_deopt_id(int value) { deopt_id_ = value; } |
srdjan
2012/08/04 00:53:25
ASSERT(value >= 0);
regis
2012/08/06 19:51:44
Done.
| |
180 | 180 intptr_t GetNextDeoptId() { return deopt_id_++; } |
srdjan
2012/08/04 00:53:25
ASSERT(deopt_id != kNoDeoptId);
regis
2012/08/06 19:51:44
Done.
| |
181 intptr_t computation_id() const { return computation_id_; } | |
182 void set_computation_id(int value) { computation_id_ = value; } | |
183 intptr_t GetNextCid() { return computation_id_++; } | |
184 | 181 |
185 RawArray* ic_data_array() const { return ic_data_array_; } | 182 RawArray* ic_data_array() const { return ic_data_array_; } |
186 void set_ic_data_array(RawArray* value) { ic_data_array_ = value; } | 183 void set_ic_data_array(RawArray* value) { ic_data_array_ = value; } |
187 ICData* GetICDataForCid(intptr_t cid) const; | 184 ICData* GetICDataForDeoptId(intptr_t deopt_id) const; |
188 | 185 |
189 Debugger* debugger() const { return debugger_; } | 186 Debugger* debugger() const { return debugger_; } |
190 | 187 |
191 GcPrologueCallbacks& gc_prologue_callbacks() { | 188 GcPrologueCallbacks& gc_prologue_callbacks() { |
192 return gc_prologue_callbacks_; | 189 return gc_prologue_callbacks_; |
193 } | 190 } |
194 | 191 |
195 GcEpilogueCallbacks& gc_epilogue_callbacks() { | 192 GcEpilogueCallbacks& gc_epilogue_callbacks() { |
196 return gc_epilogue_callbacks_; | 193 return gc_epilogue_callbacks_; |
197 } | 194 } |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
251 RawContext* top_context_; | 248 RawContext* top_context_; |
252 int32_t random_seed_; | 249 int32_t random_seed_; |
253 uword top_exit_frame_info_; | 250 uword top_exit_frame_info_; |
254 void* init_callback_data_; | 251 void* init_callback_data_; |
255 Dart_LibraryTagHandler library_tag_handler_; | 252 Dart_LibraryTagHandler library_tag_handler_; |
256 ApiState* api_state_; | 253 ApiState* api_state_; |
257 StubCode* stub_code_; | 254 StubCode* stub_code_; |
258 Debugger* debugger_; | 255 Debugger* debugger_; |
259 LongJump* long_jump_base_; | 256 LongJump* long_jump_base_; |
260 TimerList timer_list_; | 257 TimerList timer_list_; |
261 intptr_t ast_node_id_; // Deprecate. | 258 intptr_t deopt_id_; |
262 intptr_t computation_id_; | |
263 RawArray* ic_data_array_; | 259 RawArray* ic_data_array_; |
264 Mutex* mutex_; // protects stack_limit_ and saved_stack_limit_. | 260 Mutex* mutex_; // protects stack_limit_ and saved_stack_limit_. |
265 uword stack_limit_; | 261 uword stack_limit_; |
266 uword saved_stack_limit_; | 262 uword saved_stack_limit_; |
267 MessageHandler* message_handler_; | 263 MessageHandler* message_handler_; |
268 uword spawn_data_; | 264 uword spawn_data_; |
269 GcPrologueCallbacks gc_prologue_callbacks_; | 265 GcPrologueCallbacks gc_prologue_callbacks_; |
270 GcEpilogueCallbacks gc_epilogue_callbacks_; | 266 GcEpilogueCallbacks gc_epilogue_callbacks_; |
271 // Deoptimization support. | 267 // Deoptimization support. |
272 intptr_t* deopt_registers_copy_; | 268 intptr_t* deopt_registers_copy_; |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
340 Isolate* new_isolate_; | 336 Isolate* new_isolate_; |
341 Isolate* saved_isolate_; | 337 Isolate* saved_isolate_; |
342 uword saved_stack_limit_; | 338 uword saved_stack_limit_; |
343 | 339 |
344 DISALLOW_COPY_AND_ASSIGN(SwitchIsolateScope); | 340 DISALLOW_COPY_AND_ASSIGN(SwitchIsolateScope); |
345 }; | 341 }; |
346 | 342 |
347 } // namespace dart | 343 } // namespace dart |
348 | 344 |
349 #endif // VM_ISOLATE_H_ | 345 #endif // VM_ISOLATE_H_ |
OLD | NEW |