summaryrefslogtreecommitdiff
path: root/zjit.c
diff options
context:
space:
mode:
authorTakashi Kokubun <[email protected]>2025-02-14 17:49:53 -0800
committerTakashi Kokubun <[email protected]>2025-04-18 21:52:58 +0900
commit562c35a560e2f99b9ab6b4ff352e4cf7a73f050e (patch)
tree1700951076720a166a4e136fa610cffa1e9ba8b8 /zjit.c
parent53bee25068d11877b034af53797cf6e5d3d8e2be (diff)
Resurrect asm comment support
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/13131
Diffstat (limited to 'zjit.c')
-rw-r--r--zjit.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/zjit.c b/zjit.c
index 925924b328..8cb4776351 100644
--- a/zjit.c
+++ b/zjit.c
@@ -156,6 +156,18 @@ rb_zjit_reserve_addr_space(uint32_t mem_size)
#endif
}
+unsigned long
+rb_RSTRING_LEN(VALUE str)
+{
+ return RSTRING_LEN(str);
+}
+
+char *
+rb_RSTRING_PTR(VALUE str)
+{
+ return RSTRING_PTR(str);
+}
+
void
rb_zjit_compile_iseq(const rb_iseq_t *iseq, rb_execution_context_t *ec, bool jit_exception)
{