Index: src/compiler/ia32/instruction-selector-ia32.cc |
diff --git a/src/compiler/ia32/instruction-selector-ia32.cc b/src/compiler/ia32/instruction-selector-ia32.cc |
index e237ebf693952bee46be9e82011daa129e7d2e50..e3a824618dca0f67da43248c4b4e7440610c4fe9 100644 |
--- a/src/compiler/ia32/instruction-selector-ia32.cc |
+++ b/src/compiler/ia32/instruction-selector-ia32.cc |
@@ -734,11 +734,11 @@ void InstructionSelector::VisitCall(Node* node) { |
InitializeCallBuffer(node, &buffer, true, true); |
// Push any stack arguments. |
- for (NodeVectorRIter input = buffer.pushed_nodes.rbegin(); |
- input != buffer.pushed_nodes.rend(); input++) { |
+ for (auto i = buffer.pushed_nodes.rbegin(); i != buffer.pushed_nodes.rend(); |
+ ++i) { |
// TODO(titzer): handle pushing double parameters. |
- Emit(kIA32Push, NULL, |
- g.CanBeImmediate(*input) ? g.UseImmediate(*input) : g.Use(*input)); |
+ Emit(kIA32Push, nullptr, |
+ g.CanBeImmediate(*i) ? g.UseImmediate(*i) : g.Use(*i)); |
} |
// Select the appropriate opcode based on the call type. |
@@ -877,14 +877,14 @@ void VisitWordCompareZero(InstructionSelector* selector, Node* user, |
case IrOpcode::kProjection: |
// Check if this is the overflow output projection of an |
// <Operation>WithOverflow node. |
- if (OpParameter<size_t>(value) == 1u) { |
+ if (ProjectionIndexOf(value->op()) == 1u) { |
// We cannot combine the <Operation>WithOverflow with this branch |
// unless the 0th projection (the use of the actual value of the |
// <Operation> is either NULL, which means there's no use of the |
// actual value, or was already defined, which means it is scheduled |
// *AFTER* this branch). |
- Node* node = value->InputAt(0); |
- Node* result = node->FindProjection(0); |
+ Node* const node = value->InputAt(0); |
+ Node* const result = NodeProperties::FindProjection(node, 0); |
if (result == NULL || selector->IsDefined(result)) { |
switch (node->opcode()) { |
case IrOpcode::kInt32AddWithOverflow: |
@@ -959,7 +959,7 @@ void InstructionSelector::VisitUint32LessThanOrEqual(Node* node) { |
void InstructionSelector::VisitInt32AddWithOverflow(Node* node) { |
- if (Node* ovf = node->FindProjection(1)) { |
+ if (Node* ovf = NodeProperties::FindProjection(node, 1)) { |
FlagsContinuation cont(kOverflow, ovf); |
return VisitBinop(this, node, kIA32Add, &cont); |
} |
@@ -969,7 +969,7 @@ void InstructionSelector::VisitInt32AddWithOverflow(Node* node) { |
void InstructionSelector::VisitInt32SubWithOverflow(Node* node) { |
- if (Node* ovf = node->FindProjection(1)) { |
+ if (Node* ovf = NodeProperties::FindProjection(node, 1)) { |
FlagsContinuation cont(kOverflow, ovf); |
return VisitBinop(this, node, kIA32Sub, &cont); |
} |