2021-03-06 18:46:56 -05:00
|
|
|
#ifndef YJIT_UTILS_H
|
|
|
|
#define YJIT_UTILS_H 1
|
2020-09-17 17:09:42 -04:00
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
#include <stdbool.h>
|
2021-03-06 18:46:56 -05:00
|
|
|
#include "yjit_asm.h"
|
2020-09-17 17:09:42 -04:00
|
|
|
|
|
|
|
void push_regs(codeblock_t* cb);
|
|
|
|
void pop_regs(codeblock_t* cb);
|
2020-09-18 12:20:43 -04:00
|
|
|
void print_int(codeblock_t* cb, x86opnd_t opnd);
|
2020-10-14 14:03:31 -04:00
|
|
|
void print_ptr(codeblock_t* cb, x86opnd_t opnd);
|
2020-09-17 17:09:42 -04:00
|
|
|
void print_str(codeblock_t* cb, const char* str);
|
|
|
|
|
2021-03-06 18:46:56 -05:00
|
|
|
#endif // #ifndef YJIT_UTILS_H
|