Index: runtime/vm/disassembler.cc |
=================================================================== |
--- runtime/vm/disassembler.cc (revision 27344) |
+++ runtime/vm/disassembler.cc (working copy) |
@@ -44,7 +44,7 @@ |
intptr_t human_size, |
uword pc) { |
uint8_t* pc_ptr = reinterpret_cast<uint8_t*>(pc); |
- JSONObject jsobj(jsarr_); |
+ JSONObject jsobj(&jsarr_); |
jsobj.AddProperty("type", "DisassembledInstruction"); |
jsobj.AddPropertyF("pc", "%p", pc_ptr); |
jsobj.AddProperty("hex", hex_buffer); |
@@ -67,7 +67,7 @@ |
p[i] = ' '; |
} |
} |
- JSONObject jsobj(jsarr_); |
+ JSONObject jsobj(&jsarr_); |
jsobj.AddProperty("type", "DisassembledInstructionComment"); |
jsobj.AddProperty("comment", p); |
free(p); |