Index: src/x64/macro-assembler-x64.h |
diff --git a/src/x64/macro-assembler-x64.h b/src/x64/macro-assembler-x64.h |
index af65a65465981af15cf716bf966eda88f83761f8..7685adfb05b0927313a91f804ba1a9822ff6156d 100644 |
--- a/src/x64/macro-assembler-x64.h |
+++ b/src/x64/macro-assembler-x64.h |
@@ -1026,9 +1026,9 @@ class MacroAssembler: public Assembler { |
void DecodeField(Register reg) { |
static const int shift = Field::kShift + kSmiShift; |
static const int mask = Field::kMask >> Field::kShift; |
- shr(reg, Immediate(shift)); |
+ shrp(reg, Immediate(shift)); |
andp(reg, Immediate(mask)); |
- shl(reg, Immediate(kSmiShift)); |
+ shlp(reg, Immediate(kSmiShift)); |
} |
// Abort execution if argument is not a number, enabled via --debug-code. |