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

Unified Diff: runtime/vm/il_printer.cc

Issue 1723733002: Simplify various name flavors in VM. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: address what was discussed in meeting Created 4 years, 10 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 207167cb25acd8ea5c65cb4e011f0b1feaeb394c..c795d55e2bc4e13c682f17f2b1defb7c0d710856 100644
--- a/runtime/vm/il_printer.cc
+++ b/runtime/vm/il_printer.cc
@@ -171,7 +171,7 @@ void CompileType::PrintTo(BufferFormatter* f) const {
if ((cid_ != kIllegalCid) && (cid_ != kDynamicCid)) {
const Class& cls =
Class::Handle(Isolate::Current()->class_table()->At(cid_));
- type_name = String::Handle(cls.PrettyName()).ToCString();
+ type_name = String::Handle(cls.ScrubbedName()).ToCString();
} else if (type_ != NULL &&
!type_->Equals(Type::Handle(Type::DynamicType()))) {
type_name = type_->ToCString();
@@ -565,7 +565,7 @@ void RelationalOpInstr::PrintOperandsTo(BufferFormatter* f) const {
void AllocateObjectInstr::PrintOperandsTo(BufferFormatter* f) const {
- f->Print("%s", String::Handle(cls().PrettyName()).ToCString());
+ f->Print("%s", String::Handle(cls().ScrubbedName()).ToCString());
for (intptr_t i = 0; i < ArgumentCount(); i++) {
f->Print(", ");
PushArgumentAt(i)->value()->PrintTo(f);
@@ -578,7 +578,7 @@ void AllocateObjectInstr::PrintOperandsTo(BufferFormatter* f) const {
void MaterializeObjectInstr::PrintOperandsTo(BufferFormatter* f) const {
- f->Print("%s", String::Handle(cls_.PrettyName()).ToCString());
+ f->Print("%s", String::Handle(cls_.ScrubbedName()).ToCString());
for (intptr_t i = 0; i < InputCount(); i++) {
f->Print(", ");
f->Print("%s: ", slots_[i]->ToCString());
@@ -926,7 +926,7 @@ void CheckClassIdInstr::PrintOperandsTo(BufferFormatter* f) const {
const Class& cls =
Class::Handle(Isolate::Current()->class_table()->At(cid()));
- f->Print(", %s", String::Handle(cls.PrettyName()).ToCString());
+ f->Print(", %s", String::Handle(cls.ScrubbedName()).ToCString());
}

Powered by Google App Engine
This is Rietveld 408576698