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

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 comments 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
« no previous file with comments | « runtime/vm/deopt_instructions.cc ('k') | runtime/vm/intermediate_language_arm.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/il_printer.cc
diff --git a/runtime/vm/il_printer.cc b/runtime/vm/il_printer.cc
index 4ccb260b796c3985fc6c98ae31e2385a91db45f7..b3e48f18751d42aabe9e8e32c6ab097c01cceadb 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();
@@ -568,7 +568,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);
@@ -581,7 +581,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());
@@ -929,7 +929,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());
}
« no previous file with comments | « runtime/vm/deopt_instructions.cc ('k') | runtime/vm/intermediate_language_arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698