Docs: for cpu.architecture words

db4
Björn Lindqvist 2014-05-12 00:28:26 +02:00 committed by John Benediktsson
parent cf8de7cc1a
commit 93a609db38
1 changed files with 9 additions and 1 deletions

View File

@ -69,10 +69,14 @@ HELP: %call
HELP: %box-alien HELP: %box-alien
{ $values { "dst" "destination register" } { "src" "source register" } { "temp" "temporary register" } } { $values { "dst" "destination register" } { "src" "source register" } { "temp" "temporary register" } }
{ $description "Emits machine code for boxing an alien value. Internally, this word will allocate five " { $link cells } " which wraps the alien." } { $description "Emits machine code for boxing an alien value. If the alien is not a NULL pointer, then five " { $link cells } " will be allocated in the nursery space to wrap the object. See vm/layouts.hpp for details." }
{ $examples { $unchecked-example $[ ex-%box-alien ] } } { $examples { $unchecked-example $[ ex-%box-alien ] } }
{ $see-also ##box-alien %allot } ; { $see-also ##box-alien %allot } ;
HELP: %context
{ $values { "dst" "a register symbol" } }
{ $description "Emits machine code for putting a pointer to the context field of the " { $link vm } " in a register." } ;
HELP: %allot HELP: %allot
{ $values { $values
{ "dst" "destination register symbol" } { "dst" "destination register symbol" }
@ -86,6 +90,10 @@ HELP: %allot
{ $unchecked-example $[ ex-%allot ] } { $unchecked-example $[ ex-%allot ] }
} ; } ;
HELP: test-instruction?
{ $values { "?" "a boolean" } }
{ $description "Does the current architecture have a test instruction? Used on x86 to rewrite some " { $link CMP } " instructions to less expensive " { $link TEST } "s." } ;
HELP: fused-unboxing? HELP: fused-unboxing?
{ $values { "?" boolean } } { $values { "?" boolean } }
{ $description "Whether this architecture support " { $link %load-float } ", " { $link %load-double } ", and " { $link %load-vector } "." } ; { $description "Whether this architecture support " { $link %load-float } ", " { $link %load-double } ", and " { $link %load-vector } "." } ;