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

Unified Diff: runtime/vm/object.h

Issue 2584613002: PATCH (not to be comitted): Support for printing instruction statistics
Patch Set: Fixed polymorphic call inside try, added more tags for remaining unknown code Created 4 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
« no previous file with comments | « runtime/vm/intermediate_language_x64.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
diff --git a/runtime/vm/object.h b/runtime/vm/object.h
index 61a2866e27bbafd89d2dee7514b7633fd0217004..45b0f16c24c97cfe1740b3c2432573b2c4cd2d64 100644
--- a/runtime/vm/object.h
+++ b/runtime/vm/object.h
@@ -4748,6 +4748,19 @@ class Code : public Object {
const Comments& comments() const;
void set_comments(const Comments& comments) const;
+ CodeStatistics* stats() const {
+#ifdef DART_PRECOMPILER
+ return raw_ptr()->function_stats_;
+#else
+ return NULL;
+#endif
+ }
+ void set_stats(CodeStatistics* stats) const {
+#ifdef DART_PRECOMPILER
+ StoreNonPointer(&raw_ptr()->function_stats_, stats);
+#endif
+ }
+
RawObject* return_address_metadata() const {
#if defined(DART_PRECOMPILED_RUNTIME)
UNREACHABLE();
« no previous file with comments | « runtime/vm/intermediate_language_x64.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698