summaryrefslogtreecommitdiff
path: root/yjit.c
diff options
context:
space:
mode:
Diffstat (limited to 'yjit.c')
-rw-r--r--yjit.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/yjit.c b/yjit.c
index 3b4a9907be..b97fcdb62c 100644
--- a/yjit.c
+++ b/yjit.c
@@ -557,6 +557,12 @@ rb_leaf_builtin_function(const rb_iseq_t *iseq)
return (const struct rb_builtin_function *)iseq->body->iseq_encoded[1];
}
+VALUE
+rb_yjit_str_simple_append(VALUE str1, VALUE str2)
+{
+ return rb_str_cat(str1, RSTRING_PTR(str2), RSTRING_LEN(str2));
+}
+
struct rb_control_frame_struct *
rb_get_ec_cfp(rb_execution_context_t *ec)
{
@@ -692,6 +698,13 @@ rb_RCLASS_ORIGIN(VALUE c)
return RCLASS_ORIGIN(c);
}
+// Return the string encoding index
+int
+rb_ENCODING_GET(VALUE obj)
+{
+ return RB_ENCODING_GET(obj);
+}
+
bool
rb_yjit_multi_ractor_p(void)
{