ruby-changes:69210
From: Alan <ko1@a...>
Date: Thu, 21 Oct 2021 08:23:44 +0900 (JST)
Subject: [ruby-changes:69210] 9dce2d5132 (master): Also do String#str
https://git.ruby-lang.org/ruby.git/commit/?id=9dce2d5132 From 9dce2d51326c7db947507f32a9d33a0d22bbafbd Mon Sep 17 00:00:00 2001 From: Alan Wu <XrXr@u...> Date: Fri, 24 Sep 2021 18:09:22 -0400 Subject: Also do String#str --- yjit_codegen.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/yjit_codegen.c b/yjit_codegen.c index c284fc2551..5bf0905541 100644 --- a/yjit_codegen.c +++ b/yjit_codegen.c @@ -4505,5 +4505,7 @@ yjit_init_codegen(void) https://github.com/ruby/ruby/blob/trunk/yjit_codegen.c#L4505 yjit_reg_method(rb_cSymbol, "==", jit_rb_obj_equal); yjit_reg_method(rb_cSymbol, "===", jit_rb_obj_equal); + // rb_str_to_s() methods in string.c yjit_reg_method(rb_cString, "to_s", jit_rb_str_to_s); + yjit_reg_method(rb_cString, "to_str", jit_rb_str_to_s); } -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/