guards in mcode
This commit is contained in:
@@ -173,7 +173,6 @@ Memory operations come in typed variants. The compiler selects the appropriate v
|
||||
| `store_dynamic` | `obj, val, key` | Store property (dispatches at runtime) |
|
||||
| `delete` | `obj, key` | Delete property |
|
||||
| `in` | `dest, obj, key` | Check if property exists |
|
||||
| `typeof` | `dest, src` | Get type name as text |
|
||||
| `length` | `dest, src` | Get length of array or text |
|
||||
|
||||
### Object and Array Construction
|
||||
@@ -181,7 +180,7 @@ Memory operations come in typed variants. The compiler selects the appropriate v
|
||||
| Instruction | Operands | Description |
|
||||
|-------------|----------|-------------|
|
||||
| `record` | `dest` | Create empty record `{}` |
|
||||
| `array` | `dest, n, ...elems` | Create array with `n` elements |
|
||||
| `array` | `dest, n` | Create empty array (elements added via `push`) |
|
||||
| `push` | `arr, val` | Push value to array |
|
||||
| `pop` | `dest, arr` | Pop value from array |
|
||||
|
||||
|
||||
Reference in New Issue
Block a user