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

ruby-changes:73302

From: Takashi <ko1@a...>
Date: Tue, 30 Aug 2022 01:09:58 +0900 (JST)
Subject: [ruby-changes:73302] a78bbef12f (master): Use VALUE for block_iseq (https://github.com/Shopify/ruby/pull/417)

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

From a78bbef12feac4d4f5eca98718cf7418c1b8e584 Mon Sep 17 00:00:00 2001
From: Takashi Kokubun <takashikkbn@g...>
Date: Wed, 17 Aug 2022 16:23:21 -0700
Subject: Use VALUE for block_iseq (https://github.com/Shopify/ruby/pull/417)

Co-authored-by: Alan Wu <alansi.xingwu@s...>
---
 yjit/src/codegen.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/yjit/src/codegen.rs b/yjit/src/codegen.rs
index c6e69e0ad2..5be0f0f749 100644
--- a/yjit/src/codegen.rs
+++ b/yjit/src/codegen.rs
@@ -3958,7 +3958,7 @@ fn gen_send_cfunc( https://github.com/ruby/ruby/blob/trunk/yjit/src/codegen.rs#L3958
         // Change cfp->block_code in the current frame. See vm_caller_setup_arg_block().
         // VM_CFP_TO_CAPTURED_BLOCK does &cfp->self, rb_captured_block->code.iseq aliases
         // with cfp->block_code.
-        asm.mov(Opnd::mem(64, CFP, RUBY_OFFSET_CFP_BLOCK_CODE), Opnd::UImm(block_iseq as u64));
+        asm.mov(Opnd::mem(64, CFP, RUBY_OFFSET_CFP_BLOCK_CODE), VALUE::from(block_iseq).into());
     }
 
     // Increment the stack pointer by 3 (in the callee)
-- 
cgit v1.2.1


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

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