るりまサーチ

最速Rubyリファレンスマニュアル検索!
24件ヒット [1-24件を表示] (0.072秒)

別のキーワード

  1. kernel trace_var
  2. tracer trace_func
  3. _builtin trace_var
  4. matrix trace
  5. etc sc_trace

ライブラリ

検索結果

RubyVM::InstructionSequence#disasm -> String (18126.0)

self が表す命令シーケンスを人間が読める形式の文字列に変換して返します。

...の文字列に変換して返します。

puts RubyVM::InstructionSequence.compile('1 + 2').disasm

出力:

== disasm: <RubyVM::InstructionSequence:<compiled>@<compiled>>==========
0000 trace 1 ( 1)
0002 putobject 1
0004...
...putobject 2
0006 opt_plus <ic:1>
0008 leave

@see RubyVM::InstructionSequence.disasm...

RubyVM::InstructionSequence#disassemble -> String (3026.0)

self が表す命令シーケンスを人間が読める形式の文字列に変換して返します。

...の文字列に変換して返します。

puts RubyVM::InstructionSequence.compile('1 + 2').disasm

出力:

== disasm: <RubyVM::InstructionSequence:<compiled>@<compiled>>==========
0000 trace 1 ( 1)
0002 putobject 1
0004...
...putobject 2
0006 opt_plus <ic:1>
0008 leave

@see RubyVM::InstructionSequence.disasm...