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

Unified Diff: src/compiler/raw-machine-assembler.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/compiler/pipeline.cc ('k') | src/compiler/raw-machine-assembler.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 7c56e9c84ca0dff4f29d1cedca31098f737cc183..f41bda3c98c6b1b4b39cedcc1f824bcb7ebd8e17 100644
--- a/src/compiler/raw-machine-assembler.h
+++ b/src/compiler/raw-machine-assembler.h
@@ -36,11 +36,11 @@ class Schedule;
// non-schedulable due to missing control and effect dependencies.
class RawMachineAssembler {
public:
- RawMachineAssembler(Isolate* isolate, Graph* graph,
- CallDescriptor* call_descriptor,
- MachineType word = kMachPtr,
- MachineOperatorBuilder::Flags flags =
- MachineOperatorBuilder::Flag::kNoFlags);
+ RawMachineAssembler(
+ Isolate* isolate, Graph* graph, CallDescriptor* call_descriptor,
+ MachineRepresentation word = MachineType::PointerRepresentation(),
+ MachineOperatorBuilder::Flags flags =
+ MachineOperatorBuilder::Flag::kNoFlags);
~RawMachineAssembler() {}
Isolate* isolate() const { return isolate_; }
@@ -611,14 +611,14 @@ class RawMachineAssembler {
void Deoptimize(Node* state);
// Variables.
- Node* Phi(MachineType type, Node* n1, Node* n2) {
- return AddNode(common()->Phi(type, 2), n1, n2);
+ Node* Phi(MachineRepresentation rep, Node* n1, Node* n2) {
+ return AddNode(common()->Phi(rep, 2), n1, n2);
}
- Node* Phi(MachineType type, Node* n1, Node* n2, Node* n3) {
- return AddNode(common()->Phi(type, 3), n1, n2, n3);
+ Node* Phi(MachineRepresentation rep, Node* n1, Node* n2, Node* n3) {
+ return AddNode(common()->Phi(rep, 3), n1, n2, n3);
}
- Node* Phi(MachineType type, Node* n1, Node* n2, Node* n3, Node* n4) {
- return AddNode(common()->Phi(type, 4), n1, n2, n3, n4);
+ Node* Phi(MachineRepresentation rep, Node* n1, Node* n2, Node* n3, Node* n4) {
+ return AddNode(common()->Phi(rep, 4), n1, n2, n3, n4);
}
// ===========================================================================
« no previous file with comments | « src/compiler/pipeline.cc ('k') | src/compiler/raw-machine-assembler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698