Index: src/compiler/js-generic-lowering.cc |
diff --git a/src/compiler/js-generic-lowering.cc b/src/compiler/js-generic-lowering.cc |
index 586b6b52da09870fe10d11bfe71a87c335ee687c..300604e198e781022d8c0952987c7d79dc02e409 100644 |
--- a/src/compiler/js-generic-lowering.cc |
+++ b/src/compiler/js-generic-lowering.cc |
@@ -176,14 +176,7 @@ void JSGenericLowering::ReplaceWithCompareIC(Node* node, Token::Value token, |
if (has_frame_state) { |
// Remove the frame state from inputs. |
- // TODO(jarin) This should use Node::RemoveInput (which does not exist yet). |
- int dest = NodeProperties::FirstFrameStateIndex(node); |
- for (int i = NodeProperties::PastFrameStateIndex(node); |
- i < node->InputCount(); i++) { |
- node->ReplaceInput(dest, node->InputAt(i)); |
- dest++; |
- } |
- node->TrimInputCount(dest); |
+ node->RemoveInput(NodeProperties::FirstFrameStateIndex(node)); |
} |
ReplaceWithRuntimeCall(node, Runtime::kBooleanize); |