| 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" |
| (...skipping 499 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 510 TraceBuffer* trace_buffer() { | 510 TraceBuffer* trace_buffer() { |
| 511 return trace_buffer_; | 511 return trace_buffer_; |
| 512 } | 512 } |
| 513 | 513 |
| 514 DeoptContext* deopt_context() const { return deopt_context_; } | 514 DeoptContext* deopt_context() const { return deopt_context_; } |
| 515 void set_deopt_context(DeoptContext* value) { | 515 void set_deopt_context(DeoptContext* value) { |
| 516 ASSERT(value == NULL || deopt_context_ == NULL); | 516 ASSERT(value == NULL || deopt_context_ == NULL); |
| 517 deopt_context_ = value; | 517 deopt_context_ = value; |
| 518 } | 518 } |
| 519 | 519 |
| 520 int32_t edge_counter_increment_size() const { |
| 521 return edge_counter_increment_size_; |
| 522 } |
| 523 void set_edge_counter_increment_size(int32_t size) { |
| 524 ASSERT(edge_counter_increment_size_ == -1); |
| 525 ASSERT(size >= 0); |
| 526 edge_counter_increment_size_ = size; |
| 527 } |
| 528 |
| 520 void UpdateLastAllocationProfileAccumulatorResetTimestamp() { | 529 void UpdateLastAllocationProfileAccumulatorResetTimestamp() { |
| 521 last_allocationprofile_accumulator_reset_timestamp_ = | 530 last_allocationprofile_accumulator_reset_timestamp_ = |
| 522 OS::GetCurrentTimeMillis(); | 531 OS::GetCurrentTimeMillis(); |
| 523 } | 532 } |
| 524 | 533 |
| 525 int64_t last_allocationprofile_accumulator_reset_timestamp() const { | 534 int64_t last_allocationprofile_accumulator_reset_timestamp() const { |
| 526 return last_allocationprofile_accumulator_reset_timestamp_; | 535 return last_allocationprofile_accumulator_reset_timestamp_; |
| 527 } | 536 } |
| 528 | 537 |
| 529 void UpdateLastAllocationProfileGCTimestamp() { | 538 void UpdateLastAllocationProfileGCTimestamp() { |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 701 uword stack_base_; | 710 uword stack_base_; |
| 702 uword stack_overflow_flags_; | 711 uword stack_overflow_flags_; |
| 703 int32_t stack_overflow_count_; | 712 int32_t stack_overflow_count_; |
| 704 MessageHandler* message_handler_; | 713 MessageHandler* message_handler_; |
| 705 IsolateSpawnState* spawn_state_; | 714 IsolateSpawnState* spawn_state_; |
| 706 bool is_runnable_; | 715 bool is_runnable_; |
| 707 Dart_GcPrologueCallback gc_prologue_callback_; | 716 Dart_GcPrologueCallback gc_prologue_callback_; |
| 708 Dart_GcEpilogueCallback gc_epilogue_callback_; | 717 Dart_GcEpilogueCallback gc_epilogue_callback_; |
| 709 intptr_t defer_finalization_count_; | 718 intptr_t defer_finalization_count_; |
| 710 DeoptContext* deopt_context_; | 719 DeoptContext* deopt_context_; |
| 720 int32_t edge_counter_increment_size_; |
| 711 | 721 |
| 712 // Log. | 722 // Log. |
| 713 bool is_service_isolate_; | 723 bool is_service_isolate_; |
| 714 class Log* log_; | 724 class Log* log_; |
| 715 | 725 |
| 716 // Status support. | 726 // Status support. |
| 717 char* stacktrace_; | 727 char* stacktrace_; |
| 718 intptr_t stack_frame_index_; | 728 intptr_t stack_frame_index_; |
| 719 | 729 |
| 720 // Timestamps of last operation via service. | 730 // Timestamps of last operation via service. |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 912 uint8_t* serialized_args_; | 922 uint8_t* serialized_args_; |
| 913 intptr_t serialized_args_len_; | 923 intptr_t serialized_args_len_; |
| 914 uint8_t* serialized_message_; | 924 uint8_t* serialized_message_; |
| 915 intptr_t serialized_message_len_; | 925 intptr_t serialized_message_len_; |
| 916 bool paused_; | 926 bool paused_; |
| 917 }; | 927 }; |
| 918 | 928 |
| 919 } // namespace dart | 929 } // namespace dart |
| 920 | 930 |
| 921 #endif // VM_ISOLATE_H_ | 931 #endif // VM_ISOLATE_H_ |
| OLD | NEW |