Index: src/compiler/graph.h |
diff --git a/src/compiler/graph.h b/src/compiler/graph.h |
index 65ea3b30a42c4a1dc286832f55ea86003cd2f41e..ec4306303277fb0d7aa3341ac1b92a57bbbbcbb4 100644 |
--- a/src/compiler/graph.h |
+++ b/src/compiler/graph.h |
@@ -67,6 +67,8 @@ class Graph : public GenericGraph<Node> { |
template <class Visitor> |
void VisitNodeInputsFromEnd(Visitor* visitor); |
+ void Decorate(Node* node); |
+ |
void AddDecorator(GraphDecorator* decorator) { |
decorators_.push_back(decorator); |
} |
@@ -78,10 +80,14 @@ class Graph : public GenericGraph<Node> { |
decorators_.erase(it, it + 1); |
} |
+ bool is_typed() const { return is_typed_; } |
titzer
2014/08/28 13:12:31
Gah, we went through this with the source position
rossberg
2014/08/28 15:35:50
Hm, well, the graph _is_ fundamentally stateful. T
titzer
2014/10/01 08:30:24
Just because nodes and edges can be mutated doesn'
|
+ void MarkTyped() { is_typed_ = true; } |
+ |
private: |
typedef std::vector<GraphDecorator*, zone_allocator<GraphDecorator*> > |
DecoratorVector; |
DecoratorVector decorators_; |
+ bool is_typed_; |
}; |