Slide 27
Slide 27 text
INVOKEDYNAMIC buildDynamicString(..., IRubyObject)Lorg/jruby/RubyString;
org/jruby/ir/targets/indy/BuildDynamicStringSite.buildDString(...
// arguments:
"the value ", // string
"UTF-8", // encoding
16, // code range
" was passed", // string
"UTF-8", // encoding
16, // code range
55, // size estimate
"UTF-8", // final encoding
0, // frozen?
0, // chilled?
5L, // specification (bit indicates a static piece)
3 // how many bits are relevant
]
def foo(a)
puts "the value #{a} was passed"
end