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

Unified Diff: runtime/vm/il_printer.cc

Issue 304703002: Split GuardField into GuardFieldType and GuardFieldLength instructions. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 7 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 9a2002ec1ed2a9cd6ef866626ee9fe86c29e3fea..1ea3469a281b5494e3d0cdab50ca80b90299055d 100644
--- a/runtime/vm/il_printer.cc
+++ b/runtime/vm/il_printer.cc
@@ -439,17 +439,9 @@ void NativeCallInstr::PrintOperandsTo(BufferFormatter* f) const {
void GuardFieldInstr::PrintOperandsTo(BufferFormatter* f) const {
- const char* expected = "?";
- if (field().guarded_cid() != kIllegalCid) {
- const Class& cls = Class::Handle(
- Isolate::Current()->class_table()->At(field().guarded_cid()));
- expected = String::Handle(cls.Name()).ToCString();
- }
-
- f->Print("%s [%s %s], ",
+ f->Print("%s %s, ",
String::Handle(field().name()).ToCString(),
- field().is_nullable() ? "nullable" : "non-nullable",
- expected);
+ field().GuardedPropertiesAsCString());
value()->PrintTo(f);
}

Powered by Google App Engine
This is Rietveld 408576698