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

Unified Diff: runtime/vm/il_printer.cc

Issue 246303004: Fixes bug where we would occasionally materialize a corrupted object. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 8 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
Index: runtime/vm/il_printer.cc
diff --git a/runtime/vm/il_printer.cc b/runtime/vm/il_printer.cc
index 38f9c2a0c6feaf2238758982bb22e89f7d46722c..db67698ecc3adffcf2e456c8bf7ea265c291f9d0 100644
--- a/runtime/vm/il_printer.cc
+++ b/runtime/vm/il_printer.cc
@@ -1057,4 +1057,11 @@ void Environment::PrintTo(BufferFormatter* f) const {
if (outer_ != NULL) outer_->PrintTo(f);
}
+const char* Environment::ToCString() const {
+ char buffer[1024];
+ BufferFormatter bf(buffer, 1024);
+ PrintTo(&bf);
+ return Isolate::Current()->current_zone()->MakeCopyOfString(buffer);
+}
+
} // namespace dart

Powered by Google App Engine
This is Rietveld 408576698