Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(563)

Side by Side Diff: runtime/vm/isolate.h

Issue 1343383003: VM: Store edge counters in one per-function array. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « runtime/vm/intermediate_language_x64.cc ('k') | runtime/vm/isolate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
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_
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language_x64.cc ('k') | runtime/vm/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698