aboutsummaryrefslogtreecommitdiffstats
path: root/yjit_asm.h
diff options
context:
space:
mode:
authorMaxime Chevalier-Boisvert <maxime.chevalierboisvert@shopify.com>2021-07-07 15:26:58 -0400
committerAlan Wu <XrXr@users.noreply.github.com>2021-10-20 18:19:37 -0400
commit51c84f003391a45460d188be155a3e85057234fd (patch)
tree1d36cea2fe0b95acad6bc05d2d68808b74e47d0f /yjit_asm.h
parent09679f486c4e0d1bb09c98239c29620ea45533c5 (diff)
downloadruby-51c84f003391a45460d188be155a3e85057234fd.tar.gz
Code page allocation code
Diffstat (limited to 'yjit_asm.h')
-rw-r--r--yjit_asm.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/yjit_asm.h b/yjit_asm.h
index 15c670fec7..c94b54240c 100644
--- a/yjit_asm.h
+++ b/yjit_asm.h
@@ -240,8 +240,12 @@ x86opnd_t const_ptr_opnd(const void *ptr);
sizeof(((struct_type*)0)->member_name[0]) * idx) \
)
-// Code block methods
+// Machine code allocation
uint8_t* alloc_exec_mem(uint32_t mem_size);
+uint8_t* alloc_code_page();
+void free_code_page(uint8_t* page_ptr);
+
+// Code block methods
void cb_init(codeblock_t* cb, uint8_t* mem_block, uint32_t mem_size);
void cb_align_pos(codeblock_t* cb, uint32_t multiple);
void cb_set_pos(codeblock_t* cb, uint32_t pos);