Index: runtime/vm/raw_object_snapshot.cc |
diff --git a/runtime/vm/raw_object_snapshot.cc b/runtime/vm/raw_object_snapshot.cc |
index 08e0ecb2e5a9a3659e85a2d1d7782e806f1d9dbc..cc75e8e176e5cf9b5e1219614651f1f54a51319b 100644 |
--- a/runtime/vm/raw_object_snapshot.cc |
+++ b/runtime/vm/raw_object_snapshot.cc |
@@ -8,6 +8,7 @@ |
#include "vm/snapshot.h" |
#include "vm/stub_code.h" |
#include "vm/symbols.h" |
+#include "vm/trace_buffer.h" |
#include "vm/visitor.h" |
namespace dart { |
@@ -701,6 +702,7 @@ RawFunction* Function::ReadFrom(SnapshotReader* reader, |
func.set_kind_tag(reader->Read<uint16_t>()); |
func.set_optimized_instruction_count(reader->Read<uint16_t>()); |
func.set_optimized_call_site_count(reader->Read<uint16_t>()); |
+ func.set_log(new TraceBuffer()); |
// Set all the object fields. |
// TODO(5411462): Need to assert No GC can happen here, even though |