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

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
« no previous file with comments | « runtime/vm/deopt_instructions.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 681d05b088d19ba01730b329d986a0f4e01d8cc8..7acb8d91fbf0ca51c8c0911a8411f6fd6c70d75c 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_;
+ }
+
+ 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,
« no previous file with comments | « runtime/vm/deopt_instructions.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698