add opcode for swapping top two values on the stack

This commit is contained in:
Nikita Smith
2025-10-02 18:19:42 -07:00
parent 48c7e45535
commit 954633bba2
4 changed files with 14 additions and 4 deletions
+2 -1
View File
@@ -1349,7 +1349,8 @@ RDI_EvalOpTable:
{CallSiteValue 48 4 0 0}
{PartialValue 49 4 0 0}
{PartialValueBit 50 8 0 0}
{COUNT 51 0 0 0}
{Swap 51 0 2 2} // swaps the top two entries on the stack
{COUNT 52 0 0 0}
}
// NOTE(rjf): "ck" -> "conversion kind, when converted to type group", used in square matrix form