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/atomic.h" | 10 #include "vm/atomic.h" |
(...skipping 587 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
598 TraceBuffer* trace_buffer() { | 598 TraceBuffer* trace_buffer() { |
599 return trace_buffer_; | 599 return trace_buffer_; |
600 } | 600 } |
601 | 601 |
602 DeoptContext* deopt_context() const { return deopt_context_; } | 602 DeoptContext* deopt_context() const { return deopt_context_; } |
603 void set_deopt_context(DeoptContext* value) { | 603 void set_deopt_context(DeoptContext* value) { |
604 ASSERT(value == NULL || deopt_context_ == NULL); | 604 ASSERT(value == NULL || deopt_context_ == NULL); |
605 deopt_context_ = value; | 605 deopt_context_ = value; |
606 } | 606 } |
607 | 607 |
608 int32_t edge_counter_increment_size() const { | |
609 return edge_counter_increment_size_; | |
610 } | |
611 void set_edge_counter_increment_size(int32_t size) { | |
612 ASSERT(edge_counter_increment_size_ == -1); | |
613 ASSERT(size >= 0); | |
614 edge_counter_increment_size_ = size; | |
615 } | |
616 | |
617 void UpdateLastAllocationProfileAccumulatorResetTimestamp() { | 608 void UpdateLastAllocationProfileAccumulatorResetTimestamp() { |
618 last_allocationprofile_accumulator_reset_timestamp_ = | 609 last_allocationprofile_accumulator_reset_timestamp_ = |
619 OS::GetCurrentTimeMillis(); | 610 OS::GetCurrentTimeMillis(); |
620 } | 611 } |
621 | 612 |
622 int64_t last_allocationprofile_accumulator_reset_timestamp() const { | 613 int64_t last_allocationprofile_accumulator_reset_timestamp() const { |
623 return last_allocationprofile_accumulator_reset_timestamp_; | 614 return last_allocationprofile_accumulator_reset_timestamp_; |
624 } | 615 } |
625 | 616 |
626 void UpdateLastAllocationProfileGCTimestamp() { | 617 void UpdateLastAllocationProfileGCTimestamp() { |
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
877 uword stack_base_; | 868 uword stack_base_; |
878 uword stack_overflow_flags_; | 869 uword stack_overflow_flags_; |
879 int32_t stack_overflow_count_; | 870 int32_t stack_overflow_count_; |
880 MessageHandler* message_handler_; | 871 MessageHandler* message_handler_; |
881 IsolateSpawnState* spawn_state_; | 872 IsolateSpawnState* spawn_state_; |
882 bool is_runnable_; | 873 bool is_runnable_; |
883 Dart_GcPrologueCallback gc_prologue_callback_; | 874 Dart_GcPrologueCallback gc_prologue_callback_; |
884 Dart_GcEpilogueCallback gc_epilogue_callback_; | 875 Dart_GcEpilogueCallback gc_epilogue_callback_; |
885 intptr_t defer_finalization_count_; | 876 intptr_t defer_finalization_count_; |
886 DeoptContext* deopt_context_; | 877 DeoptContext* deopt_context_; |
887 int32_t edge_counter_increment_size_; | |
888 | 878 |
889 CompilerStats* compiler_stats_; | 879 CompilerStats* compiler_stats_; |
890 | 880 |
891 bool is_service_isolate_; | 881 bool is_service_isolate_; |
892 | 882 |
893 // Status support. | 883 // Status support. |
894 char* stacktrace_; | 884 char* stacktrace_; |
895 intptr_t stack_frame_index_; | 885 intptr_t stack_frame_index_; |
896 | 886 |
897 // Timestamps of last operation via service. | 887 // Timestamps of last operation via service. |
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1150 uint8_t* serialized_message_; | 1140 uint8_t* serialized_message_; |
1151 intptr_t serialized_message_len_; | 1141 intptr_t serialized_message_len_; |
1152 Isolate::Flags isolate_flags_; | 1142 Isolate::Flags isolate_flags_; |
1153 bool paused_; | 1143 bool paused_; |
1154 bool errors_are_fatal_; | 1144 bool errors_are_fatal_; |
1155 }; | 1145 }; |
1156 | 1146 |
1157 } // namespace dart | 1147 } // namespace dart |
1158 | 1148 |
1159 #endif // VM_ISOLATE_H_ | 1149 #endif // VM_ISOLATE_H_ |
OLD | NEW |