mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-23 16:07:52 -05:00
27 lines
468 B
C++
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
|