Index: src/ia32/assembler-ia32.cc |
diff --git a/src/ia32/assembler-ia32.cc b/src/ia32/assembler-ia32.cc |
index 150131cdbc0e66cf3a65616013fe715d8ec565eb..fac2d66bcdfea30db13eb66d1cbffe840c7199c9 100644 |
--- a/src/ia32/assembler-ia32.cc |
+++ b/src/ia32/assembler-ia32.cc |
@@ -681,6 +681,18 @@ void Assembler::xchg(Register dst, const Operand& src) { |
emit_operand(dst, src); |
} |
+void Assembler::xchg_b(Register reg, const Operand& op) { |
+ EnsureSpace ensure_space(this); |
+ EMIT(0x86); |
+ emit_operand(reg, op); |
+} |
+ |
+void Assembler::xchg_w(Register reg, const Operand& op) { |
+ EnsureSpace ensure_space(this); |
+ EMIT(0x66); |
+ EMIT(0x87); |
+ emit_operand(reg, op); |
+} |
void Assembler::adc(Register dst, int32_t imm32) { |
EnsureSpace ensure_space(this); |