From c9a30858fcac984f7c49084584f7b18deac32383 Mon Sep 17 00:00:00 2001 From: k0kubun Date: Sat, 11 Aug 2018 05:37:17 +0000 Subject: [PATCH] _mjit_compile_pc_and_sp.erb: update the comment about the pc motion reason git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64284 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- tool/ruby_vm/views/_mjit_compile_pc_and_sp.erb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 5ff1c96f8e..5143f7bcb4 100644 --- a/tool/ruby_vm/views/_mjit_compile_pc_and_sp.erb +++ b/tool/ruby_vm/views/_mjit_compile_pc_and_sp.erb @@ -5,8 +5,7 @@ % # conditions mentioned in the file COPYING are met. Consult the file for % # details. % -% # JIT: Move pc so that catch table lookup condition is met. If the ISeq might not catch an exception, -% # the pc motion is optimized away and thus pc should be set properly before `goto cancel`. +% # JIT: Move pc so that catch table lookup condition is met, and for #caller_locations and rb_profile_frames. fprintf(f, " reg_cfp->pc = original_body_iseq + %d;\n", next_pos); /* ADD_PC(INSN_ATTR(width)); */ % % # JIT: move sp to use or preserve stack variables