From 8c7fc377fd5c03e30cbf767cd22aba59178e0143 Mon Sep 17 00:00:00 2001 From: ulan Date: Fri, 3 Feb 2017 04:52:58 -0800 Subject: [PATCH] Removes uint8_t from MachineRepresentation and MachineSemantic enums. This works around a compiler bug that leads to incorrect masking of the semantic_ field in TruncatingUseInfoFromRepresentation. Patch from bulach@google.com BUG= Review-Url: https://codereview.chromium.org/2669113003 Cr-Commit-Position: refs/heads/master@{#42925} --- src/machine-type.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/machine-type.h b/src/machine-type.h index a59aced36e..fd1d41dcc3 100644 --- a/src/machine-type.h +++ b/src/machine-type.h @@ -15,7 +15,7 @@ namespace v8 { namespace internal { -enum class MachineRepresentation : uint8_t { +enum class MachineRepresentation { kNone, kBit, kWord8, @@ -39,7 +39,7 @@ static_assert(static_cast(MachineRepresentation::kLastRepresentation) < const char* MachineReprToString(MachineRepresentation); -enum class MachineSemantic : uint8_t { +enum class MachineSemantic { kNone, kBool, kInt32,