Index: src/arm64/macro-assembler-arm64.h |
diff --git a/src/arm64/macro-assembler-arm64.h b/src/arm64/macro-assembler-arm64.h |
index 1f3aa14eaec32ff78bc7e06853c69051a80758ed..48f2e774dc2c2dc0893081fb8683f414c7058f47 100644 |
--- a/src/arm64/macro-assembler-arm64.h |
+++ b/src/arm64/macro-assembler-arm64.h |
@@ -842,10 +842,15 @@ class MacroAssembler : public Assembler { |
void NumberOfOwnDescriptors(Register dst, Register map); |
template<typename Field> |
- void DecodeField(Register reg) { |
+ void DecodeField(Register dst, Register src) { |
static const uint64_t shift = Field::kShift; |
static const uint64_t setbits = CountSetBits(Field::kMask, 32); |
- Ubfx(reg, reg, shift, setbits); |
+ Ubfx(dst, src, shift, setbits); |
+ } |
+ |
+ template<typename Field> |
+ void DecodeField(Register reg) { |
+ DecodeField<Field>(reg, reg); |
} |
// ---- SMI and Number Utilities ---- |