class SyntaxTree::YARV::Disassembler::Squished
This class is another object that handles disassembling a YARV
instruction sequence but it renders it without any of the extra spacing or alignment.
Public Instance Methods
calldata(value)
click to toggle source
# File lib/syntax_tree/yarv/disassembler.rb, line 10 def calldata(value) value.inspect end
enqueue(iseq)
click to toggle source
# File lib/syntax_tree/yarv/disassembler.rb, line 14 def enqueue(iseq) end
event(name)
click to toggle source
# File lib/syntax_tree/yarv/disassembler.rb, line 17 def event(name) end
inline_storage(cache)
click to toggle source
# File lib/syntax_tree/yarv/disassembler.rb, line 20 def inline_storage(cache) "<is:#{cache}>" end
instruction(name, operands = [])
click to toggle source
# File lib/syntax_tree/yarv/disassembler.rb, line 24 def instruction(name, operands = []) operands.empty? ? name : "#{name} #{operands.join(", ")}" end
label(value)
click to toggle source
# File lib/syntax_tree/yarv/disassembler.rb, line 28 def label(value) "%04d" % value.name["label_".length..] end
local(index, **)
click to toggle source
# File lib/syntax_tree/yarv/disassembler.rb, line 32 def local(index, **) index.inspect end
object(value)
click to toggle source
# File lib/syntax_tree/yarv/disassembler.rb, line 36 def object(value) value.inspect end