summaryrefslogtreecommitdiff
path: root/ujit_compile.h
diff options
context:
space:
mode:
authorAlan Wu <XrXr@users.noreply.github.com>2020-09-28 07:03:28 -0400
committerAlan Wu <XrXr@users.noreply.github.com>2021-10-20 18:19:24 -0400
commite8c914c2502f6049ebc5bd93e8db0c62dd14400e (patch)
treec9f8f324366e0a44eba7f89aac117306f83c2e72 /ujit_compile.h
parentf3c961f273d3fa305c9ebea57e5d1ff96f241e19 (diff)
downloadruby-e8c914c2502f6049ebc5bd93e8db0c62dd14400e.tar.gz
Implement the --disable-ujit command line option
Diffstat (limited to 'ujit_compile.h')
-rw-r--r--ujit_compile.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/ujit_compile.h b/ujit_compile.h
index df9fd8e309..624f8dc5b7 100644
--- a/ujit_compile.h
+++ b/ujit_compile.h
@@ -3,12 +3,15 @@
#include "stddef.h"
#include "stdint.h"
+#include "stdbool.h"
#ifndef rb_iseq_t
typedef struct rb_iseq_struct rb_iseq_t;
#define rb_iseq_t rb_iseq_t
#endif
+void rb_ujit_init(void);
+bool rb_ujit_enabled_p(void);
uint8_t* ujit_compile_insn(rb_iseq_t *iseq, unsigned int insn_idx, unsigned int* next_ujit_idx);
#endif