Skip to content

Commit 6e68d1b

Browse files
committed
snaps
1 parent ce340f7 commit 6e68d1b

File tree

346 files changed

+1222
-825
lines changed

Some content is hidden

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

346 files changed

+1222
-825
lines changed

compiler/esy.lock/index.json

Lines changed: 369 additions & 228 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

compiler/src/codegen/compcore.re

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1511,6 +1511,7 @@ let allocate_byte_like_from_buffer = (wasm_mod, env, buf, tag, label) => {
15111511
),
15121512
Expression.Const.make(wasm_mod, const_int32(0)),
15131513
Expression.Const.make(wasm_mod, const_int32(data_size)),
1514+
grain_memory,
15141515
),
15151516
get_swap(),
15161517
],
@@ -3627,10 +3628,6 @@ let compile_wasm_module = (~env=?, ~name=?, prog) => {
36273628
);
36283629
validate_module(~name?, wasm_mod);
36293630

3630-
switch (Config.profile^) {
3631-
| Some(Release) => Optimize_mod.optimize(wasm_mod)
3632-
| None => ()
3633-
};
36343631
wasm_mod;
36353632
};
36363633

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ arrays › array_access
1919
(global $GRAIN$TABLE_SIZE i32 (i32.const 0))
2020
(memory $0 0)
2121
(elem $elem (global.get $relocBase_0))
22-
(export \"memory\" (memory $0))
2322
(export \"_gmain\" (func $_gmain))
2423
(export \"_start\" (func $_start))
2524
(export \"GRAIN$TABLE_SIZE\" (global $GRAIN$TABLE_SIZE))
25+
(export \"memory\" (memory $0))
2626
(func $_gmain (result i32)
2727
(local $0 i32)
2828
(local $1 i32)

compiler/test/__snapshots__/arrays.1deb7b51.0.snapshot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ arrays › array_access5
2020
(global $GRAIN$TABLE_SIZE i32 (i32.const 0))
2121
(memory $0 0)
2222
(elem $elem (global.get $relocBase_0))
23-
(export \"memory\" (memory $0))
2423
(export \"_gmain\" (func $_gmain))
2524
(export \"_start\" (func $_start))
2625
(export \"GRAIN$TABLE_SIZE\" (global $GRAIN$TABLE_SIZE))
26+
(export \"memory\" (memory $0))
2727
(func $_gmain (result i32)
2828
(local $0 i32)
2929
(local $1 i32)

compiler/test/__snapshots__/arrays.24453e6e.0.snapshot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ arrays › array1_trailing
1414
(global $GRAIN$TABLE_SIZE i32 (i32.const 0))
1515
(memory $0 0)
1616
(elem $elem (global.get $relocBase_0))
17-
(export \"memory\" (memory $0))
1817
(export \"_gmain\" (func $_gmain))
1918
(export \"_start\" (func $_start))
2019
(export \"GRAIN$TABLE_SIZE\" (global $GRAIN$TABLE_SIZE))
20+
(export \"memory\" (memory $0))
2121
(func $_gmain (result i32)
2222
(local $0 i32)
2323
(local $1 i32)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ arrays › array_access4
1919
(global $GRAIN$TABLE_SIZE i32 (i32.const 0))
2020
(memory $0 0)
2121
(elem $elem (global.get $relocBase_0))
22-
(export \"memory\" (memory $0))
2322
(export \"_gmain\" (func $_gmain))
2423
(export \"_start\" (func $_start))
2524
(export \"GRAIN$TABLE_SIZE\" (global $GRAIN$TABLE_SIZE))
25+
(export \"memory\" (memory $0))
2626
(func $_gmain (result i32)
2727
(local $0 i32)
2828
(local $1 i32)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ arrays › array_access2
1919
(global $GRAIN$TABLE_SIZE i32 (i32.const 0))
2020
(memory $0 0)
2121
(elem $elem (global.get $relocBase_0))
22-
(export \"memory\" (memory $0))
2322
(export \"_gmain\" (func $_gmain))
2423
(export \"_start\" (func $_start))
2524
(export \"GRAIN$TABLE_SIZE\" (global $GRAIN$TABLE_SIZE))
25+
(export \"memory\" (memory $0))
2626
(func $_gmain (result i32)
2727
(local $0 i32)
2828
(local $1 i32)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ arrays › array_access3
1919
(global $GRAIN$TABLE_SIZE i32 (i32.const 0))
2020
(memory $0 0)
2121
(elem $elem (global.get $relocBase_0))
22-
(export \"memory\" (memory $0))
2322
(export \"_gmain\" (func $_gmain))
2423
(export \"_start\" (func $_start))
2524
(export \"GRAIN$TABLE_SIZE\" (global $GRAIN$TABLE_SIZE))
25+
(export \"memory\" (memory $0))
2626
(func $_gmain (result i32)
2727
(local $0 i32)
2828
(local $1 i32)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ arrays › array_access5
1919
(global $GRAIN$TABLE_SIZE i32 (i32.const 0))
2020
(memory $0 0)
2121
(elem $elem (global.get $relocBase_0))
22-
(export \"memory\" (memory $0))
2322
(export \"_gmain\" (func $_gmain))
2423
(export \"_start\" (func $_start))
2524
(export \"GRAIN$TABLE_SIZE\" (global $GRAIN$TABLE_SIZE))
25+
(export \"memory\" (memory $0))
2626
(func $_gmain (result i32)
2727
(local $0 i32)
2828
(local $1 i32)

compiler/test/__snapshots__/arrays.9e17b4d1.0.snapshot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ arrays › array3
1414
(global $GRAIN$TABLE_SIZE i32 (i32.const 0))
1515
(memory $0 0)
1616
(elem $elem (global.get $relocBase_0))
17-
(export \"memory\" (memory $0))
1817
(export \"_gmain\" (func $_gmain))
1918
(export \"_start\" (func $_start))
2019
(export \"GRAIN$TABLE_SIZE\" (global $GRAIN$TABLE_SIZE))
20+
(export \"memory\" (memory $0))
2121
(func $_gmain (result i32)
2222
(local $0 i32)
2323
(local $1 i32)

0 commit comments

Comments
 (0)