| Index: src/lithium.cc
|
| ===================================================================
|
| --- src/lithium.cc (revision 6222)
|
| +++ src/lithium.cc (working copy)
|
| @@ -176,4 +176,30 @@
|
| }
|
|
|
|
|
| +bool LParallelMove::IsRedundant() const {
|
| + for (int i = 0; i < move_operands_.length(); ++i) {
|
| + if (!move_operands_[i].IsRedundant()) return false;
|
| + }
|
| + return true;
|
| +}
|
| +
|
| +
|
| +void LParallelMove::PrintDataTo(StringStream* stream) const {
|
| + for (int i = move_operands_.length() - 1; i >= 0; --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);
|
| + } else {
|
| + to->PrintTo(stream);
|
| + stream->Add(" = ");
|
| + from->PrintTo(stream);
|
| + }
|
| + stream->Add("; ");
|
| + }
|
| + }
|
| +}
|
| +
|
| +
|
| } } // namespace v8::internal
|
|
|