Class: Seafoam::Passes::TruffleTranslators::TruffleRuby
- Defined in:
- lib/seafoam/passes/truffle_translators/truffleruby.rb
Constant Summary collapse
- TRUFFLERUBY_ARGS =
[ "DECLARATION_FRAME", "CALLER_SPECIAL_VARIABLES", "METHOD", "DECLARATION_CONTEXT", "FRAME_ON_STACK_MARKER", "SELF", "BLOCK", "DESCRIPTOR", ]
Instance Method Summary collapse
Instance Method Details
#translate_argument_load(index) ⇒ Object
18 19 20 |
# File 'lib/seafoam/passes/truffle_translators/truffleruby.rb', line 18 def translate_argument_load(index) index >= TRUFFLERUBY_ARGS.size ? "args[#{index - TRUFFLERUBY_ARGS.size}]" : TRUFFLERUBY_ARGS[index] end |