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

Unified Diff: runtime/vm/locations.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
« no previous file with comments | « runtime/vm/locations.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/locations.cc
diff --git a/runtime/vm/locations.cc b/runtime/vm/locations.cc
index 41a3d79cb1eb7777eea06189fdcf92e42a4b9e2a..d9d044aa792335826a37dd7ca2c7e0dba1c8a94c 100644
--- a/runtime/vm/locations.cc
+++ b/runtime/vm/locations.cc
@@ -216,6 +216,14 @@ void Location::PrintTo(BufferFormatter* f) const {
}
+const char* Location::ToCString() const {
+ char buffer[1024];
+ BufferFormatter bf(buffer, 1024);
+ PrintTo(&bf);
+ return Isolate::Current()->current_zone()->MakeCopyOfString(buffer);
+}
+
+
void Location::Print() const {
if (kind() == kStackSlot) {
OS::Print("S%+" Pd "", stack_index());
« no previous file with comments | « runtime/vm/locations.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698