compiler.constants: docs

locals-and-roots
Björn Lindqvist 2016-05-19 21:49:51 +02:00
parent 27f9613694
commit 9f0cd740c8
2 changed files with 35 additions and 2 deletions

View File

@ -5,6 +5,9 @@ HELP: context-callstack-save-offset
{ $values { "n" integer } }
{ $description "Offset in bytes in the " { $link context } " struct to where the c callstack is saved." } ;
HELP: rc-absolute-cell
{ $description "Indicates that the relocation is an absolute address to an object in the VM." } ;
HELP: rt-cards-offset
{ $description "Relocation offset type for the cards table." }
{ $see-also rel-cards-offset } ;
@ -63,6 +66,37 @@ $nl
string-offset
tuple-class-offset
word-entry-point-offset
}
"Relocation classes:"
{
rc-absolute-cell
rc-absolute
rc-relative
rc-absolute-ppc-2/2
rc-absolute-ppc-2
rc-relative-ppc-2-pc
rc-relative-ppc-3-pc
rc-absolute-2
rc-absolute-1
rc-absolute-ppc-2/2/2/2
}
"Relocation types:"
{
rt-dlsym
rt-entry-point
rt-entry-point-pic
rt-entry-point-pic-tail
rt-here
rt-this
rt-literal
rt-untagged
rt-megamorphic-cache-hits
rt-vm
rt-cards-offset
rt-decks-offset
rt-dlsym-toc
rt-inline-cache-miss
rt-safepoint
} ;
ABOUT: "compiler.constants"

View File

@ -6,6 +6,7 @@ IN: compiler.constants
CONSTANT: card-bits 8
CONSTANT: deck-bits 18
: card-mark ( -- n ) 0x40 0x80 bitor ; inline
: slot-offset ( slot tag -- n ) [ bootstrap-cells ] dip - ; inline
@ -42,7 +43,6 @@ CONSTANT: deck-bits 18
: vm-special-object-offset ( n -- offset )
bootstrap-cells 10 bootstrap-cells + ;
! Relocation classes
CONSTANT: rc-absolute-cell 0
CONSTANT: rc-absolute 1
CONSTANT: rc-relative 2
@ -54,7 +54,6 @@ CONSTANT: rc-absolute-2 10
CONSTANT: rc-absolute-1 11
CONSTANT: rc-absolute-ppc-2/2/2/2 12
! Relocation types
CONSTANT: rt-dlsym 0
CONSTANT: rt-entry-point 1
CONSTANT: rt-entry-point-pic 2