Skip to content

Commit cb9b74b

Browse files
committed
ZJIT: Profile opt_and instruction
1 parent 3f0e0d5 commit cb9b74b

3 files changed

Lines changed: 4 additions & 1 deletion

File tree

insns.def

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1481,6 +1481,7 @@ opt_and
14811481
(CALL_DATA cd)
14821482
(VALUE recv, VALUE obj)
14831483
(VALUE val)
1484+
// attr bool zjit_profile = true;
14841485
{
14851486
val = vm_opt_and(recv, obj);
14861487

zjit/src/cruby_bindings.inc.rs

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

zjit/src/profile.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ fn profile_insn(profiler: &mut Profiler, opcode: ruby_vminsn_type) {
6363
YARVINSN_opt_le => profile_operands(profiler, 2),
6464
YARVINSN_opt_gt => profile_operands(profiler, 2),
6565
YARVINSN_opt_ge => profile_operands(profiler, 2),
66+
YARVINSN_opt_and => profile_operands(profiler, 2),
6667
YARVINSN_opt_send_without_block => {
6768
let cd: *const rb_call_data = profiler.insn_opnd(0).as_ptr();
6869
let argc = unsafe { vm_ci_argc((*cd).ci) };

0 commit comments

Comments
 (0)