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, |