diff options
Diffstat (limited to 'deps/v8/src/lithium.cc')
-rw-r--r-- | deps/v8/src/lithium.cc | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/deps/v8/src/lithium.cc b/deps/v8/src/lithium.cc index e066e7da93..d6cff25653 100644 --- a/deps/v8/src/lithium.cc +++ b/deps/v8/src/lithium.cc @@ -39,18 +39,21 @@ bool LParallelMove::IsRedundant() const { void LParallelMove::PrintDataTo(StringStream* stream) const { - for (int i = move_operands_.length() - 1; i >= 0; --i) { + bool first = true; + for (int i = 0; i < move_operands_.length(); ++i) { if (!move_operands_[i].IsEliminated()) { - LOperand* from = move_operands_[i].from(); - LOperand* to = move_operands_[i].to(); - if (from->Equals(to)) { - to->PrintTo(stream); + LOperand* source = move_operands_[i].source(); + LOperand* destination = move_operands_[i].destination(); + if (!first) stream->Add(" "); + first = false; + if (source->Equals(destination)) { + destination->PrintTo(stream); } else { - to->PrintTo(stream); + destination->PrintTo(stream); stream->Add(" = "); - from->PrintTo(stream); + source->PrintTo(stream); } - stream->Add("; "); + stream->Add(";"); } } } |