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

Unified Diff: runtime/vm/il_printer.cc

Issue 321593004: Refactor RangeBoundary +/- infinity to be distinct RangeBoundary kinds. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 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 | « no previous file | runtime/vm/intermediate_language.h » ('j') | runtime/vm/intermediate_language.h » ('J')
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 1ea3469a281b5494e3d0cdab50ca80b90299055d..508ec6eeca66c0aedb0b5ca7a542f7bc67f91e9f 100644
--- a/runtime/vm/il_printer.cc
+++ b/runtime/vm/il_printer.cc
@@ -296,18 +296,18 @@ const char* Range::ToCString(Range* range) {
void RangeBoundary::PrintTo(BufferFormatter* f) const {
switch (kind_) {
case kSymbol:
- f->Print("v%" Pd,
+ f->Print("v%" Pd "",
reinterpret_cast<Definition*>(value_)->ssa_temp_index());
- if (offset_ != 0) f->Print("%+" Pd, offset_);
+ if (offset_ != 0) f->Print("%+" Pd "", offset_);
+ break;
+ case kNegativeInfinity:
+ f->Print("-inf");
+ break;
+ case kPositiveInfinity:
+ f->Print("+inf");
break;
case kConstant:
- if (value_ == kMinusInfinity) {
- f->Print("-inf");
- } else if (value_ == kPlusInfinity) {
- f->Print("+inf");
- } else {
- f->Print("%" Pd, value_);
- }
+ f->Print("%" Pd "", value_);
break;
case kUnknown:
f->Print("_|_");
« no previous file with comments | « no previous file | runtime/vm/intermediate_language.h » ('j') | runtime/vm/intermediate_language.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698