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

Unified Diff: runtime/vm/isolate.h

Issue 1031673004: Caches the edge counter increment size in the isolate() (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: runtime/vm/isolate.h
===================================================================
--- runtime/vm/isolate.h (revision 44638)
+++ runtime/vm/isolate.h (working copy)
@@ -517,6 +517,15 @@
deopt_context_ = value;
}
+ int32_t edge_counter_increment_size() const {
+ return edge_counter_increment_size_;
+ }
+ void set_edge_counter_increment_size(int32_t size) {
+ ASSERT(edge_counter_increment_size_ == -1);
+ ASSERT(size >= 0);
+ edge_counter_increment_size_ = size;
+ }
+
void UpdateLastAllocationProfileAccumulatorResetTimestamp() {
last_allocationprofile_accumulator_reset_timestamp_ =
OS::GetCurrentTimeMillis();
@@ -708,6 +717,7 @@
Dart_GcEpilogueCallback gc_epilogue_callback_;
intptr_t defer_finalization_count_;
DeoptContext* deopt_context_;
+ int32_t edge_counter_increment_size_;
// Log.
bool is_service_isolate_;

Powered by Google App Engine
This is Rietveld 408576698