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

Unified Diff: runtime/vm/object.h

Issue 9460015: Do not count invocations but usage of a function, i.e., increment a function's counter at IC calls … (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 10 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
« no previous file with comments | « runtime/vm/isolate.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.h
===================================================================
--- runtime/vm/object.h (revision 4582)
+++ runtime/vm/object.h (working copy)
@@ -1336,14 +1336,14 @@
}
void set_num_optional_parameters(intptr_t value) const;
- static intptr_t invocation_counter_offset() {
- return OFFSET_OF(RawFunction, invocation_counter_);
+ static intptr_t usage_counter_offset() {
+ return OFFSET_OF(RawFunction, usage_counter_);
}
- intptr_t invocation_counter() const {
- return raw_ptr()->invocation_counter_;
+ intptr_t usage_counter() const {
+ return raw_ptr()->usage_counter_;
}
- void set_invocation_counter(intptr_t value) const {
- raw_ptr()->invocation_counter_ = value;
+ void set_usage_counter(intptr_t value) const {
+ raw_ptr()->usage_counter_ = value;
}
intptr_t deoptimization_counter() const {
@@ -3654,6 +3654,10 @@
return OFFSET_OF(RawICData, ic_data_);
}
+ static intptr_t function_offset() {
+ return OFFSET_OF(RawICData, function_);
+ }
+
void AddCheck(const GrowableArray<const Class*>& classes,
const Function& target) const;
void GetCheckAt(intptr_t index,
« no previous file with comments | « runtime/vm/isolate.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698