| Index: src/ia32/assembler-ia32.cc
|
| diff --git a/src/ia32/assembler-ia32.cc b/src/ia32/assembler-ia32.cc
|
| index 50c834f7c22138962c6ad9f8679dc0f2bcf1eb44..9fd01def46f98fbcdbca55378cfadf1561af1665 100644
|
| --- a/src/ia32/assembler-ia32.cc
|
| +++ b/src/ia32/assembler-ia32.cc
|
| @@ -457,11 +457,11 @@ void Assembler::mov_b(Register dst, const Operand& src) {
|
| }
|
|
|
|
|
| -void Assembler::mov_b(const Operand& dst, int8_t imm8) {
|
| +void Assembler::mov_b(const Operand& dst, const Immediate& src) {
|
| EnsureSpace ensure_space(this);
|
| EMIT(0xC6);
|
| emit_operand(eax, dst);
|
| - EMIT(imm8);
|
| + EMIT(static_cast<int8_t>(src.x_));
|
| }
|
|
|
|
|
| @@ -489,13 +489,13 @@ void Assembler::mov_w(const Operand& dst, Register src) {
|
| }
|
|
|
|
|
| -void Assembler::mov_w(const Operand& dst, int16_t imm16) {
|
| +void Assembler::mov_w(const Operand& dst, const Immediate& src) {
|
| EnsureSpace ensure_space(this);
|
| EMIT(0x66);
|
| EMIT(0xC7);
|
| emit_operand(eax, dst);
|
| - EMIT(static_cast<int8_t>(imm16 & 0xff));
|
| - EMIT(static_cast<int8_t>(imm16 >> 8));
|
| + EMIT(static_cast<int8_t>(src.x_ & 0xff));
|
| + EMIT(static_cast<int8_t>(src.x_ >> 8));
|
| }
|
|
|
|
|
|
|