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

Unified Diff: runtime/vm/object.h

Issue 227423005: Add TraceBuffer log to all Functions (plus small tweaks to function-view) (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 8 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/object.h
diff --git a/runtime/vm/object.h b/runtime/vm/object.h
index 00f87c50eaccc9b40571064c9b044d7ff421a1ab..eac7fc0afa796fa71f8d5565d7357a05f985ed96 100644
--- a/runtime/vm/object.h
+++ b/runtime/vm/object.h
@@ -1895,6 +1895,16 @@ class Function : public Object {
return RoundedAllocationSize(sizeof(RawFunction));
}
+ TraceBuffer* log() const {
+ ASSERT(raw_ptr()->log_ != NULL);
+ return raw_ptr()->log_;
+ }
turnidge 2014/04/14 16:41:17 I've been pondering how we can attach json objects
+
+ void set_log(TraceBuffer* trace_buffer) const {
+ ASSERT(trace_buffer != NULL);
+ raw_ptr()->log_ = trace_buffer;
+ }
+
static RawFunction* New(const String& name,
RawFunction::Kind kind,
bool is_static,

Powered by Google App Engine
This is Rietveld 408576698