Index: src/arm64/macro-assembler-arm64.h |
diff --git a/src/arm64/macro-assembler-arm64.h b/src/arm64/macro-assembler-arm64.h |
index 5dc1953638231c03df5e0e5439eca8ec52e06ffa..3479170c07101c273f6769a33574341f2cd19d79 100644 |
--- a/src/arm64/macro-assembler-arm64.h |
+++ b/src/arm64/macro-assembler-arm64.h |
@@ -843,7 +843,7 @@ class MacroAssembler : public Assembler { |
template<typename Field> |
void DecodeField(Register reg) { |
- static const uint64_t shift = Field::kShift; |
+ static const uint64_t shift = Field::kShift + kSmiShift; |
static const uint64_t setbits = CountSetBits(Field::kMask, 32); |
Ubfx(reg, reg, shift, setbits); |
} |