[前][次][番号順一覧][スレッド一覧]

ruby-changes:68973

From: Maxime <ko1@a...>
Date: Thu, 21 Oct 2021 08:19:31 +0900 (JST)
Subject: [ruby-changes:68973] ce928473d0 (master): Deletate to opt_send_without_block for opt_ltlt (#33)

https://git.ruby-lang.org/ruby.git/commit/?id=ce928473d0

From ce928473d054b3fcbe2b05a1432b770dccd54bef Mon Sep 17 00:00:00 2001
From: Maxime Chevalier-Boisvert <maximechevalierb@g...>
Date: Mon, 10 May 2021 15:32:43 -0400
Subject: Deletate to opt_send_without_block for opt_ltlt (#33)

---
 yjit_codegen.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/yjit_codegen.c b/yjit_codegen.c
index 9d66cbe3c0..3d3e309772 100644
--- a/yjit_codegen.c
+++ b/yjit_codegen.c
@@ -1592,6 +1592,13 @@ gen_opt_mod(jitstate_t* jit, ctx_t* ctx) https://github.com/ruby/ruby/blob/trunk/yjit_codegen.c#L1592
     return YJIT_KEEP_COMPILING;
 }
 
+static codegen_status_t
+gen_opt_ltlt(jitstate_t* jit, ctx_t* ctx)
+{
+    // Delegate to send, call the ltlt method
+    return gen_opt_send_without_block(jit, ctx);
+}
+
 void
 gen_branchif_branch(codeblock_t* cb, uint8_t* target0, uint8_t* target1, uint8_t shape)
 {
@@ -2575,6 +2582,7 @@ yjit_init_codegen(void) https://github.com/ruby/ruby/blob/trunk/yjit_codegen.c#L2582
     yjit_reg_op(BIN(opt_minus), gen_opt_minus);
     yjit_reg_op(BIN(opt_plus), gen_opt_plus);
     yjit_reg_op(BIN(opt_mod), gen_opt_mod);
+    yjit_reg_op(BIN(opt_ltlt), gen_opt_ltlt);
     yjit_reg_op(BIN(opt_getinlinecache), gen_opt_getinlinecache);
     yjit_reg_op(BIN(branchif), gen_branchif);
     yjit_reg_op(BIN(branchunless), gen_branchunless);
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]