Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
no more inline state just for dynamic dispatch
- Loading branch information
1 parent
1a8f8d8
commit 904268f
Showing
3 changed files
with
13 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
require bytecode_analysis | ||
|
||
vm = make_vm(->) | ||
def ops(f) | ||
bytecode_analysis.func_ops(vm f) | ||
|
||
def func() | ||
add(1 2) | ||
|
||
ops(func) | filter(op -> op.opcode == :push_state_frame) | flatten | equals([]) | assert |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
[tests/error/input_cast.ca:3] | ||
[inside increment()] | ||
[:649 inside increment()] | ||
Error: Couldn't cast fish to type int |