Commit 5fe7ec91 authored by titzer@chromium.org's avatar titzer@chromium.org

Fix references to GenericNode::Type that should be templatized

R=mstarzinger@chromium.org, mstarzinger
BUG=

Review URL: https://codereview.chromium.org/428233003

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@22715 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent c1ce1986
...@@ -34,25 +34,26 @@ inline void GenericNode<B, S>::AssignUniqueID(GenericGraphBase* graph) { ...@@ -34,25 +34,26 @@ inline void GenericNode<B, S>::AssignUniqueID(GenericGraphBase* graph) {
template <class B, class S> template <class B, class S>
inline typename GenericNode<B, S>::Inputs::iterator inline typename GenericNode<B, S>::Inputs::iterator
GenericNode<B, S>::Inputs::begin() { GenericNode<B, S>::Inputs::begin() {
return GenericNode::Inputs::iterator(this->node_, 0); return GenericNode<B, S>::Inputs::iterator(this->node_, 0);
} }
template <class B, class S> template <class B, class S>
inline typename GenericNode<B, S>::Inputs::iterator inline typename GenericNode<B, S>::Inputs::iterator
GenericNode<B, S>::Inputs::end() { GenericNode<B, S>::Inputs::end() {
return GenericNode::Inputs::iterator(this->node_, this->node_->InputCount()); return GenericNode<B, S>::Inputs::iterator(this->node_,
this->node_->InputCount());
} }
template <class B, class S> template <class B, class S>
inline typename GenericNode<B, S>::Uses::iterator inline typename GenericNode<B, S>::Uses::iterator
GenericNode<B, S>::Uses::begin() { GenericNode<B, S>::Uses::begin() {
return GenericNode::Uses::iterator(this->node_); return GenericNode<B, S>::Uses::iterator(this->node_);
} }
template <class B, class S> template <class B, class S>
inline typename GenericNode<B, S>::Uses::iterator inline typename GenericNode<B, S>::Uses::iterator
GenericNode<B, S>::Uses::end() { GenericNode<B, S>::Uses::end() {
return GenericNode::Uses::iterator(); return GenericNode<B, S>::Uses::iterator();
} }
template <class B, class S> template <class B, class S>
...@@ -106,7 +107,7 @@ void GenericNode<B, S>::TrimInputCount(int new_input_count) { ...@@ -106,7 +107,7 @@ void GenericNode<B, S>::TrimInputCount(int new_input_count) {
// Update inline inputs. // Update inline inputs.
for (int i = new_input_count; i < input_count_; i++) { for (int i = new_input_count; i < input_count_; i++) {
GenericNode<B, S>::Input* input = GetInputRecordPtr(i); typename GenericNode<B, S>::Input* input = GetInputRecordPtr(i);
input->Update(NULL); input->Update(NULL);
} }
input_count_ = new_input_count; input_count_ = new_input_count;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment