Chromium Code Reviews| Index: src/x64/assembler-x64-inl.h |
| =================================================================== |
| --- src/x64/assembler-x64-inl.h (revision 2056) |
| +++ src/x64/assembler-x64-inl.h (working copy) |
| @@ -44,6 +44,10 @@ |
| #define EMIT(x) \ |
| *pc_++ = (x) |
| +void Assembler::emit(uint32_t x) { |
| + *reinterpret_cast<uint32_t*>(pc_) = x; |
| + pc_ += sizeof(uint32_t); |
| +} |
| void Assembler::emit_rex_64(Register reg, Register rm_reg) { |
| EMIT(0x48 | (reg.code() & 0x8) >> 1 | rm_reg.code() >> 3); |