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

Unified Diff: runtime/vm/il_printer.cc

Issue 105143011: Optimize one byte string comparisons. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years 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
===================================================================
--- runtime/vm/il_printer.cc (revision 31282)
+++ runtime/vm/il_printer.cc (working copy)
@@ -977,6 +977,28 @@
}
+void StringCharCodeInstr::PrintTo(BufferFormatter* f) const {
+ PrintUse(f, *this);
+ if (is_used()) {
+ if (HasSSATemp() || (temp_index() != -1)) f->Print(" <- ");
+ }
+ f->Print("%s:%" Pd "(",
+ (kind() == kToCharCode) ? "StringToCharCode" : "StringFromCharCode",
+ GetDeoptId());
+ PrintOperandsTo(f);
+ f->Print(")");
+ if (range_ != NULL) {
+ f->Print(" ");
+ range_->PrintTo(f);
+ }
+
+ if (type_ != NULL) {
+ f->Print(" ");
+ type_->PrintTo(f);
+ }
+}
+
+
void Environment::PrintTo(BufferFormatter* f) const {
f->Print(" env={ ");
int arg_count = 0;

Powered by Google App Engine
This is Rietveld 408576698