Index: src/compiler/generic-node-inl.h |
diff --git a/src/compiler/generic-node-inl.h b/src/compiler/generic-node-inl.h |
index 82fd907c16e18811c00b8bf2c2ab3e4d9a5b2903..c2dc24ee832b080823de7465584b873093a5d0b4 100644 |
--- a/src/compiler/generic-node-inl.h |
+++ b/src/compiler/generic-node-inl.h |
@@ -178,6 +178,16 @@ void GenericNode<B, S>::InsertInput(Zone* zone, int index, |
} |
template <class B, class S> |
+void GenericNode<B, S>::RemoveInput(int index) { |
+ DCHECK(index >= 0 && index < InputCount()); |
+ // TODO(turbofan): Optimize this implementation! |
+ for (; index < InputCount() - 1; ++index) { |
+ ReplaceInput(index, InputAt(index + 1)); |
+ } |
+ TrimInputCount(InputCount() - 1); |
+} |
+ |
+template <class B, class S> |
void GenericNode<B, S>::AppendUse(Use* use) { |
use->next = NULL; |
use->prev = last_use_; |