gc-root-offset ( spill-slot -- n ) (original) (raw)

gc-root-offset ( spill-slot -- n )
CPU architecture description model

Prev: %reload ( dst rep src -- )
Next: immediate-arithmetic? ( n -- ? )

Vocabulary
cpu.architecture

Inputs

spill-slot a spill-slot

Outputs

n an integer

Word description
Offset in the stack-frame for the word being constructed where the spill slot is located. The value is given in cell units.

See also
gc-info

Definition

USING: system ;

IN: cpu.architecture

HOOK: gc-root-offset cpu ( spill-slot -- n )

Methods

USING: cpu.architecture system ;

M: arm.64 gc-root-offset ;

USING: accessors compiler.cfg cpu.architecture cpu.x86 layouts
math system ;

M: x86 gc-root-offset
n>> spill-offset special-offset cell + cell /i ;