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

Unified Diff: src/compiler/node.cc

Issue 545153002: [turbofan] Add MachineType to Phi. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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/node.cc
diff --git a/src/compiler/node.cc b/src/compiler/node.cc
index 8e5c0df215449c78ad48d906d8752ddab33eda4a..cab584270955510647f8e8715c0084d33c27c8bd 100644
--- a/src/compiler/node.cc
+++ b/src/compiler/node.cc
@@ -24,19 +24,19 @@ void Node::CollectProjections(NodeVector* projections) {
}
for (UseIter i = uses().begin(); i != uses().end(); ++i) {
if ((*i)->opcode() != IrOpcode::kProjection) continue;
- int32_t index = OpParameter<int32_t>(*i);
+ int index = OpParameter<int>(*i);
DCHECK_GE(index, 0);
- DCHECK_LT(index, static_cast<int32_t>(projections->size()));
+ DCHECK_LT(index, static_cast<int>(projections->size()));
DCHECK_EQ(NULL, (*projections)[index]);
(*projections)[index] = *i;
}
}
-Node* Node::FindProjection(int32_t projection_index) {
+Node* Node::FindProjection(int projection_index) {
for (UseIter i = uses().begin(); i != uses().end(); ++i) {
if ((*i)->opcode() == IrOpcode::kProjection &&
- OpParameter<int32_t>(*i) == projection_index) {
+ OpParameter<int>(*i) == projection_index) {
return *i;
}
}

Powered by Google App Engine
This is Rietveld 408576698