Index: src/ia32/assembler-ia32.cc |
diff --git a/src/ia32/assembler-ia32.cc b/src/ia32/assembler-ia32.cc |
index fd6a8d6f986961945a780b45a5549e15ac8676cf..5e8333d11a7ca9539ef343c5ae80524fb43b2c1b 100644 |
--- a/src/ia32/assembler-ia32.cc |
+++ b/src/ia32/assembler-ia32.cc |
@@ -982,24 +982,24 @@ void Assembler::rcr(Register dst, uint8_t imm8) { |
} |
-void Assembler::ror(Register dst, uint8_t imm8) { |
+void Assembler::ror(const Operand& dst, uint8_t imm8) { |
EnsureSpace ensure_space(this); |
DCHECK(is_uint5(imm8)); // illegal shift count |
if (imm8 == 1) { |
EMIT(0xD1); |
- EMIT(0xC8 | dst.code()); |
+ emit_operand(ecx, dst); |
} else { |
EMIT(0xC1); |
- EMIT(0xC8 | dst.code()); |
+ emit_operand(ecx, dst); |
EMIT(imm8); |
} |
} |
-void Assembler::ror_cl(Register dst) { |
+void Assembler::ror_cl(const Operand& dst) { |
EnsureSpace ensure_space(this); |
EMIT(0xD3); |
- EMIT(0xC8 | dst.code()); |
+ emit_operand(ecx, dst); |
} |