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

ruby-changes:64228

From: Takashi <ko1@a...>
Date: Thu, 17 Dec 2020 15:18:28 +0900 (JST)
Subject: [ruby-changes:64228] 3b4d698e0b (master): Ignore catch_except_p for PC motion

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

From 3b4d698e0b5a79b63b05ae0c79d282a9049225e4 Mon Sep 17 00:00:00 2001
From: Takashi Kokubun <takashikkbn@g...>
Date: Wed, 16 Dec 2020 22:12:50 -0800
Subject: Ignore catch_except_p for PC motion

We probably don't need to move it when an insn is leaf...

diff --git a/tool/ruby_vm/views/_mjit_compile_pc_and_sp.erb b/tool/ruby_vm/views/_mjit_compile_pc_and_sp.erb
index 683dce9..f6d6116 100644
--- a/tool/ruby_vm/views/_mjit_compile_pc_and_sp.erb
+++ b/tool/ruby_vm/views/_mjit_compile_pc_and_sp.erb
@@ -7,7 +7,7 @@ https://github.com/ruby/ruby/blob/trunk/tool/ruby_vm/views/_mjit_compile_pc_and_sp.erb#L7
 %
 % # JIT: Move pc for catch table on catch_except_p, and for #caller_locations and rb_profile_frames on !insn.always_leaf?
         MAYBE_UNUSED(bool pc_moved_p) = false;
-        if (body->catch_except_p || <%= insn.always_leaf? ? 'FALSE' : 'TRUE' %>) {
+        if (<%= insn.always_leaf? ? 'false' : 'true' %>) {
             fprintf(f, "    reg_cfp->pc = original_body_iseq + %d;\n", next_pos); /* ADD_PC(INSN_ATTR(width)); */
             pc_moved_p = true;
         }
-- 
cgit v0.10.2


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

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