summaryrefslogtreecommitdiff
path: root/ujit_utils.h
blob: 005d9285113c3681ed46a7d030974ab5fa192218 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#ifndef UJIT_UTILS_H
#define UJIT_UTILS_H 1

#include <stdint.h>
#include <stddef.h>
#include <stdbool.h>
#include "ujit_asm.h"

void push_regs(codeblock_t* cb);
void pop_regs(codeblock_t* cb);
void print_int(codeblock_t* cb, x86opnd_t opnd);
void print_ptr(codeblock_t* cb, x86opnd_t opnd);
void print_str(codeblock_t* cb, const char* str);

#endif // #ifndef UJIT_UTILS_H