Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(226)

Unified Diff: src/compiler/graph.h

Issue 509343002: Better typing and type verification (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_;
};

Powered by Google App Engine
This is Rietveld 408576698