Project

General

Profile

Actions

Misc #20201

closed

Should `opt_reverse` be renamed?

Added by kddnewton (Kevin Newton) 3 months ago. Updated about 2 months ago.

Status:
Rejected
Assignee:
-
[ruby-core:116368]

Description

When you use keywords with the &&= or ||= operator on a [] method call, it uses the opt_reverse instruction. For example:

h[foo: 1] &&= 2

This instruction is used regardless of if optimizations are on or off. (--dump=insns_without_opt and RubyVM::InstructionSequence.compile_option = false both don't turn it off.) eopt_reverse is also used within the peephole optimizer, so its naming makes sense in those cases.

Should the instruction be renamed reverse/stack_reverse?

Actions #1

Updated by kddnewton (Kevin Newton) about 2 months ago

  • Status changed from Open to Rejected
Actions

Also available in: Atom PDF

Like0
Like0