Skip to content

feat: support more types in switch statements #2926

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 5 commits into from
Jun 3, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update fixture with upstream changes
  • Loading branch information
CountBleck committed Jun 3, 2025
commit 902977229279aaaf6703a708a7f2124603435949
6 changes: 0 additions & 6 deletions tests/compiler/switch.release.wat
Original file line number Diff line number Diff line change
Expand Up @@ -1070,7 +1070,6 @@
call $~lib/rt/tlsf/initialize
end
global.get $~lib/rt/tlsf/ROOT
local.set $1
local.get $0
i32.const 4
i32.sub
Expand Down Expand Up @@ -1103,7 +1102,6 @@
i32.const 1
i32.or
i32.store
local.get $1
local.get $2
call $~lib/rt/tlsf/insertBlock
end
Expand Down Expand Up @@ -2209,20 +2207,16 @@
i32.store
local.get $0
i32.load
local.set $0
global.get $~lib/memory/__stack_pointer
local.get $1
i32.store
local.get $0
local.get $1
i32.load
i32.eq
local.set $0
global.get $~lib/memory/__stack_pointer
i32.const 4
i32.add
global.set $~lib/memory/__stack_pointer
local.get $0
)
(func $switch/BarClass#constructor (param $0 i32) (result i32)
(local $1 i32)
Expand Down