Commit efc91ed
committed
fix(vm): show func for safe calls in disassembly
Previously, safe builtin functions (OpCallSafe) were pushed to the stack
as constants (OpPush), causing the disassembler/debugger to display
their memory address (e.g., 0x140000...) instead of their name (e.g.,
concat).
This change updates the compiler to store the function name in debugInfo
when emitting OpCallSafe. The VM's disassembler now checks debugInfo for
OpPush arguments and displays the stored name if available.
Signed-off-by: Ville Vesilehto <ville@vesilehto.fi>1 parent ad49544 commit efc91ed
File tree
3 files changed
+31
-1
lines changed- compiler
- test/issues/567
- vm
3 files changed
+31
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1103 | 1103 | | |
1104 | 1104 | | |
1105 | 1105 | | |
1106 | | - | |
| 1106 | + | |
| 1107 | + | |
| 1108 | + | |
1107 | 1109 | | |
1108 | 1110 | | |
1109 | 1111 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
115 | 118 | | |
116 | 119 | | |
117 | 120 | | |
| |||
0 commit comments