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

Unified Diff: src/compiler/graph.h

Issue 1178403004: [turbofan] Use appropriate type for NodeId. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix useless static_cast. Created 5 years, 6 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
« no previous file with comments | « src/base/bits.h ('k') | src/compiler/graph.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/graph.h
diff --git a/src/compiler/graph.h b/src/compiler/graph.h
index 0b1277ca1dcb1ff0d16d3edafc40bffffc214d28..50da168493cd1e6d81bba350495bf492f51da5cb 100644
--- a/src/compiler/graph.h
+++ b/src/compiler/graph.h
@@ -26,7 +26,7 @@ typedef uint32_t Mark;
// NodeIds are identifying numbers for nodes that can be used to index auxiliary
// out-of-line data associated with each node.
-typedef int32_t NodeId;
+typedef uint32_t NodeId;
class Graph : public ZoneObject {
@@ -90,7 +90,7 @@ class Graph : public ZoneObject {
void SetStart(Node* start) { start_ = start; }
void SetEnd(Node* end) { end_ = end; }
- int NodeCount() const { return next_node_id_; }
+ size_t NodeCount() const { return next_node_id_; }
void Decorate(Node* node, bool incomplete);
void AddDecorator(GraphDecorator* decorator);
« no previous file with comments | « src/base/bits.h ('k') | src/compiler/graph.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698