Index: src/compiler/mips64/instruction-selector-mips64.cc |
diff --git a/src/compiler/mips64/instruction-selector-mips64.cc b/src/compiler/mips64/instruction-selector-mips64.cc |
index dd7640ae7f2b650becfbb73297d90a9f9aa9979e..5b32e10ee04f94cb8ce2409ead221d0da2f9119a 100644 |
--- a/src/compiler/mips64/instruction-selector-mips64.cc |
+++ b/src/compiler/mips64/instruction-selector-mips64.cc |
@@ -2,6 +2,7 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
+#include "src/base/adapters.h" |
#include "src/base/bits.h" |
#include "src/compiler/instruction-selector-impl.h" |
#include "src/compiler/node-matchers.h" |
@@ -668,9 +669,8 @@ void InstructionSelector::VisitCall(Node* node, BasicBlock* handler) { |
g.TempImmediate(push_count << kPointerSizeLog2)); |
} |
int slot = buffer.pushed_nodes.size() - 1; |
- for (auto i = buffer.pushed_nodes.rbegin(); i != buffer.pushed_nodes.rend(); |
- ++i) { |
- Emit(kMips64StoreToStackSlot, g.NoOutput(), g.UseRegister(*i), |
+ for (Node* node : base::Reversed(buffer.pushed_nodes)) { |
+ Emit(kMips64StoreToStackSlot, g.NoOutput(), g.UseRegister(node), |
g.TempImmediate(slot << kPointerSizeLog2)); |
slot--; |
} |