-
Notifications
You must be signed in to change notification settings - Fork 829
[Custom Descriptors] Exact function imports #8033
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
7bdfbf6
[NFC] Remove HeapType from RefFunc::finalize
tlively e6c3067
[Custom Descriptors] Exact function imports
tlively 6cf3609
Merge branch 'main' into exact-func-imports
tlively 02f2a07
new scheme for int conversion
tlively eac76a3
consistency and ubsan fix
tlively 43a5482
oops
tlively e37a0df
whitespace
tlively 69b0b01
undo unnecessary change
tlively File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
| @@ -0,0 +1,97 @@ | ||
| ;; NOTE: Assertions have been generated by update_lit_checks.py --all-items and should not be edited. | ||
|
|
||
| ;; RUN: wasm-opt %s -all -o %t.text.wast -g -S | ||
| ;; RUN: wasm-as %s -all -g -o %t.wasm | ||
| ;; RUN: wasm-dis %t.wasm -all -o %t.bin.wast | ||
| ;; RUN: wasm-as %s -all -o %t.nodebug.wasm | ||
| ;; RUN: wasm-dis %t.nodebug.wasm -all -o %t.bin.nodebug.wast | ||
| ;; RUN: cat %t.text.wast | filecheck %s --check-prefix=CHECK-TEXT | ||
| ;; RUN: cat %t.bin.wast | filecheck %s --check-prefix=CHECK-BIN | ||
| ;; RUN: cat %t.bin.nodebug.wast | filecheck %s --check-prefix=CHECK-BIN-NODEBUG | ||
|
|
||
| (module | ||
| ;; CHECK-TEXT: (type $f (func (param i32) (result i64))) | ||
| ;; CHECK-BIN: (type $f (func (param i32) (result i64))) | ||
| (type $f (func (param i32) (result i64))) | ||
| ;; CHECK-TEXT: (import "" "" (func $1 (exact (type $f) (param i32) (result i64)))) | ||
| ;; CHECK-BIN: (import "" "" (func $1 (exact (type $f) (param i32) (result i64)))) | ||
| (import "" "" (func $1 (exact (type $f)))) | ||
| ;; CHECK-TEXT: (import "" "" (func $2 (exact (type $f) (param i32) (result i64)))) | ||
| ;; CHECK-BIN: (import "" "" (func $2 (exact (type $f) (param i32) (result i64)))) | ||
| (import "" "" (func $2 (exact (type $f) (param i32) (result i64)))) | ||
| ;; CHECK-TEXT: (import "" "" (func $3 (exact (type $f) (param i32) (result i64)))) | ||
| ;; CHECK-BIN: (import "" "" (func $3 (exact (type $f) (param i32) (result i64)))) | ||
| (import "" "" (func $3 (exact (param i32) (result i64)))) | ||
|
|
||
| (func $4 (import "" "") (exact (type $f))) | ||
| (func $5 (import "" "") (exact (type $f) (param i32) (result i64))) | ||
| (func $6 (import "" "") (exact (param i32) (result i64))) | ||
|
|
||
| (global (ref (exact $f)) (ref.func $1)) | ||
| (global (ref (exact $f)) (ref.func $2)) | ||
| (global (ref (exact $f)) (ref.func $3)) | ||
| (global (ref (exact $f)) (ref.func $4)) | ||
| (global (ref (exact $f)) (ref.func $5)) | ||
| (global (ref (exact $f)) (ref.func $6)) | ||
| ) | ||
| ;; CHECK-TEXT: (import "" "" (func $4 (exact (type $f) (param i32) (result i64)))) | ||
|
|
||
| ;; CHECK-TEXT: (import "" "" (func $5 (exact (type $f) (param i32) (result i64)))) | ||
|
|
||
| ;; CHECK-TEXT: (import "" "" (func $6 (exact (type $f) (param i32) (result i64)))) | ||
|
|
||
| ;; CHECK-TEXT: (global $global$0 (ref (exact $f)) (ref.func $1)) | ||
|
|
||
| ;; CHECK-TEXT: (global $global$1 (ref (exact $f)) (ref.func $2)) | ||
|
|
||
| ;; CHECK-TEXT: (global $global$2 (ref (exact $f)) (ref.func $3)) | ||
|
|
||
| ;; CHECK-TEXT: (global $global$3 (ref (exact $f)) (ref.func $4)) | ||
|
|
||
| ;; CHECK-TEXT: (global $global$4 (ref (exact $f)) (ref.func $5)) | ||
|
|
||
| ;; CHECK-TEXT: (global $global$5 (ref (exact $f)) (ref.func $6)) | ||
|
|
||
| ;; CHECK-BIN: (import "" "" (func $4 (exact (type $f) (param i32) (result i64)))) | ||
|
|
||
| ;; CHECK-BIN: (import "" "" (func $5 (exact (type $f) (param i32) (result i64)))) | ||
|
|
||
| ;; CHECK-BIN: (import "" "" (func $6 (exact (type $f) (param i32) (result i64)))) | ||
|
|
||
| ;; CHECK-BIN: (global $global$0 (ref (exact $f)) (ref.func $1)) | ||
|
|
||
| ;; CHECK-BIN: (global $global$1 (ref (exact $f)) (ref.func $2)) | ||
|
|
||
| ;; CHECK-BIN: (global $global$2 (ref (exact $f)) (ref.func $3)) | ||
|
|
||
| ;; CHECK-BIN: (global $global$3 (ref (exact $f)) (ref.func $4)) | ||
|
|
||
| ;; CHECK-BIN: (global $global$4 (ref (exact $f)) (ref.func $5)) | ||
|
|
||
| ;; CHECK-BIN: (global $global$5 (ref (exact $f)) (ref.func $6)) | ||
|
|
||
| ;; CHECK-BIN-NODEBUG: (type $0 (func (param i32) (result i64))) | ||
|
|
||
| ;; CHECK-BIN-NODEBUG: (import "" "" (func $fimport$0 (exact (type $0) (param i32) (result i64)))) | ||
|
|
||
| ;; CHECK-BIN-NODEBUG: (import "" "" (func $fimport$1 (exact (type $0) (param i32) (result i64)))) | ||
|
|
||
| ;; CHECK-BIN-NODEBUG: (import "" "" (func $fimport$2 (exact (type $0) (param i32) (result i64)))) | ||
|
|
||
| ;; CHECK-BIN-NODEBUG: (import "" "" (func $fimport$3 (exact (type $0) (param i32) (result i64)))) | ||
|
|
||
| ;; CHECK-BIN-NODEBUG: (import "" "" (func $fimport$4 (exact (type $0) (param i32) (result i64)))) | ||
|
|
||
| ;; CHECK-BIN-NODEBUG: (import "" "" (func $fimport$5 (exact (type $0) (param i32) (result i64)))) | ||
|
|
||
| ;; CHECK-BIN-NODEBUG: (global $global$0 (ref (exact $0)) (ref.func $fimport$0)) | ||
|
|
||
| ;; CHECK-BIN-NODEBUG: (global $global$1 (ref (exact $0)) (ref.func $fimport$1)) | ||
|
|
||
| ;; CHECK-BIN-NODEBUG: (global $global$2 (ref (exact $0)) (ref.func $fimport$2)) | ||
|
|
||
| ;; CHECK-BIN-NODEBUG: (global $global$3 (ref (exact $0)) (ref.func $fimport$3)) | ||
|
|
||
| ;; CHECK-BIN-NODEBUG: (global $global$4 (ref (exact $0)) (ref.func $fimport$4)) | ||
|
|
||
| ;; CHECK-BIN-NODEBUG: (global $global$5 (ref (exact $0)) (ref.func $fimport$5)) | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems unused?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's used with prefix CHECK_TEXT below.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh right, sorry I missed that.