aboutsummaryrefslogtreecommitdiffstats
path: root/yjit_utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'yjit_utils.h')
-rw-r--r--yjit_utils.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/yjit_utils.h b/yjit_utils.h
new file mode 100644
index 0000000000..cbe3e11863
--- /dev/null
+++ b/yjit_utils.h
@@ -0,0 +1,15 @@
+#ifndef YJIT_UTILS_H
+#define YJIT_UTILS_H 1
+
+#include <stdint.h>
+#include <stddef.h>
+#include <stdbool.h>
+#include "yjit_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 YJIT_UTILS_H