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

Unified Diff: runtime/vm/object.cc

Issue 1317753004: Eliminate LocalVarDescriptors in some corner cases (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 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/compiler.cc ('k') | runtime/vm/parser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.cc
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc
index 86d461ac28b466c3ba800752a4cfa955947de53c..fb5e3e59d6b7f93079ef26d19063ef05f03f22bf 100644
--- a/runtime/vm/object.cc
+++ b/runtime/vm/object.cc
@@ -4229,13 +4229,15 @@ RawLibraryPrefix* Class::LookupLibraryPrefix(const String& name) const {
const char* Class::ToCString() const {
- const char* format = "%s Class: %s";
+ const char* format = "%s %sClass: %s";
const Library& lib = Library::Handle(library());
const char* library_name = lib.IsNull() ? "" : lib.ToCString();
+ const char* patch_prefix = is_patch() ? "Patch " : "";
const char* class_name = String::Handle(Name()).ToCString();
- intptr_t len = OS::SNPrint(NULL, 0, format, library_name, class_name) + 1;
+ intptr_t len =
+ OS::SNPrint(NULL, 0, format, library_name, patch_prefix, class_name) + 1;
char* chars = Thread::Current()->zone()->Alloc<char>(len);
- OS::SNPrint(chars, len, format, library_name, class_name);
+ OS::SNPrint(chars, len, format, library_name, patch_prefix, class_name);
return chars;
}
« no previous file with comments | « runtime/vm/compiler.cc ('k') | runtime/vm/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698