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

Side by Side Diff: src/compiler/diamond.h

Issue 1513543003: [turbofan] Make MachineType a pair of enums. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Moar rebase Created 5 years 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 unified diff | Download patch
« no previous file with comments | « src/compiler/common-operator.cc ('k') | src/compiler/escape-analysis.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_COMPILER_DIAMOND_H_ 5 #ifndef V8_COMPILER_DIAMOND_H_
6 #define V8_COMPILER_DIAMOND_H_ 6 #define V8_COMPILER_DIAMOND_H_
7 7
8 #include "src/compiler/common-operator.h" 8 #include "src/compiler/common-operator.h"
9 #include "src/compiler/graph.h" 9 #include "src/compiler/graph.h"
10 #include "src/compiler/node.h" 10 #include "src/compiler/node.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 void Nest(Diamond& that, bool if_true) { 42 void Nest(Diamond& that, bool if_true) {
43 if (if_true) { 43 if (if_true) {
44 branch->ReplaceInput(1, that.if_true); 44 branch->ReplaceInput(1, that.if_true);
45 that.merge->ReplaceInput(0, merge); 45 that.merge->ReplaceInput(0, merge);
46 } else { 46 } else {
47 branch->ReplaceInput(1, that.if_false); 47 branch->ReplaceInput(1, that.if_false);
48 that.merge->ReplaceInput(1, merge); 48 that.merge->ReplaceInput(1, merge);
49 } 49 }
50 } 50 }
51 51
52 Node* Phi(MachineType machine_type, Node* tv, Node* fv) { 52 Node* Phi(MachineRepresentation rep, Node* tv, Node* fv) {
53 return graph->NewNode(common->Phi(machine_type, 2), tv, fv, merge); 53 return graph->NewNode(common->Phi(rep, 2), tv, fv, merge);
54 } 54 }
55 }; 55 };
56 56
57 } // namespace compiler 57 } // namespace compiler
58 } // namespace internal 58 } // namespace internal
59 } // namespace v8 59 } // namespace v8
60 60
61 #endif // V8_COMPILER_DIAMOND_H_ 61 #endif // V8_COMPILER_DIAMOND_H_
OLDNEW
« no previous file with comments | « src/compiler/common-operator.cc ('k') | src/compiler/escape-analysis.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698