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 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 | 215 |
216 static void SetShutdownCallback(Dart_IsolateShutdownCallback cb) { | 216 static void SetShutdownCallback(Dart_IsolateShutdownCallback cb) { |
217 shutdown_callback_ = cb; | 217 shutdown_callback_ = cb; |
218 } | 218 } |
219 static Dart_IsolateShutdownCallback ShutdownCallback() { | 219 static Dart_IsolateShutdownCallback ShutdownCallback() { |
220 return shutdown_callback_; | 220 return shutdown_callback_; |
221 } | 221 } |
222 | 222 |
223 intptr_t* deopt_registers_copy() const { return deopt_registers_copy_; } | 223 intptr_t* deopt_registers_copy() const { return deopt_registers_copy_; } |
224 void set_deopt_registers_copy(intptr_t* value) { | 224 void set_deopt_registers_copy(intptr_t* value) { |
| 225 ASSERT((value == NULL) || (deopt_registers_copy_ == NULL)); |
225 deopt_registers_copy_ = value; | 226 deopt_registers_copy_ = value; |
226 } | 227 } |
227 intptr_t* deopt_frame_copy() const { return deopt_frame_copy_; } | 228 intptr_t* deopt_frame_copy() const { return deopt_frame_copy_; } |
228 void SetDeoptFrameCopy(intptr_t* value, intptr_t size) { | 229 void SetDeoptFrameCopy(intptr_t* value, intptr_t size) { |
229 ASSERT((value == NULL) || (size > 0)); | 230 ASSERT((value == NULL) || (size > 0)); |
| 231 ASSERT((value == NULL) || (deopt_frame_copy_ == NULL)); |
230 deopt_frame_copy_ = value; | 232 deopt_frame_copy_ = value; |
231 deopt_frame_copy_size_ = size; | 233 deopt_frame_copy_size_ = size; |
232 } | 234 } |
233 intptr_t deopt_frame_copy_size() const { return deopt_frame_copy_size_; } | 235 intptr_t deopt_frame_copy_size() const { return deopt_frame_copy_size_; } |
234 | 236 |
235 private: | 237 private: |
236 Isolate(); | 238 Isolate(); |
237 | 239 |
238 void BuildName(const char* name_prefix); | 240 void BuildName(const char* name_prefix); |
239 void PrintInvokedFunctions(); | 241 void PrintInvokedFunctions(); |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
342 Isolate* new_isolate_; | 344 Isolate* new_isolate_; |
343 Isolate* saved_isolate_; | 345 Isolate* saved_isolate_; |
344 uword saved_stack_limit_; | 346 uword saved_stack_limit_; |
345 | 347 |
346 DISALLOW_COPY_AND_ASSIGN(SwitchIsolateScope); | 348 DISALLOW_COPY_AND_ASSIGN(SwitchIsolateScope); |
347 }; | 349 }; |
348 | 350 |
349 } // namespace dart | 351 } // namespace dart |
350 | 352 |
351 #endif // VM_ISOLATE_H_ | 353 #endif // VM_ISOLATE_H_ |
OLD | NEW |