class SyntaxTree::YARV::OptLT
### Summary
‘opt_lt` is a specialization of the `opt_send_without_block` instruction that occurs when the < operator is used. Fast paths exist when both operands are integers or floats. It pops both the receiver and the argument off the stack and pushes on the result.
### Usage
~~~ruby 3 < 4 ~~~
Attributes
Public Class Methods
Source
# File lib/syntax_tree/yarv/instructions.rb, line 3541 def initialize(calldata) @calldata = calldata end
Public Instance Methods
Source
# File lib/syntax_tree/yarv/instructions.rb, line 3557 def ==(other) other.is_a?(OptLT) && other.calldata == calldata end
Source
# File lib/syntax_tree/yarv/instructions.rb, line 3577 def call(vm) canonical.call(vm) end
Source
# File lib/syntax_tree/yarv/instructions.rb, line 3573 def canonical Send.new(calldata, nil) end
Source
# File lib/syntax_tree/yarv/instructions.rb, line 3553 def deconstruct_keys(_keys) { calldata: calldata } end
Source
# File lib/syntax_tree/yarv/instructions.rb, line 3545 def disasm(fmt) fmt.instruction("opt_lt", [fmt.calldata(calldata)]) end
Source
# File lib/syntax_tree/yarv/instructions.rb, line 3549 def to_a(_iseq) [:opt_lt, calldata.to_h] end