Update compiler optimizer test snapshots
This commit is contained in:
+9
@@ -0,0 +1,9 @@
|
|||||||
|
---
|
||||||
|
source: src/ast/compiler/optimizer.rs
|
||||||
|
assertion_line: 533
|
||||||
|
expression: dump
|
||||||
|
---
|
||||||
|
Lambda (Upvalues: 0) <Metadata: Metadata { ty: Function(Signature { params: Tuple([]), ret: Int }), is_tail: true }>
|
||||||
|
Parameters:
|
||||||
|
Tuple <Metadata: Metadata { ty: Tuple([]), is_tail: false }>
|
||||||
|
Constant: 20 <Metadata: Metadata { ty: Int, is_tail: true }>
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
---
|
||||||
|
source: src/ast/compiler/optimizer.rs
|
||||||
|
assertion_line: 526
|
||||||
|
expression: dump
|
||||||
|
---
|
||||||
|
Lambda (Upvalues: 0) <Metadata: Metadata { ty: Function(Signature { params: Tuple([]), ret: Int }), is_tail: true }>
|
||||||
|
Parameters:
|
||||||
|
Tuple <Metadata: Metadata { ty: Tuple([]), is_tail: false }>
|
||||||
|
Constant: 42 <Metadata: Metadata { ty: Int, is_tail: true }>
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
---
|
||||||
|
source: src/ast/compiler/optimizer.rs
|
||||||
|
assertion_line: 511
|
||||||
|
expression: dump
|
||||||
|
---
|
||||||
|
Lambda (Upvalues: 0) <Metadata: Metadata { ty: Function(Signature { params: Tuple([]), ret: Int }), is_tail: true }>
|
||||||
|
Parameters:
|
||||||
|
Tuple <Metadata: Metadata { ty: Tuple([]), is_tail: false }>
|
||||||
|
Constant: 30 <Metadata: Metadata { ty: Int, is_tail: true }>
|
||||||
+16
@@ -0,0 +1,16 @@
|
|||||||
|
---
|
||||||
|
source: src/ast/compiler/optimizer.rs
|
||||||
|
assertion_line: 540
|
||||||
|
expression: dump
|
||||||
|
---
|
||||||
|
Lambda (Upvalues: 0) <Metadata: Metadata { ty: Function(Signature { params: Tuple([]), ret: Function(Signature { params: Tuple([]), ret: Int }) }), is_tail: true }>
|
||||||
|
Parameters:
|
||||||
|
Tuple <Metadata: Metadata { ty: Tuple([]), is_tail: false }>
|
||||||
|
Block <Metadata: Metadata { ty: Function(Signature { params: Tuple([]), ret: Int }), is_tail: true }>
|
||||||
|
DefLocal (Name: 'x', Slot: 0, captured by 1 lambdas) <Metadata: Metadata { ty: Int, is_tail: false }>
|
||||||
|
- Capturer: Lambda at line 1, col 23
|
||||||
|
Constant: 10 <Metadata: Metadata { ty: Int, is_tail: false }>
|
||||||
|
Lambda (Upvalues: 0) <Metadata: Metadata { ty: Function(Signature { params: Tuple([]), ret: Int }), is_tail: true }>
|
||||||
|
Parameters:
|
||||||
|
Tuple <Metadata: Metadata { ty: Tuple([]), is_tail: false }>
|
||||||
|
Constant: 10 <Metadata: Metadata { ty: Int, is_tail: true }>
|
||||||
+9
@@ -0,0 +1,9 @@
|
|||||||
|
---
|
||||||
|
source: src/ast/compiler/optimizer.rs
|
||||||
|
assertion_line: 519
|
||||||
|
expression: dump
|
||||||
|
---
|
||||||
|
Lambda (Upvalues: 0) <Metadata: Metadata { ty: Function(Signature { params: Tuple([]), ret: Int }), is_tail: true }>
|
||||||
|
Parameters:
|
||||||
|
Tuple <Metadata: Metadata { ty: Tuple([]), is_tail: false }>
|
||||||
|
Constant: 15 <Metadata: Metadata { ty: Int, is_tail: true }>
|
||||||
Reference in New Issue
Block a user