#include "platform_macro.h" #if defined(TARGET_ARCH_IA32) // alk #include #include #include "MemoryAllocator/CodeBuffer/code-buffer-x86.h" void CodeBuffer::Emit32(int32_t data) { DLOG(0, "[code buffer] Emit32 from x86 with %x, cursor %x", data, buffer_cursor); ensureCapacity(getSize() + sizeof(int32_t)); *reinterpret_cast(getCursor()) = data; buffer_cursor += sizeof(int32_t); return; } void CodeBuffer::FixBindLabel(int offset, int32_t disp) { *reinterpret_cast(buffer + offset) = disp; return; } #endif