Method: Voodoo::AMD64NasmGenerator#arg_offset
- Defined in:
- lib/voodoo/generators/amd64_nasm_generator.rb
#arg_offset(n) ⇒ Object
Returns the offset from rbp at which the nth argument is stored.
307 308 309 310 311 312 313 |
# File 'lib/voodoo/generators/amd64_nasm_generator.rb', line 307 def arg_offset n if n < @NREG_ARGS (n + 1) * -@WORDSIZE else (n - @NREG_ARGS) * @WORDSIZE + 2 * @WORDSIZE end end |