Skip to content

Commit bad5897

Browse files
authored
fix(stdlib)!: Use explicit exports for Pervasives (#1301)
1 parent 9101615 commit bad5897

File tree

227 files changed

+1875
-1884
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

227 files changed

+1875
-1884
lines changed

compiler/test/__snapshots__/arrays.0f9e7d37.0.snapshot

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ arrays › array_access
1616
(import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32)))
1717
(import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32)))
1818
(import \"GRAIN$MODULE$runtime/exception\" \"printException\" (func $printException_0 (param i32 i32) (result i32)))
19-
(global $x_1131 (mut i32) (i32.const 0))
19+
(global $x_1128 (mut i32) (i32.const 0))
2020
(global $GRAIN$TABLE_SIZE i32 (i32.const 0))
2121
(elem $elem (global.get $relocBase_0))
2222
(export \"memory\" (memory $0))
@@ -35,7 +35,7 @@ arrays › array_access
3535
(local.set $0
3636
(block $compile_block.7 (result i32)
3737
(block $compile_store.3
38-
(global.set $x_1131
38+
(global.set $x_1128
3939
(tuple.extract 0
4040
(tuple.make
4141
(block $allocate_array.1 (result i32)
@@ -68,7 +68,7 @@ arrays › array_access
6868
)
6969
(call $decRef_0
7070
(global.get $GRAIN$EXPORT$decRef_0)
71-
(global.get $x_1131)
71+
(global.get $x_1128)
7272
)
7373
)
7474
)
@@ -84,7 +84,7 @@ arrays › array_access
8484
)
8585
)
8686
(local.set $2
87-
(global.get $x_1131)
87+
(global.get $x_1128)
8888
)
8989
(if
9090
(i32.gt_s

compiler/test/__snapshots__/arrays.28fcc534.0.snapshot

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ arrays › array_access4
1616
(import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32)))
1717
(import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32)))
1818
(import \"GRAIN$MODULE$runtime/exception\" \"printException\" (func $printException_0 (param i32 i32) (result i32)))
19-
(global $x_1131 (mut i32) (i32.const 0))
19+
(global $x_1128 (mut i32) (i32.const 0))
2020
(global $GRAIN$TABLE_SIZE i32 (i32.const 0))
2121
(elem $elem (global.get $relocBase_0))
2222
(export \"memory\" (memory $0))
@@ -35,7 +35,7 @@ arrays › array_access4
3535
(local.set $0
3636
(block $compile_block.7 (result i32)
3737
(block $compile_store.3
38-
(global.set $x_1131
38+
(global.set $x_1128
3939
(tuple.extract 0
4040
(tuple.make
4141
(block $allocate_array.1 (result i32)
@@ -68,7 +68,7 @@ arrays › array_access4
6868
)
6969
(call $decRef_0
7070
(global.get $GRAIN$EXPORT$decRef_0)
71-
(global.get $x_1131)
71+
(global.get $x_1128)
7272
)
7373
)
7474
)
@@ -84,7 +84,7 @@ arrays › array_access4
8484
)
8585
)
8686
(local.set $2
87-
(global.get $x_1131)
87+
(global.get $x_1128)
8888
)
8989
(if
9090
(i32.gt_s

compiler/test/__snapshots__/arrays.4c8c9f91.0.snapshot

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ arrays › array_access2
1616
(import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32)))
1717
(import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32)))
1818
(import \"GRAIN$MODULE$runtime/exception\" \"printException\" (func $printException_0 (param i32 i32) (result i32)))
19-
(global $x_1131 (mut i32) (i32.const 0))
19+
(global $x_1128 (mut i32) (i32.const 0))
2020
(global $GRAIN$TABLE_SIZE i32 (i32.const 0))
2121
(elem $elem (global.get $relocBase_0))
2222
(export \"memory\" (memory $0))
@@ -35,7 +35,7 @@ arrays › array_access2
3535
(local.set $0
3636
(block $compile_block.7 (result i32)
3737
(block $compile_store.3
38-
(global.set $x_1131
38+
(global.set $x_1128
3939
(tuple.extract 0
4040
(tuple.make
4141
(block $allocate_array.1 (result i32)
@@ -68,7 +68,7 @@ arrays › array_access2
6868
)
6969
(call $decRef_0
7070
(global.get $GRAIN$EXPORT$decRef_0)
71-
(global.get $x_1131)
71+
(global.get $x_1128)
7272
)
7373
)
7474
)
@@ -84,7 +84,7 @@ arrays › array_access2
8484
)
8585
)
8686
(local.set $2
87-
(global.get $x_1131)
87+
(global.get $x_1128)
8888
)
8989
(if
9090
(i32.gt_s

compiler/test/__snapshots__/arrays.6eac4e1f.0.snapshot

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ arrays › array_access3
1616
(import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32)))
1717
(import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32)))
1818
(import \"GRAIN$MODULE$runtime/exception\" \"printException\" (func $printException_0 (param i32 i32) (result i32)))
19-
(global $x_1131 (mut i32) (i32.const 0))
19+
(global $x_1128 (mut i32) (i32.const 0))
2020
(global $GRAIN$TABLE_SIZE i32 (i32.const 0))
2121
(elem $elem (global.get $relocBase_0))
2222
(export \"memory\" (memory $0))
@@ -35,7 +35,7 @@ arrays › array_access3
3535
(local.set $0
3636
(block $compile_block.7 (result i32)
3737
(block $compile_store.3
38-
(global.set $x_1131
38+
(global.set $x_1128
3939
(tuple.extract 0
4040
(tuple.make
4141
(block $allocate_array.1 (result i32)
@@ -68,7 +68,7 @@ arrays › array_access3
6868
)
6969
(call $decRef_0
7070
(global.get $GRAIN$EXPORT$decRef_0)
71-
(global.get $x_1131)
71+
(global.get $x_1128)
7272
)
7373
)
7474
)
@@ -84,7 +84,7 @@ arrays › array_access3
8484
)
8585
)
8686
(local.set $2
87-
(global.get $x_1131)
87+
(global.get $x_1128)
8888
)
8989
(if
9090
(i32.gt_s

compiler/test/__snapshots__/arrays.74d79181.0.snapshot

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ arrays › array_access5
1616
(import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32)))
1717
(import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32)))
1818
(import \"GRAIN$MODULE$runtime/exception\" \"printException\" (func $printException_0 (param i32 i32) (result i32)))
19-
(global $x_1131 (mut i32) (i32.const 0))
19+
(global $x_1128 (mut i32) (i32.const 0))
2020
(global $GRAIN$TABLE_SIZE i32 (i32.const 0))
2121
(elem $elem (global.get $relocBase_0))
2222
(export \"memory\" (memory $0))
@@ -35,7 +35,7 @@ arrays › array_access5
3535
(local.set $0
3636
(block $compile_block.7 (result i32)
3737
(block $compile_store.3
38-
(global.set $x_1131
38+
(global.set $x_1128
3939
(tuple.extract 0
4040
(tuple.make
4141
(block $allocate_array.1 (result i32)
@@ -68,7 +68,7 @@ arrays › array_access5
6868
)
6969
(call $decRef_0
7070
(global.get $GRAIN$EXPORT$decRef_0)
71-
(global.get $x_1131)
71+
(global.get $x_1128)
7272
)
7373
)
7474
)
@@ -84,7 +84,7 @@ arrays › array_access5
8484
)
8585
)
8686
(local.set $2
87-
(global.get $x_1131)
87+
(global.get $x_1128)
8888
)
8989
(if
9090
(i32.gt_s

compiler/test/__snapshots__/basic_functionality.0996c5f7.0.snapshot

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ basic functionality › modulo4
99
(import \"_grainEnv\" \"relocBase\" (global $relocBase_0 i32))
1010
(import \"_grainEnv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32))
1111
(import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32)))
12-
(import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$%\" (global $%_1131 (mut i32)))
12+
(import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$%\" (global $%_1128 (mut i32)))
1313
(import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32)))
14-
(import \"GRAIN$MODULE$pervasives\" \"%\" (func $%_1131 (param i32 i32 i32) (result i32)))
14+
(import \"GRAIN$MODULE$pervasives\" \"%\" (func $%_1128 (param i32 i32 i32) (result i32)))
1515
(global $GRAIN$TABLE_SIZE i32 (i32.const 0))
1616
(elem $elem (global.get $relocBase_0))
1717
(export \"memory\" (memory $0))
@@ -29,10 +29,10 @@ basic functionality › modulo4
2929
(block $cleanup_locals.2 (result i32)
3030
(local.set $0
3131
(block $compile_block.1 (result i32)
32-
(call $%_1131
32+
(call $%_1128
3333
(call $incRef_0
3434
(global.get $GRAIN$EXPORT$incRef_0)
35-
(global.get $%_1131)
35+
(global.get $%_1128)
3636
)
3737
(i32.const -33)
3838
(i32.const 35)

compiler/test/__snapshots__/basic_functionality.0a230f18.0.snapshot

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ basic functionality › land4
99
(import \"_grainEnv\" \"relocBase\" (global $relocBase_0 i32))
1010
(import \"_grainEnv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32))
1111
(import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32)))
12-
(import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$&\" (global $&_1131 (mut i32)))
12+
(import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$&\" (global $&_1128 (mut i32)))
1313
(import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32)))
14-
(import \"GRAIN$MODULE$pervasives\" \"&\" (func $&_1131 (param i32 i32 i32) (result i32)))
14+
(import \"GRAIN$MODULE$pervasives\" \"&\" (func $&_1128 (param i32 i32 i32) (result i32)))
1515
(global $GRAIN$TABLE_SIZE i32 (i32.const 0))
1616
(elem $elem (global.get $relocBase_0))
1717
(export \"memory\" (memory $0))
@@ -29,10 +29,10 @@ basic functionality › land4
2929
(block $cleanup_locals.2 (result i32)
3030
(local.set $0
3131
(block $compile_block.1 (result i32)
32-
(call $&_1131
32+
(call $&_1128
3333
(call $incRef_0
3434
(global.get $GRAIN$EXPORT$incRef_0)
35-
(global.get $&_1131)
35+
(global.get $&_1128)
3636
)
3737
(i32.const 1)
3838
(i32.const 1)

compiler/test/__snapshots__/basic_functionality.0a2e4afa.0.snapshot

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ basic functionality › lxor1
99
(import \"_grainEnv\" \"relocBase\" (global $relocBase_0 i32))
1010
(import \"_grainEnv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32))
1111
(import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32)))
12-
(import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$^\" (global $^_1131 (mut i32)))
12+
(import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$^\" (global $^_1128 (mut i32)))
1313
(import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32)))
14-
(import \"GRAIN$MODULE$pervasives\" \"^\" (func $^_1131 (param i32 i32 i32) (result i32)))
14+
(import \"GRAIN$MODULE$pervasives\" \"^\" (func $^_1128 (param i32 i32 i32) (result i32)))
1515
(global $GRAIN$TABLE_SIZE i32 (i32.const 0))
1616
(elem $elem (global.get $relocBase_0))
1717
(export \"memory\" (memory $0))
@@ -29,10 +29,10 @@ basic functionality › lxor1
2929
(block $cleanup_locals.2 (result i32)
3030
(local.set $0
3131
(block $compile_block.1 (result i32)
32-
(call $^_1131
32+
(call $^_1128
3333
(call $incRef_0
3434
(global.get $GRAIN$EXPORT$incRef_0)
35-
(global.get $^_1131)
35+
(global.get $^_1128)
3636
)
3737
(i32.const 3)
3838
(i32.const 3)

compiler/test/__snapshots__/basic_functionality.0c0b170b.0.snapshot

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ basic functionality › lor1
99
(import \"_grainEnv\" \"relocBase\" (global $relocBase_0 i32))
1010
(import \"_grainEnv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32))
1111
(import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32)))
12-
(import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$|\" (global $|_1131 (mut i32)))
12+
(import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$|\" (global $|_1128 (mut i32)))
1313
(import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32)))
14-
(import \"GRAIN$MODULE$pervasives\" \"|\" (func $|_1131 (param i32 i32 i32) (result i32)))
14+
(import \"GRAIN$MODULE$pervasives\" \"|\" (func $|_1128 (param i32 i32 i32) (result i32)))
1515
(global $GRAIN$TABLE_SIZE i32 (i32.const 0))
1616
(elem $elem (global.get $relocBase_0))
1717
(export \"memory\" (memory $0))
@@ -29,10 +29,10 @@ basic functionality › lor1
2929
(block $cleanup_locals.2 (result i32)
3030
(local.set $0
3131
(block $compile_block.1 (result i32)
32-
(call $|_1131
32+
(call $|_1128
3333
(call $incRef_0
3434
(global.get $GRAIN$EXPORT$incRef_0)
35-
(global.get $|_1131)
35+
(global.get $|_1128)
3636
)
3737
(i32.const 3)
3838
(i32.const 3)

compiler/test/__snapshots__/basic_functionality.0c400bde.0.snapshot

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ basic functionality › modulo6
99
(import \"_grainEnv\" \"relocBase\" (global $relocBase_0 i32))
1010
(import \"_grainEnv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32))
1111
(import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32)))
12-
(import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$%\" (global $%_1131 (mut i32)))
12+
(import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$%\" (global $%_1128 (mut i32)))
1313
(import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32)))
14-
(import \"GRAIN$MODULE$pervasives\" \"%\" (func $%_1131 (param i32 i32 i32) (result i32)))
14+
(import \"GRAIN$MODULE$pervasives\" \"%\" (func $%_1128 (param i32 i32 i32) (result i32)))
1515
(global $GRAIN$TABLE_SIZE i32 (i32.const 0))
1616
(elem $elem (global.get $relocBase_0))
1717
(export \"memory\" (memory $0))
@@ -29,10 +29,10 @@ basic functionality › modulo6
2929
(block $cleanup_locals.2 (result i32)
3030
(local.set $0
3131
(block $compile_block.1 (result i32)
32-
(call $%_1131
32+
(call $%_1128
3333
(call $incRef_0
3434
(global.get $GRAIN$EXPORT$incRef_0)
35-
(global.get $%_1131)
35+
(global.get $%_1128)
3636
)
3737
(i32.const 35)
3838
(i32.const 35)

0 commit comments

Comments
 (0)