Chromium Code Reviews| Index: src/compiler/graph.cc |
| diff --git a/src/compiler/graph.cc b/src/compiler/graph.cc |
| index 1650bdfdd76a57d1c17e6546518701438f0f1d36..4bba13e30384142fb95f7a76159dd16873ad016f 100644 |
| --- a/src/compiler/graph.cc |
| +++ b/src/compiler/graph.cc |
| @@ -22,8 +22,9 @@ Graph::Graph(Zone* zone) |
| decorators_(zone) {} |
| -void Graph::Decorate(Node* node) { |
| - for (auto const decorator : decorators_) decorator->Decorate(node); |
| +void Graph::Decorate(Node* node, bool incomplete) { |
| + for (auto const decorator : decorators_) |
| + decorator->Decorate(node, incomplete); |
|
Michael Starzinger
2015/02/04 13:54:03
nit: Can we put curly braces around the body?
danno
2015/02/04 14:04:59
Done.
|
| } |
| @@ -44,7 +45,7 @@ Node* Graph::NewNode(const Operator* op, int input_count, Node** inputs, |
| DCHECK_LE(op->ValueInputCount(), input_count); |
| Node* const node = |
| Node::New(zone(), NextNodeId(), op, input_count, inputs, incomplete); |
| - if (!incomplete) Decorate(node); |
| + Decorate(node, incomplete); |
| return node; |
| } |