Skip to content

Commit 89111e8

Browse files
fix(documentation): Address mintlify scape issues.
1 parent 753f32a commit 89111e8

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

documentation/implementation/design.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,11 @@ For arithmetic and comparison opcodes, the loop first checks `cache.get_fast(ip)
7575
| Tag | Pattern | Notes |
7676
|-----------|-----------------------------------------|------------------------------|
7777
| Float | any non-canonical IEEE-754 | Quiet NaN remapped |
78-
| Int | `QNAN | SIGN | i48` | ±2⁴⁷ inline; BigInt above |
79-
| None | `QNAN | 1` | |
80-
| True | `QNAN | 2` | |
81-
| False | `QNAN | 3` | |
82-
| Heap | `QNAN | 4 | (i28 << 4)` | 28-bit index into `HeapPool` |
78+
| Int | `QNAN \| SIGN \| i48` | ±2⁴⁷ inline; BigInt above |
79+
| None | `QNAN \| 1` | |
80+
| True | `QNAN \| 2` | |
81+
| False | `QNAN \| 3` | |
82+
| Heap | `QNAN \| 4 \| (i28 << 4)` | 28-bit index into `HeapPool` |
8383

8484
The heap is an arena of `Option<HeapObj>` slots with a free list. Strings of 64 bytes or fewer are interned in a side hash. Integers above 2⁴⁷ are promoted to `BigInt`, a base-2³² little-endian limb array with Knuth Algorithm D for division. The garbage collector is a single-color mark-and-sweep that runs when `live > gc_threshold` or `alloc_count > max(live/4, 4096)`.
8585

documentation/implementation/syntax.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@ The operand is a 16-bit slot — its meaning depends on the opcode. Common shape
2727
| `LoadConst` | constant pool index |
2828
| `LoadName` / `StoreName` | name slot index |
2929
| `Add`, `Sub`, ... | unused (IC keyed by ip) |
30-
| `Call` | `(num_kw << 8) | num_pos` |
30+
| `Call` | `(num_kw << 8) \| num_pos` |
3131
| `BuildList` / `BuildTuple` / `BuildSet` | element count |
3232
| `BuildDict` | key-value pair count |
3333
| `BuildSlice` | parts count (2 or 3) |
3434
| `Jump` / `JumpIfFalse` | target instruction index |
3535
| `ForIter` | jump target on iterator exhaustion |
3636
| `Phi` | target slot; sources stored in `chunk.phi_sources` |
37-
| `UnpackEx` | `(before << 8) | after` |
37+
| `UnpackEx` | `(before << 8) \| after` |
3838
| `MakeFunction` | function index in `chunk.functions` |
3939

4040
Operands are bounded to `u16::MAX` (65,535). The same cap applies to the size of the constant pool, name table, and instruction stream per chunk.

0 commit comments

Comments
 (0)