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

Unified Diff: runtime/vm/object.h

Issue 11567012: Store optimized flow graph statistics on the function itself. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years 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/object.h
diff --git a/runtime/vm/object.h b/runtime/vm/object.h
index 0acf40a3caccfa70bc79fcc6d7221a98ed0c58cb..a0c5fbf11c20a0d36c9161182699d62b68573f51 100644
--- a/runtime/vm/object.h
+++ b/runtime/vm/object.h
@@ -1288,6 +1288,20 @@ class Function : public Object {
raw_ptr()->deoptimization_counter_ = value;
}
+ uint16_t optimized_instruction_count() const {
srdjan 2012/12/13 19:00:17 I think it would be better to pass and return intp
Vyacheslav Egorov (Google) 2012/12/13 19:14:11 Done.
+ return raw_ptr()->optimized_instruction_count_;
+ }
+ void set_optimized_instruction_count(uint16_t value) const {
+ raw_ptr()->optimized_instruction_count_ = value;
+ }
+
+ uint16_t optimized_call_site_count() const {
+ return raw_ptr()->optimized_call_site_count_;
+ }
+ void set_optimized_call_site_count(uint16_t value) const {
+ raw_ptr()->optimized_call_site_count_ = value;
+ }
+
bool is_optimizable() const;
void set_is_optimizable(bool value) const;

Powered by Google App Engine
This is Rietveld 408576698