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

Unified Diff: runtime/vm/raw_object_snapshot.cc

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/raw_object.h ('k') | runtime/vm/stub_code.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/raw_object_snapshot.cc
===================================================================
--- runtime/vm/raw_object_snapshot.cc (revision 4582)
+++ runtime/vm/raw_object_snapshot.cc (working copy)
@@ -467,7 +467,7 @@
func.set_end_token_index(reader->ReadIntptrValue());
func.set_num_fixed_parameters(reader->ReadIntptrValue());
func.set_num_optional_parameters(reader->ReadIntptrValue());
- func.set_invocation_counter(reader->ReadIntptrValue());
+ func.set_usage_counter(reader->ReadIntptrValue());
func.set_deoptimization_counter(reader->ReadIntptrValue());
func.set_kind(static_cast<RawFunction::Kind >(reader->ReadIntptrValue()));
func.set_is_static(reader->Read<bool>());
@@ -503,7 +503,7 @@
writer->WriteIntptrValue(ptr()->end_token_index_);
writer->WriteIntptrValue(ptr()->num_fixed_parameters_);
writer->WriteIntptrValue(ptr()->num_optional_parameters_);
- writer->WriteIntptrValue(ptr()->invocation_counter_);
+ writer->WriteIntptrValue(ptr()->usage_counter_);
writer->WriteIntptrValue(ptr()->deoptimization_counter_);
writer->WriteIntptrValue(ptr()->kind_);
writer->Write<bool>(ptr()->is_static_);
« no previous file with comments | « runtime/vm/raw_object.h ('k') | runtime/vm/stub_code.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698