| OLD | NEW |
| 1 // Copyright (c) 2012, 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 "platform/thread.h" | 10 #include "platform/thread.h" |
| 11 #include "vm/base_isolate.h" | 11 #include "vm/base_isolate.h" |
| (...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 293 return file_close_callback_; | 293 return file_close_callback_; |
| 294 } | 294 } |
| 295 | 295 |
| 296 intptr_t* deopt_cpu_registers_copy() const { | 296 intptr_t* deopt_cpu_registers_copy() const { |
| 297 return deopt_cpu_registers_copy_; | 297 return deopt_cpu_registers_copy_; |
| 298 } | 298 } |
| 299 void set_deopt_cpu_registers_copy(intptr_t* value) { | 299 void set_deopt_cpu_registers_copy(intptr_t* value) { |
| 300 ASSERT((value == NULL) || (deopt_cpu_registers_copy_ == NULL)); | 300 ASSERT((value == NULL) || (deopt_cpu_registers_copy_ == NULL)); |
| 301 deopt_cpu_registers_copy_ = value; | 301 deopt_cpu_registers_copy_ = value; |
| 302 } | 302 } |
| 303 double* deopt_xmm_registers_copy() const { | 303 double* deopt_fpu_registers_copy() const { |
| 304 return deopt_xmm_registers_copy_; | 304 return deopt_fpu_registers_copy_; |
| 305 } | 305 } |
| 306 void set_deopt_xmm_registers_copy(double* value) { | 306 void set_deopt_fpu_registers_copy(double* value) { |
| 307 ASSERT((value == NULL) || (deopt_xmm_registers_copy_ == NULL)); | 307 ASSERT((value == NULL) || (deopt_fpu_registers_copy_ == NULL)); |
| 308 deopt_xmm_registers_copy_ = value; | 308 deopt_fpu_registers_copy_ = value; |
| 309 } | 309 } |
| 310 intptr_t* deopt_frame_copy() const { return deopt_frame_copy_; } | 310 intptr_t* deopt_frame_copy() const { return deopt_frame_copy_; } |
| 311 void SetDeoptFrameCopy(intptr_t* value, intptr_t size) { | 311 void SetDeoptFrameCopy(intptr_t* value, intptr_t size) { |
| 312 ASSERT((value == NULL) || (size > 0)); | 312 ASSERT((value == NULL) || (size > 0)); |
| 313 ASSERT((value == NULL) || (deopt_frame_copy_ == NULL)); | 313 ASSERT((value == NULL) || (deopt_frame_copy_ == NULL)); |
| 314 deopt_frame_copy_ = value; | 314 deopt_frame_copy_ = value; |
| 315 deopt_frame_copy_size_ = size; | 315 deopt_frame_copy_size_ = size; |
| 316 } | 316 } |
| 317 intptr_t deopt_frame_copy_size() const { return deopt_frame_copy_size_; } | 317 intptr_t deopt_frame_copy_size() const { return deopt_frame_copy_size_; } |
| 318 | 318 |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 371 Mutex* mutex_; // protects stack_limit_ and saved_stack_limit_. | 371 Mutex* mutex_; // protects stack_limit_ and saved_stack_limit_. |
| 372 uword stack_limit_; | 372 uword stack_limit_; |
| 373 uword saved_stack_limit_; | 373 uword saved_stack_limit_; |
| 374 MessageHandler* message_handler_; | 374 MessageHandler* message_handler_; |
| 375 uword spawn_data_; | 375 uword spawn_data_; |
| 376 GcPrologueCallbacks gc_prologue_callbacks_; | 376 GcPrologueCallbacks gc_prologue_callbacks_; |
| 377 GcEpilogueCallbacks gc_epilogue_callbacks_; | 377 GcEpilogueCallbacks gc_epilogue_callbacks_; |
| 378 | 378 |
| 379 // Deoptimization support. | 379 // Deoptimization support. |
| 380 intptr_t* deopt_cpu_registers_copy_; | 380 intptr_t* deopt_cpu_registers_copy_; |
| 381 double* deopt_xmm_registers_copy_; | 381 double* deopt_fpu_registers_copy_; |
| 382 intptr_t* deopt_frame_copy_; | 382 intptr_t* deopt_frame_copy_; |
| 383 intptr_t deopt_frame_copy_size_; | 383 intptr_t deopt_frame_copy_size_; |
| 384 DeferredDouble* deferred_doubles_; | 384 DeferredDouble* deferred_doubles_; |
| 385 DeferredMint* deferred_mints_; | 385 DeferredMint* deferred_mints_; |
| 386 | 386 |
| 387 static Dart_IsolateCreateCallback create_callback_; | 387 static Dart_IsolateCreateCallback create_callback_; |
| 388 static Dart_IsolateInterruptCallback interrupt_callback_; | 388 static Dart_IsolateInterruptCallback interrupt_callback_; |
| 389 static Dart_IsolateUnhandledExceptionCallback unhandled_exception_callback_; | 389 static Dart_IsolateUnhandledExceptionCallback unhandled_exception_callback_; |
| 390 static Dart_IsolateShutdownCallback shutdown_callback_; | 390 static Dart_IsolateShutdownCallback shutdown_callback_; |
| 391 static Dart_FileOpenCallback file_open_callback_; | 391 static Dart_FileOpenCallback file_open_callback_; |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 455 Isolate* new_isolate_; | 455 Isolate* new_isolate_; |
| 456 Isolate* saved_isolate_; | 456 Isolate* saved_isolate_; |
| 457 uword saved_stack_limit_; | 457 uword saved_stack_limit_; |
| 458 | 458 |
| 459 DISALLOW_COPY_AND_ASSIGN(SwitchIsolateScope); | 459 DISALLOW_COPY_AND_ASSIGN(SwitchIsolateScope); |
| 460 }; | 460 }; |
| 461 | 461 |
| 462 } // namespace dart | 462 } // namespace dart |
| 463 | 463 |
| 464 #endif // VM_ISOLATE_H_ | 464 #endif // VM_ISOLATE_H_ |
| OLD | NEW |