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

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: clean up comments, save space in IL Instruction class. Created 5 years, 3 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
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 564 matching lines...) Expand 10 before | Expand all | Expand 10 after
575 TraceBuffer* trace_buffer() { 575 TraceBuffer* trace_buffer() {
576 return trace_buffer_; 576 return trace_buffer_;
577 } 577 }
578 578
579 DeoptContext* deopt_context() const { return deopt_context_; } 579 DeoptContext* deopt_context() const { return deopt_context_; }
580 void set_deopt_context(DeoptContext* value) { 580 void set_deopt_context(DeoptContext* value) {
581 ASSERT(value == NULL || deopt_context_ == NULL); 581 ASSERT(value == NULL || deopt_context_ == NULL);
582 deopt_context_ = value; 582 deopt_context_ = value;
583 } 583 }
584 584
585 int32_t edge_counter_increment_size() const {
586 return edge_counter_increment_size_;
587 }
588 void set_edge_counter_increment_size(int32_t size) {
589 ASSERT(edge_counter_increment_size_ == -1);
590 ASSERT(size >= 0);
591 edge_counter_increment_size_ = size;
592 }
593
594 void UpdateLastAllocationProfileAccumulatorResetTimestamp() { 585 void UpdateLastAllocationProfileAccumulatorResetTimestamp() {
595 last_allocationprofile_accumulator_reset_timestamp_ = 586 last_allocationprofile_accumulator_reset_timestamp_ =
596 OS::GetCurrentTimeMillis(); 587 OS::GetCurrentTimeMillis();
597 } 588 }
598 589
599 int64_t last_allocationprofile_accumulator_reset_timestamp() const { 590 int64_t last_allocationprofile_accumulator_reset_timestamp() const {
600 return last_allocationprofile_accumulator_reset_timestamp_; 591 return last_allocationprofile_accumulator_reset_timestamp_;
601 } 592 }
602 593
603 void UpdateLastAllocationProfileGCTimestamp() { 594 void UpdateLastAllocationProfileGCTimestamp() {
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
855 uword stack_base_; 846 uword stack_base_;
856 uword stack_overflow_flags_; 847 uword stack_overflow_flags_;
857 int32_t stack_overflow_count_; 848 int32_t stack_overflow_count_;
858 MessageHandler* message_handler_; 849 MessageHandler* message_handler_;
859 IsolateSpawnState* spawn_state_; 850 IsolateSpawnState* spawn_state_;
860 bool is_runnable_; 851 bool is_runnable_;
861 Dart_GcPrologueCallback gc_prologue_callback_; 852 Dart_GcPrologueCallback gc_prologue_callback_;
862 Dart_GcEpilogueCallback gc_epilogue_callback_; 853 Dart_GcEpilogueCallback gc_epilogue_callback_;
863 intptr_t defer_finalization_count_; 854 intptr_t defer_finalization_count_;
864 DeoptContext* deopt_context_; 855 DeoptContext* deopt_context_;
865 int32_t edge_counter_increment_size_;
866 856
867 CompilerStats* compiler_stats_; 857 CompilerStats* compiler_stats_;
868 858
869 bool is_service_isolate_; 859 bool is_service_isolate_;
870 860
871 // Status support. 861 // Status support.
872 char* stacktrace_; 862 char* stacktrace_;
873 intptr_t stack_frame_index_; 863 intptr_t stack_frame_index_;
874 864
875 // Timestamps of last operation via service. 865 // Timestamps of last operation via service.
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
1127 uint8_t* serialized_message_; 1117 uint8_t* serialized_message_;
1128 intptr_t serialized_message_len_; 1118 intptr_t serialized_message_len_;
1129 Isolate::Flags isolate_flags_; 1119 Isolate::Flags isolate_flags_;
1130 bool paused_; 1120 bool paused_;
1131 bool errors_are_fatal_; 1121 bool errors_are_fatal_;
1132 }; 1122 };
1133 1123
1134 } // namespace dart 1124 } // namespace dart
1135 1125
1136 #endif // VM_ISOLATE_H_ 1126 #endif // VM_ISOLATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698