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

Unified Diff: src/compiler/raw-machine-assembler.h

Issue 545153002: [turbofan] Add MachineType to Phi. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Add test case. 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
« no previous file with comments | « src/compiler/js-inlining.cc ('k') | src/compiler/simplified-lowering.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/raw-machine-assembler.h
diff --git a/src/compiler/raw-machine-assembler.h b/src/compiler/raw-machine-assembler.h
index 2fd1a006d42f115ee533c536b90c6dd0dfa0121c..a74253ada042a2ecef9789e33d93d8efa0e0f9b2 100644
--- a/src/compiler/raw-machine-assembler.h
+++ b/src/compiler/raw-machine-assembler.h
@@ -409,12 +409,14 @@ class RawMachineAssembler : public GraphBuilder {
void Deoptimize(Node* state);
// Variables.
- Node* Phi(Node* n1, Node* n2) { return NewNode(common()->Phi(2), n1, n2); }
- Node* Phi(Node* n1, Node* n2, Node* n3) {
- return NewNode(common()->Phi(3), n1, n2, n3);
+ Node* Phi(MachineType type, Node* n1, Node* n2) {
+ return NewNode(common()->Phi(type, 2), n1, n2);
}
- Node* Phi(Node* n1, Node* n2, Node* n3, Node* n4) {
- return NewNode(common()->Phi(4), n1, n2, n3, n4);
+ Node* Phi(MachineType type, Node* n1, Node* n2, Node* n3) {
+ return NewNode(common()->Phi(type, 3), n1, n2, n3);
+ }
+ Node* Phi(MachineType type, Node* n1, Node* n2, Node* n3, Node* n4) {
+ return NewNode(common()->Phi(type, 4), n1, n2, n3, n4);
}
// MachineAssembler is invalid after export.
« no previous file with comments | « src/compiler/js-inlining.cc ('k') | src/compiler/simplified-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698