Memory location of the first byte of output.
Memory location of the next byte of output.
Current offset in bytes.
Program counter at the next byte of output.
Eagerly cleans up memory.
Resolves label references and writes pending data to memory. You should always call this once you've finished generating code. It is usually also desirable to do this between pieces of unrelated code, e.g. when generating multiple functions in one go.
Puts an OS/architecture-specific breakpoint instruction.
Like putCallWithArguments(), but also
ensures that the argument list is aligned on a 16 byte boundary.
Puts code needed for calling a C function with the specified args.
Puts a CALL instruction referencing labelId, defined by a past
or future putLabel().
Puts a CALL instruction referencing labelId, defined by a past
or future putLabel().
Optionaldata: NativePointerValuePuts code needed for calling a C function with the specified args.
Like putCallWithArguments(), but also
ensures that the argument list is aligned on a 16 byte boundary.
Puts code needed for calling a C function with the specified args.
Puts a CLC instruction.
Puts a CLD instruction.
Puts a CMP instruction.
Puts a CPUID instruction.
Puts a JCC instruction.
Puts a JCC instruction referencing labelId, defined by a past
or future putLabel().
Puts a JCC instruction.
Puts a JCC instruction referencing labelId, defined by a past
or future putLabel().
Puts a JMP instruction referencing labelId, defined by a past
or future putLabel().
Puts a JMP instruction referencing labelId, defined by a past
or future putLabel().
Puts a label at the current position, where id is an identifier
that may be referenced in past and future put*Label() calls.
Puts a LAHF instruction.
Puts a LEA instruction.
Puts a LEAVE instruction.
Puts an LFENCE instruction.
Puts a MOVDQU EAX XMM0 instruction.
Puts a MOVDQU XMM0 ESP instruction.
Puts a MOVQ EAX XMM0 instruction.
Puts a MOVQ XMM0 ESP instruction.
Puts a MOV instruction.
Puts a MOV instruction.
Puts a MOV instruction.
Puts a MOV instruction.
Puts a NOP instruction.
Puts n NOP instructions.
Puts n guard instruction.
Puts a PAUSE instruction.
Puts a POPAX instruction.
Puts a POPFX instruction.
Puts a PUSHAX instruction.
Puts a PUSHFX instruction.
Puts a PUSH instruction.
Puts an RDTSC instruction.
Puts a RET instruction.
Puts a RET instruction.
Puts an int8.
Puts a SAHF instruction.
Puts a STC instruction.
Puts a STD instruction.
Puts a uint8.
Recycles instance.
Optionaloptions: X86WriterOptions
Generates machine code for x86.