aboutsummaryrefslogtreecommitdiffstats
path: root/ujit_codegen.h
diff options
context:
space:
mode:
authorMaxime Chevalier-Boisvert <maxime.chevalierboisvert@shopify.com>2020-12-08 16:54:41 -0500
committerAlan Wu <XrXr@users.noreply.github.com>2021-10-20 18:19:26 -0400
commite4c65ec49c5e2cba537f2d9ee00888c5dfbcac34 (patch)
treeaa7a7732a3172ac4524da5de4b72c65622c02e44 /ujit_codegen.h
parent7be67a6c080dd7d0d571c50d01bb0195e0d3262d (diff)
downloadruby-e4c65ec49c5e2cba537f2d9ee00888c5dfbcac34.tar.gz
Refactor uJIT code into more files for readability
Diffstat (limited to 'ujit_codegen.h')
-rw-r--r--ujit_codegen.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/ujit_codegen.h b/ujit_codegen.h
new file mode 100644
index 0000000000..a6667b01df
--- /dev/null
+++ b/ujit_codegen.h
@@ -0,0 +1,10 @@
+#ifndef UJIT_CODEGEN_H
+#define UJIT_CODEGEN_H 1
+
+#include "stddef.h"
+
+uint8_t * ujit_compile_insn(const rb_iseq_t *iseq, unsigned int insn_idx, unsigned int *next_ujit_idx);
+
+void ujit_init_codegen(void);
+
+#endif // #ifndef UJIT_CODEGEN_H