| Index: src/compiler/all-nodes.cc
|
| diff --git a/src/compiler/all-nodes.cc b/src/compiler/all-nodes.cc
|
| index ed4a218c2bc42917aebbe332b72fbaea484ed209..7fa6720242d9e9ed15c9d7f618aad0263a011499 100644
|
| --- a/src/compiler/all-nodes.cc
|
| +++ b/src/compiler/all-nodes.cc
|
| @@ -12,7 +12,16 @@ namespace compiler {
|
|
|
| AllNodes::AllNodes(Zone* local_zone, const Graph* graph)
|
| : live(local_zone), is_live(graph->NodeCount(), false, local_zone) {
|
| - Node* end = graph->end();
|
| + Mark(local_zone, graph->end(), graph);
|
| +}
|
| +
|
| +AllNodes::AllNodes(Zone* local_zone, Node* end, const Graph* graph)
|
| + : live(local_zone), is_live(graph->NodeCount(), false, local_zone) {
|
| + Mark(local_zone, end, graph);
|
| +}
|
| +
|
| +void AllNodes::Mark(Zone* local_zone, Node* end, const Graph* graph) {
|
| + DCHECK_LT(end->id(), graph->NodeCount());
|
| is_live[end->id()] = true;
|
| live.push_back(end);
|
| // Find all live nodes reachable from end.
|
|
|