forked from bytecodealliance/wasmtime
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #244 from near/start_to_main
Use "main" instead of start function
- Loading branch information
Showing
795 changed files
with
817 additions
and
800 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
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 |
---|---|---|
|
@@ -3,4 +3,4 @@ | |
(func $main | ||
unreachable | ||
call $assert_eq_i32) | ||
(start $main)) | ||
(export "main" (func $main))) |
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 |
---|---|---|
|
@@ -6,4 +6,4 @@ | |
i32.add | ||
i32.const 1999999999 | ||
call $assert_eq_i32) | ||
(start $main)) | ||
(export "main" (func $main))) |
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 |
---|---|---|
|
@@ -12,4 +12,4 @@ | |
(local.get $rhs) | ||
) | ||
) | ||
(start $main)) | ||
(export "main" (func $main))) |
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,4 +1,4 @@ | ||
(module | ||
(func $main | ||
nop) | ||
(start $main)) | ||
(export "main" (func $main))) |
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 |
---|---|---|
|
@@ -6,4 +6,4 @@ | |
i32.and | ||
i32.const 0 | ||
call $assert_eq_i32) | ||
(start $main)) | ||
(export "main" (func $main))) |
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 |
---|---|---|
|
@@ -21,4 +21,4 @@ | |
(local.get $counter) | ||
(i32.const 10) | ||
call $assert_eq_i32) | ||
(start $main)) | ||
(export "main" (func $main))) |
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 |
---|---|---|
|
@@ -6,4 +6,4 @@ | |
i32.div_s | ||
i32.const 2 | ||
call $assert_eq_i32) | ||
(start $main)) | ||
(export "main" (func $main))) |
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 |
---|---|---|
|
@@ -9,4 +9,4 @@ | |
i32.eqz | ||
i32.const 1 | ||
call $assert_eq_i32) | ||
(start $main)) | ||
(export "main" (func $main))) |
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 |
---|---|---|
|
@@ -9,4 +9,4 @@ | |
i32.add | ||
i32.const 1 | ||
call $assert_eq_i32) | ||
(start $main)) | ||
(export "main" (func $main))) |
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 |
---|---|---|
|
@@ -6,4 +6,4 @@ | |
i32.add | ||
i32.const 0 | ||
call $assert_eq_i32) | ||
(start $main)) | ||
(export "main" (func $main))) |
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 |
---|---|---|
|
@@ -4,4 +4,4 @@ | |
i32.const 4 | ||
i32.const 4 | ||
call $assert_eq_i32) | ||
(start $main)) | ||
(export "main" (func $main))) |
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 |
---|---|---|
|
@@ -6,4 +6,4 @@ | |
i32.mul | ||
i32.const 0 | ||
call $assert_eq_i32) | ||
(start $main)) | ||
(export "main" (func $main))) |
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 |
---|---|---|
|
@@ -10,4 +10,4 @@ | |
i64.div_s | ||
i64.const 214748366 | ||
call $assert_eq_i64) | ||
(start $main)) | ||
(export "main" (func $main))) |
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 |
---|---|---|
|
@@ -12,4 +12,4 @@ | |
i64.mul | ||
i64.mul | ||
call $assert_eq_i64) | ||
(start $main)) | ||
(export "main" (func $main))) |
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 |
---|---|---|
|
@@ -6,4 +6,4 @@ | |
i64.mul | ||
i64.const 0 | ||
call $assert_eq_i64) | ||
(start $main)) | ||
(export "main" (func $main))) |
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 |
---|---|---|
|
@@ -11,4 +11,4 @@ | |
i64.rem_s | ||
i64.const 2 | ||
call $assert_eq_i64) | ||
(start $main)) | ||
(export "main" (func $main))) |
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 |
---|---|---|
|
@@ -12,4 +12,4 @@ | |
(local.get $z) | ||
(i32.const 5) | ||
call $assert_eq_i32) | ||
(start $main)) | ||
(export "main" (func $main))) |
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 |
---|---|---|
|
@@ -6,4 +6,4 @@ | |
(local.get $x) | ||
(i32.const 2) | ||
call $assert_eq_i32) | ||
(start $main)) | ||
(export "main" (func $main))) |
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 |
---|---|---|
|
@@ -13,4 +13,4 @@ | |
i32.lt_s | ||
i32.const 0 | ||
call $assert_eq_i32) | ||
(start $main)) | ||
(export "main" (func $main))) |
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 |
---|---|---|
|
@@ -13,4 +13,4 @@ | |
i32.lt_u | ||
i32.const 0 | ||
call $assert_eq_i32) | ||
(start $main)) | ||
(export "main" (func $main))) |
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 |
---|---|---|
|
@@ -9,4 +9,4 @@ | |
i32.add | ||
i32.const 5 | ||
call $assert_eq_i32) | ||
(start $main)) | ||
(export "main" (func $main))) |
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 |
---|---|---|
|
@@ -103,5 +103,5 @@ | |
i32.load offset=25 align=4 | ||
i32.const 122 | ||
call $assert_eq_i32) | ||
(start $main) | ||
(export "main" (func $main)) | ||
) |
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 |
---|---|---|
|
@@ -6,4 +6,4 @@ | |
i32.mul | ||
i32.const 1999999999 | ||
call $assert_eq_i32) | ||
(start $main)) | ||
(export "main" (func $main))) |
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 |
---|---|---|
|
@@ -11,4 +11,4 @@ | |
i32.ne | ||
i32.const 1 | ||
call $assert_eq_i32) | ||
(start $main)) | ||
(export "main" (func $main))) |
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 |
---|---|---|
|
@@ -7,4 +7,4 @@ | |
nop | ||
i32.const 0 | ||
call $assert_eq_i32) | ||
(start $main)) | ||
(export "main" (func $main))) |
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 |
---|---|---|
|
@@ -6,4 +6,4 @@ | |
i32.or | ||
i32.const 0 | ||
call $assert_eq_i32) | ||
(start $main)) | ||
(export "main" (func $main))) |
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 |
---|---|---|
|
@@ -11,4 +11,4 @@ | |
i32.rem_s | ||
i32.const 2 | ||
call $assert_eq_i32) | ||
(start $main)) | ||
(export "main" (func $main))) |
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 |
---|---|---|
|
@@ -5,4 +5,4 @@ | |
i32.wrap_i64 | ||
i32.const -1 | ||
call $assert_eq_i32) | ||
(start $main)) | ||
(export "main" (func $main))) |
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 |
---|---|---|
|
@@ -5,4 +5,4 @@ | |
i32.wrap_i64 | ||
i32.const 0xffffffff | ||
call $assert_eq_i32) | ||
(start $main)) | ||
(export "main" (func $main))) |
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 |
---|---|---|
|
@@ -5,4 +5,4 @@ | |
i32.wrap_i64 | ||
i32.const 0x00000000 | ||
call $assert_eq_i32) | ||
(start $main)) | ||
(export "main" (func $main))) |
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 |
---|---|---|
|
@@ -5,4 +5,4 @@ | |
i32.wrap_i64 | ||
i32.const 0x00000001 | ||
call $assert_eq_i32) | ||
(start $main)) | ||
(export "main" (func $main))) |
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 |
---|---|---|
|
@@ -5,4 +5,4 @@ | |
i32.wrap_i64 | ||
i32.const -100000 | ||
call $assert_eq_i32) | ||
(start $main)) | ||
(export "main" (func $main))) |
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 |
---|---|---|
|
@@ -5,4 +5,4 @@ | |
i32.wrap_i64 | ||
i32.const 0x80000000 | ||
call $assert_eq_i32) | ||
(start $main)) | ||
(export "main" (func $main))) |
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 |
---|---|---|
|
@@ -5,4 +5,4 @@ | |
i32.wrap_i64 | ||
i32.const 0x7fffffff | ||
call $assert_eq_i32) | ||
(start $main)) | ||
(export "main" (func $main))) |
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 |
---|---|---|
|
@@ -5,4 +5,4 @@ | |
i32.wrap_i64 | ||
i32.const 0x00000000 | ||
call $assert_eq_i32) | ||
(start $main)) | ||
(export "main" (func $main))) |
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 |
---|---|---|
|
@@ -5,4 +5,4 @@ | |
i32.wrap_i64 | ||
i32.const 0xffffffff | ||
call $assert_eq_i32) | ||
(start $main)) | ||
(export "main" (func $main))) |
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 |
---|---|---|
|
@@ -5,4 +5,4 @@ | |
i32.wrap_i64 | ||
i32.const 0x00000001 | ||
call $assert_eq_i32) | ||
(start $main)) | ||
(export "main" (func $main))) |
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 |
---|---|---|
|
@@ -5,4 +5,4 @@ | |
i32.wrap_i64 | ||
i32.const 0 | ||
call $assert_eq_i32) | ||
(start $main)) | ||
(export "main" (func $main))) |
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 |
---|---|---|
|
@@ -5,4 +5,4 @@ | |
i32.wrap_i64 | ||
i32.const 0x9abcdef0 | ||
call $assert_eq_i32) | ||
(start $main)) | ||
(export "main" (func $main))) |
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 |
---|---|---|
|
@@ -5,4 +5,4 @@ | |
i64.extend_i32_s | ||
i64.const 0 | ||
call $assert_eq_i64) | ||
(start $main)) | ||
(export "main" (func $main))) |
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 |
---|---|---|
|
@@ -5,4 +5,4 @@ | |
i64.extend_i32_s | ||
i64.const 10000 | ||
call $assert_eq_i64) | ||
(start $main)) | ||
(export "main" (func $main))) |
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 |
---|---|---|
|
@@ -5,4 +5,4 @@ | |
i64.extend_i32_s | ||
i64.const -10000 | ||
call $assert_eq_i64) | ||
(start $main)) | ||
(export "main" (func $main))) |
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 |
---|---|---|
|
@@ -5,4 +5,4 @@ | |
i64.extend_i32_s | ||
i64.const -1 | ||
call $assert_eq_i64) | ||
(start $main)) | ||
(export "main" (func $main))) |
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 |
---|---|---|
|
@@ -5,4 +5,4 @@ | |
i64.extend_i32_s | ||
i64.const 0x000000007fffffff | ||
call $assert_eq_i64) | ||
(start $main)) | ||
(export "main" (func $main))) |
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 |
---|---|---|
|
@@ -5,4 +5,4 @@ | |
i64.extend_i32_s | ||
i64.const 0xffffffff80000000 | ||
call $assert_eq_i64) | ||
(start $main)) | ||
(export "main" (func $main))) |
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 |
---|---|---|
|
@@ -5,4 +5,4 @@ | |
i64.extend_i32_u | ||
i64.const 0 | ||
call $assert_eq_i64) | ||
(start $main)) | ||
(export "main" (func $main))) |
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 |
---|---|---|
|
@@ -5,4 +5,4 @@ | |
i64.extend_i32_u | ||
i64.const 10000 | ||
call $assert_eq_i64) | ||
(start $main)) | ||
(export "main" (func $main))) |
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 |
---|---|---|
|
@@ -5,4 +5,4 @@ | |
i64.extend_i32_u | ||
i64.const 0x00000000ffffd8f0 | ||
call $assert_eq_i64) | ||
(start $main)) | ||
(export "main" (func $main))) |
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 |
---|---|---|
|
@@ -5,4 +5,4 @@ | |
i64.extend_i32_u | ||
i64.const 0xffffffff | ||
call $assert_eq_i64) | ||
(start $main)) | ||
(export "main" (func $main))) |
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 |
---|---|---|
|
@@ -5,4 +5,4 @@ | |
i64.extend_i32_u | ||
i64.const 0x000000007fffffff | ||
call $assert_eq_i64) | ||
(start $main)) | ||
(export "main" (func $main))) |
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 |
---|---|---|
|
@@ -5,4 +5,4 @@ | |
i64.extend_i32_u | ||
i64.const 0x0000000080000000 | ||
call $assert_eq_i64) | ||
(start $main)) | ||
(export "main" (func $main))) |
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 |
---|---|---|
|
@@ -6,4 +6,4 @@ | |
i32.add | ||
i32.const 2 | ||
call $assert_eq_i32) | ||
(start $main)) | ||
(export "main" (func $main))) |
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 |
---|---|---|
|
@@ -6,4 +6,4 @@ | |
i32.add | ||
i32.const 1 | ||
call $assert_eq_i32) | ||
(start $main)) | ||
(export "main" (func $main))) |
Oops, something went wrong.