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

Unified Diff: src/compiler/graph.cc

Issue 509343002: Better typing and type verification (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Drop typedness from graph Created 6 years, 3 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.cc
diff --git a/src/compiler/graph.cc b/src/compiler/graph.cc
index 3f47eace8159e9d7ef97566db8bfe39a1e1acc8c..b8f2d756bcafad4c0bc5868652f78dbcbbaf4a71 100644
--- a/src/compiler/graph.cc
+++ b/src/compiler/graph.cc
@@ -23,14 +23,19 @@ Graph::Graph(Zone* zone)
decorators_(DecoratorVector::allocator_type(zone)) {}
+void Graph::Decorate(Node* node) {
+ for (DecoratorVector::iterator i = decorators_.begin();
+ i != decorators_.end(); ++i) {
+ (*i)->Decorate(node);
+ }
+}
+
+
Node* Graph::NewNode(Operator* op, int input_count, Node** inputs) {
DCHECK(op->InputCount() <= input_count);
Node* result = Node::New(this, input_count, inputs);
result->Initialize(op);
- for (DecoratorVector::iterator i = decorators_.begin();
- i != decorators_.end(); ++i) {
- (*i)->Decorate(result);
- }
+ Decorate(result);
return result;
}
« no previous file with comments | « src/compiler/graph.h ('k') | src/compiler/graph-visualizer.cc » ('j') | src/compiler/js-graph.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698