mirror of
https://github.com/geode-sdk/geode.git
synced 2024-12-14 18:11:15 -05:00
28 lines
468 B
C
28 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
|