| Index: src/compiler/node.cc
|
| diff --git a/src/compiler/node.cc b/src/compiler/node.cc
|
| index 4cb5748b4095cb1377e7164d1c341c38613f6e8c..96358230709a7237943ce3faef01f3a5ca47bdd1 100644
|
| --- a/src/compiler/node.cc
|
| +++ b/src/compiler/node.cc
|
| @@ -10,15 +10,11 @@ namespace v8 {
|
| namespace internal {
|
| namespace compiler {
|
|
|
| -void Node::CollectProjections(int projection_count, Node** projections) {
|
| - for (int i = 0; i < projection_count; ++i) projections[i] = NULL;
|
| +void Node::CollectProjections(std::vector<Node*>* projections) {
|
| for (UseIter i = uses().begin(); i != uses().end(); ++i) {
|
| if ((*i)->opcode() != IrOpcode::kProjection) continue;
|
| - int32_t index = OpParameter<int32_t>(*i);
|
| - DCHECK_GE(index, 0);
|
| - DCHECK_LT(index, projection_count);
|
| - DCHECK_EQ(NULL, projections[index]);
|
| - projections[index] = *i;
|
| + DCHECK_GE(OpParameter<int32_t>(*i), 0);
|
| + projections->push_back(*i);
|
| }
|
| }
|
|
|
|
|