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 "platform/thread.h" | 10 #include "platform/thread.h" |
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
398 } | 398 } |
399 | 399 |
400 static bool IsDeoptBefore(intptr_t deopt_id) { | 400 static bool IsDeoptBefore(intptr_t deopt_id) { |
401 return (deopt_id % kDeoptIdStep) == kDeoptIdBeforeOffset; | 401 return (deopt_id % kDeoptIdStep) == kDeoptIdBeforeOffset; |
402 } | 402 } |
403 | 403 |
404 static bool IsDeoptAfter(intptr_t deopt_id) { | 404 static bool IsDeoptAfter(intptr_t deopt_id) { |
405 return (deopt_id % kDeoptIdStep) == kDeoptIdAfterOffset; | 405 return (deopt_id % kDeoptIdStep) == kDeoptIdAfterOffset; |
406 } | 406 } |
407 | 407 |
408 RawArray* ic_data_array() const { return ic_data_array_; } | |
409 void set_ic_data_array(RawArray* value) { ic_data_array_ = value; } | |
410 ICData* GetICDataForDeoptId(intptr_t deopt_id) const; | |
411 | |
412 Mutex* mutex() const { return mutex_; } | 408 Mutex* mutex() const { return mutex_; } |
413 | 409 |
414 Debugger* debugger() const { return debugger_; } | 410 Debugger* debugger() const { return debugger_; } |
415 | 411 |
416 Simulator* simulator() const { return simulator_; } | 412 Simulator* simulator() const { return simulator_; } |
417 void set_simulator(Simulator* value) { simulator_ = value; } | 413 void set_simulator(Simulator* value) { simulator_ = value; } |
418 | 414 |
419 GcPrologueCallbacks& gc_prologue_callbacks() { | 415 GcPrologueCallbacks& gc_prologue_callbacks() { |
420 return gc_prologue_callbacks_; | 416 return gc_prologue_callbacks_; |
421 } | 417 } |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
608 uword top_exit_frame_info_; | 604 uword top_exit_frame_info_; |
609 void* init_callback_data_; | 605 void* init_callback_data_; |
610 Dart_LibraryTagHandler library_tag_handler_; | 606 Dart_LibraryTagHandler library_tag_handler_; |
611 ApiState* api_state_; | 607 ApiState* api_state_; |
612 StubCode* stub_code_; | 608 StubCode* stub_code_; |
613 Debugger* debugger_; | 609 Debugger* debugger_; |
614 Simulator* simulator_; | 610 Simulator* simulator_; |
615 LongJump* long_jump_base_; | 611 LongJump* long_jump_base_; |
616 TimerList timer_list_; | 612 TimerList timer_list_; |
617 intptr_t deopt_id_; | 613 intptr_t deopt_id_; |
618 RawArray* ic_data_array_; | |
619 Mutex* mutex_; // protects stack_limit_ and saved_stack_limit_. | 614 Mutex* mutex_; // protects stack_limit_ and saved_stack_limit_. |
620 uword stack_limit_; | 615 uword stack_limit_; |
621 uword saved_stack_limit_; | 616 uword saved_stack_limit_; |
622 MessageHandler* message_handler_; | 617 MessageHandler* message_handler_; |
623 uword spawn_data_; | 618 uword spawn_data_; |
624 bool is_runnable_; | 619 bool is_runnable_; |
625 IsolateRunState running_state_; | 620 IsolateRunState running_state_; |
626 GcPrologueCallbacks gc_prologue_callbacks_; | 621 GcPrologueCallbacks gc_prologue_callbacks_; |
627 GcEpilogueCallbacks gc_epilogue_callbacks_; | 622 GcEpilogueCallbacks gc_epilogue_callbacks_; |
628 | 623 |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
762 | 757 |
763 private: | 758 private: |
764 Isolate::IsolateRunState saved_state_; | 759 Isolate::IsolateRunState saved_state_; |
765 | 760 |
766 DISALLOW_COPY_AND_ASSIGN(IsolateRunStateManager); | 761 DISALLOW_COPY_AND_ASSIGN(IsolateRunStateManager); |
767 }; | 762 }; |
768 | 763 |
769 } // namespace dart | 764 } // namespace dart |
770 | 765 |
771 #endif // VM_ISOLATE_H_ | 766 #endif // VM_ISOLATE_H_ |
OLD | NEW |