Skip to content

Commit 69d3d89

Browse files
committed
fix test
1 parent f0237f5 commit 69d3d89

Some content is hidden

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

60 files changed

+8448
-13544
lines changed

tests/compiler/assignment-chain.debug.wat

Lines changed: 7 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -2250,35 +2250,30 @@
22502250
local.get $ptr
22512251
return
22522252
)
2253+
(func $assignment-chain/A#set:y (param $this i32) (param $y i64)
2254+
local.get $this
2255+
local.get $y
2256+
i64.store offset=8
2257+
)
22532258
(func $assignment-chain/A#set:x (param $this i32) (param $x i64)
22542259
local.get $this
22552260
local.get $x
22562261
i64.store
22572262
)
2258-
(func $assignment-chain/A#set:y (param $this i32) (param $y i64)
2263+
(func $assignment-chain/B#get:_setter_cnt (param $this i32) (result i32)
22592264
local.get $this
2260-
local.get $y
2261-
i64.store offset=8
2265+
i32.load
22622266
)
22632267
(func $assignment-chain/B#set:_setter_cnt (param $this i32) (param $_setter_cnt i32)
22642268
local.get $this
22652269
local.get $_setter_cnt
22662270
i32.store
22672271
)
2268-
(func $assignment-chain/B#set:_getter_cnt (param $this i32) (param $_getter_cnt i32)
2269-
local.get $this
2270-
local.get $_getter_cnt
2271-
i32.store offset=4
2272-
)
22732272
(func $assignment-chain/B#set:_y (param $this i32) (param $_y f64)
22742273
local.get $this
22752274
local.get $_y
22762275
f64.store offset=8
22772276
)
2278-
(func $assignment-chain/B#get:_setter_cnt (param $this i32) (result i32)
2279-
local.get $this
2280-
i32.load
2281-
)
22822277
(func $assignment-chain/B#get:_getter_cnt (param $this i32) (result i32)
22832278
local.get $this
22842279
i32.load offset=4
@@ -2434,22 +2429,6 @@
24342429
local.get $this
24352430
local.set $1
24362431
global.get $~lib/memory/__stack_pointer
2437-
local.get $1
2438-
i32.store offset=4
2439-
local.get $1
2440-
i64.const 0
2441-
call $assignment-chain/A#set:x
2442-
local.get $this
2443-
local.set $1
2444-
global.get $~lib/memory/__stack_pointer
2445-
local.get $1
2446-
i32.store offset=4
2447-
local.get $1
2448-
i64.const 0
2449-
call $assignment-chain/A#set:y
2450-
local.get $this
2451-
local.set $1
2452-
global.get $~lib/memory/__stack_pointer
24532432
i32.const 8
24542433
i32.add
24552434
global.set $~lib/memory/__stack_pointer
@@ -2552,30 +2531,6 @@
25522531
local.get $this
25532532
local.set $1
25542533
global.get $~lib/memory/__stack_pointer
2555-
local.get $1
2556-
i32.store offset=4
2557-
local.get $1
2558-
i32.const 0
2559-
call $assignment-chain/B#set:_setter_cnt
2560-
local.get $this
2561-
local.set $1
2562-
global.get $~lib/memory/__stack_pointer
2563-
local.get $1
2564-
i32.store offset=4
2565-
local.get $1
2566-
i32.const 0
2567-
call $assignment-chain/B#set:_getter_cnt
2568-
local.get $this
2569-
local.set $1
2570-
global.get $~lib/memory/__stack_pointer
2571-
local.get $1
2572-
i32.store offset=4
2573-
local.get $1
2574-
f64.const 0
2575-
call $assignment-chain/B#set:_y
2576-
local.get $this
2577-
local.set $1
2578-
global.get $~lib/memory/__stack_pointer
25792534
i32.const 8
25802535
i32.add
25812536
global.set $~lib/memory/__stack_pointer

tests/compiler/assignment-chain.release.wat

Lines changed: 2 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@
122122
local.get $0
123123
global.set $~lib/rt/itcms/iter
124124
end
125-
block $__inlined_func$~lib/rt/itcms/Object#unlink$129
125+
block $__inlined_func$~lib/rt/itcms/Object#unlink$124
126126
local.get $1
127127
i32.load offset=4
128128
i32.const -4
@@ -146,7 +146,7 @@
146146
call $~lib/builtins/abort
147147
unreachable
148148
end
149-
br $__inlined_func$~lib/rt/itcms/Object#unlink$129
149+
br $__inlined_func$~lib/rt/itcms/Object#unlink$124
150150
end
151151
local.get $1
152152
i32.load offset=8
@@ -1661,18 +1661,6 @@
16611661
local.tee $1
16621662
i32.store
16631663
global.get $~lib/memory/__stack_pointer
1664-
local.get $1
1665-
i32.store offset=4
1666-
local.get $1
1667-
i64.const 0
1668-
i64.store
1669-
global.get $~lib/memory/__stack_pointer
1670-
local.get $1
1671-
i32.store offset=4
1672-
local.get $1
1673-
i64.const 0
1674-
i64.store offset=8
1675-
global.get $~lib/memory/__stack_pointer
16761664
i32.const 8
16771665
i32.add
16781666
global.set $~lib/memory/__stack_pointer
@@ -1790,24 +1778,6 @@
17901778
local.tee $1
17911779
i32.store
17921780
global.get $~lib/memory/__stack_pointer
1793-
local.get $1
1794-
i32.store offset=4
1795-
local.get $1
1796-
i32.const 0
1797-
i32.store
1798-
global.get $~lib/memory/__stack_pointer
1799-
local.get $1
1800-
i32.store offset=4
1801-
local.get $1
1802-
i32.const 0
1803-
i32.store offset=4
1804-
global.get $~lib/memory/__stack_pointer
1805-
local.get $1
1806-
i32.store offset=4
1807-
local.get $1
1808-
f64.const 0
1809-
f64.store offset=8
1810-
global.get $~lib/memory/__stack_pointer
18111781
i32.const 8
18121782
i32.add
18131783
global.set $~lib/memory/__stack_pointer

0 commit comments

Comments
 (0)