Index: src/ia32/assembler-ia32.cc |
diff --git a/src/ia32/assembler-ia32.cc b/src/ia32/assembler-ia32.cc |
index 0557ed885310beb876d7946f3b1d60e1e230cfb1..305576548ad88de7908ab03f715c67d2e610e234 100644 |
--- a/src/ia32/assembler-ia32.cc |
+++ b/src/ia32/assembler-ia32.cc |
@@ -553,6 +553,16 @@ void Assembler::mov_w(const Operand& dst, Register src) { |
} |
+void Assembler::mov_w(const Operand& dst, int16_t imm16) { |
+ 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)); |
+} |
+ |
+ |
void Assembler::mov(Register dst, int32_t imm32) { |
EnsureSpace ensure_space(this); |
EMIT(0xB8 | dst.code()); |