[fine] Compile iteratively instead of recursively
This commit is contained in:
parent
7fb88ef199
commit
01798236ec
6 changed files with 68 additions and 52 deletions
|
|
@ -61,6 +61,11 @@ fun test() -> f64 {
|
|||
// | RightBrace:'"}"'
|
||||
// |
|
||||
// @compiles-to:
|
||||
// | function << module >> (0 args, 0 locals):
|
||||
// | strings (0):
|
||||
// | code (2):
|
||||
// | 0: PushNothing
|
||||
// | 1: Return
|
||||
// | function foo (1 args, 0 locals):
|
||||
// | strings (0):
|
||||
// | code (4):
|
||||
|
|
@ -72,12 +77,7 @@ fun test() -> f64 {
|
|||
// | strings (0):
|
||||
// | code (4):
|
||||
// | 0: PushFloat(1.0)
|
||||
// | 1: LoadFunction(0)
|
||||
// | 1: LoadFunction(1)
|
||||
// | 2: Call(1)
|
||||
// | 3: Return
|
||||
// | function << module >> (0 args, 0 locals):
|
||||
// | strings (0):
|
||||
// | code (2):
|
||||
// | 0: PushNothing
|
||||
// | 1: Return
|
||||
// |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue