geode/loader/dobby/source/MemoryAllocator/CodeBuffer/code-buffer-arm64.h
2022-07-30 19:24:03 +03:00

27 lines
468 B
C++

#ifndef CODE_BUFFER_ARM64_H
#define CODE_BUFFER_ARM64_H
#include "MemoryAllocator/CodeBuffer/CodeBufferBase.h"
typedef int32_t arm64_inst_t;
class CodeBuffer : public CodeBufferBase {
public:
CodeBuffer() : CodeBufferBase() {
}
CodeBuffer(int size) : CodeBufferBase(size) {
}
public:
arm64_inst_t LoadInst(int offset);
void FixBindLabel(int offset, arm64_inst_t instr);
void EmitInst(arm64_inst_t instr);
void Emit64(int64_t data);
};
#endif