EnsureSpace ensure_space(this);
last_pc_ = pc_;
EMIT(0x21);
- emit_operand(dst, src);
+ emit_operand(src, dst);
}
EnsureSpace ensure_space(this);
last_pc_ = pc_;
EMIT(0x09);
- emit_operand(dst, src);
+ emit_operand(src, dst);
}
EnsureSpace ensure_space(this);
last_pc_ = pc_;
EMIT(0x29);
- emit_operand(dst, src);
+ emit_operand(src, dst);
}
}
-void Assembler::emit_operand(const Operand& adr, Register reg) {
- adr.set_reg(reg);
- memmove(pc_, adr.buf_, adr.len_);
- pc_ += adr.len_;
- if (adr.len_ >= sizeof(int32_t) && adr.rmode_ != RelocInfo::NONE) {
- pc_ -= sizeof(int32_t); // pc_ must be *at* disp32
- RecordRelocInfo(adr.rmode_);
- pc_ += sizeof(int32_t);
- }
-}
-
-
void Assembler::emit_farith(int b1, int b2, int i) {
ASSERT(is_uint8(b1) && is_uint8(b2)); // wrong opcode
ASSERT(0 <= i && i < 8); // illegal stack offset
void emit_arith(int sel, Operand dst, const Immediate& x);
void emit_operand(Register reg, const Operand& adr);
- void emit_operand(const Operand& adr, Register reg);
void emit_farith(int b1, int b2, int i);