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

Unified Diff: src/machine-type.h

Issue 2468233004: [Turbofan] Reduce register allocation work when we can. (Closed)
Patch Set: Review comments. Created 4 years, 1 month 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/register-allocator.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/machine-type.h
diff --git a/src/machine-type.h b/src/machine-type.h
index 69cb6d79fac6062e6771d68624ba0463385a5215..18f6752b77605b08368da81062085d31974ceafa 100644
--- a/src/machine-type.h
+++ b/src/machine-type.h
@@ -29,9 +29,14 @@ enum class MachineRepresentation : uint8_t {
kFloat32,
kFloat64,
kSimd128,
- kFirstFPRepresentation = kFloat32
+ kFirstFPRepresentation = kFloat32,
+ kLastRepresentation = kSimd128
};
+static_assert(static_cast<int>(MachineRepresentation::kLastRepresentation) <
+ kIntSize * kBitsPerByte,
+ "Bit masks of MachineRepresentation should fit in an int");
+
const char* MachineReprToString(MachineRepresentation);
enum class MachineSemantic : uint8_t {
« no previous file with comments | « src/compiler/register-allocator.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698