Index: src/compiler/simplified-lowering.cc |
diff --git a/src/compiler/simplified-lowering.cc b/src/compiler/simplified-lowering.cc |
index 3f4b5b28a0ab460a2f55f7aa31215dc0c91da5f7..4e89d88c48253dbd187ba63a6fd7c1dde0411ee6 100644 |
--- a/src/compiler/simplified-lowering.cc |
+++ b/src/compiler/simplified-lowering.cc |
@@ -266,9 +266,12 @@ class RepresentationSelector { |
// Helper for binops of the R x L -> O variety. |
void VisitBinop(Node* node, MachineTypeUnion left_use, |
MachineTypeUnion right_use, MachineTypeUnion output) { |
- DCHECK_EQ(2, node->InputCount()); |
+ DCHECK_EQ(2, node->op()->ValueInputCount()); |
ProcessInput(node, 0, left_use); |
ProcessInput(node, 1, right_use); |
+ for (int i = 2; i < node->InputCount(); i++) { |
+ Enqueue(node->InputAt(i)); |
+ } |
SetOutput(node, output); |
} |