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

Unified Diff: src/compiler/simplified-operator.cc

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/simplified-lowering.cc ('k') | src/compiler/state-values-utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/simplified-operator.cc
diff --git a/src/compiler/simplified-operator.cc b/src/compiler/simplified-operator.cc
index 5b973e1a94f9c4af5038485dd74e5ed4177667dd..1eaa287fee5d7ac807b5c978b00f96afe9e08f7c 100644
--- a/src/compiler/simplified-operator.cc
+++ b/src/compiler/simplified-operator.cc
@@ -29,24 +29,24 @@ MachineType BufferAccess::machine_type() const {
switch (external_array_type_) {
case kExternalUint8Array:
case kExternalUint8ClampedArray:
- return kMachUint8;
+ return MachineType::Uint8();
case kExternalInt8Array:
- return kMachInt8;
+ return MachineType::Int8();
case kExternalUint16Array:
- return kMachUint16;
+ return MachineType::Uint16();
case kExternalInt16Array:
- return kMachInt16;
+ return MachineType::Int16();
case kExternalUint32Array:
- return kMachUint32;
+ return MachineType::Uint32();
case kExternalInt32Array:
- return kMachInt32;
+ return MachineType::Int32();
case kExternalFloat32Array:
- return kMachFloat32;
+ return MachineType::Float32();
case kExternalFloat64Array:
- return kMachFloat64;
+ return MachineType::Float64();
}
UNREACHABLE();
- return kMachNone;
+ return MachineType::None();
}
« no previous file with comments | « src/compiler/simplified-lowering.cc ('k') | src/compiler/state-values-utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698