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

Unified Diff: runtime/vm/disassembler.h

Issue 23875015: - Base JSON stream printing on stack objects. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 3 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/coverage.cc ('k') | runtime/vm/disassembler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/disassembler.h
===================================================================
--- runtime/vm/disassembler.h (revision 27342)
+++ runtime/vm/disassembler.h (working copy)
@@ -13,7 +13,7 @@
// Froward declaration.
class MemoryRegion;
-class JSONStream;
+class JSONArray;
// Disassembly formatter interface, which consumes the
// disassembled instructions in any desired form.
@@ -58,8 +58,8 @@
// Disassemble into a JSONStream.
class DisassembleToJSONStream : public DisassemblyFormatter {
public:
- explicit DisassembleToJSONStream(JSONStream* stream) : DisassemblyFormatter(),
- stream_(stream) { }
+ explicit DisassembleToJSONStream(const JSONArray& jsarr)
+ : DisassemblyFormatter(), jsarr_(jsarr) { }
~DisassembleToJSONStream() { }
virtual void ConsumeInstruction(char* hex_buffer,
@@ -71,7 +71,7 @@
virtual void Print(const char* format, ...) PRINTF_ATTRIBUTE(2, 3);
private:
- JSONStream* stream_;
+ const JSONArray& jsarr_;
DISALLOW_ALLOCATION();
DISALLOW_COPY_AND_ASSIGN(DisassembleToJSONStream);
};
« no previous file with comments | « runtime/vm/coverage.cc ('k') | runtime/vm/disassembler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698