るりまサーチ

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

別のキーワード

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

検索結果

<< < ... 6 7 8 >>

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

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

...uts 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:...

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

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

...uts 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:...

RubyVM::InstructionSequence#to_a -> Array (7.0)

self の情報を 14 要素の配列にして返します。

...# 2,
# 0,
# 1,
# {:arg_size=>0, :local_size=>2, :stack_max=>2},
# "<compiled>",
# "<compiled>",
# nil,
# 1,
# :top,
# [:num],
# 0,
# [],
# [1,
# [:trace, 1],
# [:putobject_OP_INT2FIX_O_1_C_],
# [:putobject, 2],
# [:opt_plus, {:mid=>:+, :flag=>256, :orig_argc=>1, :blockptr=>nil}],
# [:dup],
# [...
<< < ... 6 7 8 >>