| parrotcode Register Loading Ops | |
| Docs | FAQ | Download | Examples | Talks | Resources | Perl 6 | Languages | Who's Who | Donors | Cage Cleaners | Wiki | |
set.ops - Register Loading Ops
These operations all set registers to various values.
Make a clone of $2, and put it in $1. Doesn't affect what was in $1. Removes the constant flag on the copy, if there was one.
Exchange the contents of registers $1 and $2
Set $1 to $2.
Assign a new value $2, to PMC $1. Same as the equivalent set opcodes.
Assign a new value $2, to PMC $1 by copying the value.
Assign a new value to a string by reusing the string header.
Make $1 refer to $2 by calling set_pmc.
Not strictly an assignment operation: Put into $1 the PMC that the reference PMC $2 refers to.
Set the PMC in register $1 to $2. Please note, that the register allocator doesn't track the usage of the affected register - handle with care.
Set the number in register $1 to $2. Please note, that the register allocator doesn't track the usage of the affected register - handle with care.
Set the string in register $1 to $2. Please note, that the register allocator doesn't track the usage of the affected register - handle with care.
Set the int in register $1 to $2. Please note, that the register allocator doesn't track the usage of the affected register - handle with care.
Makes a copy of the PMC in $2 and puts it in $1.
Makes a copy of the PMC in $2 and puts it in $1, using the arguments in $3.
Morphs the PMC in $1 to the type of the PMC in $2, then assigns $2 to $1.
These operations effect entire sets of registers.
Set register $1 to a null value, or zero for the numeric registers
Clear all the registers of the type indicated in the name of the operation.
INTVAL ('i') and FLOATVAL ('n') registers clear to zero.
PMC ('p') and STRING ('s') registers clear to NULL.
Copyright (C) 2001-2008, The Perl Foundation.
This program is free software. It is subject to the same license as the Parrot interpreter itself.
|
Perl.org sites
: bugs
| dev
| history
| jobs
| learn
| lists
| use
Site Information and Contacts |
|