Chromium Code Reviews| 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, |