File tree 2 files changed +14
-14
lines changed
2 files changed +14
-14
lines changed Original file line number Diff line number Diff line change 3
3
;;
4
4
;; linear memory usage:
5
5
;; 0: wait
6
- ;; 100 : poll_oneoff subscription
7
- ;; 200 : poll_oneoff event
8
- ;; 300 : poll_oneoff return value
6
+ ;; 0x100 : poll_oneoff subscription
7
+ ;; 0x200 : poll_oneoff event
8
+ ;; 0x300 : poll_oneoff return value
9
9
10
10
(module
11
11
(memory (export " memory" ) (import " foo" " bar" ) 1 1 shared)
15
15
(func (export " wasi_thread_start" ) (param i32 i32 )
16
16
;; long enough block
17
17
;; clock_realtime, !abstime (zeros)
18
- i32.const 124 ;; 100 + offsetof(subscription, timeout)
18
+ i32.const 0x118 ;; 0x100 + offsetof(subscription, timeout)
19
19
i64.const 1_000_000_000 ;; 1s
20
20
i64.store
21
- i32.const 100 ;; subscription
22
- i32.const 200 ;; event (out)
21
+ i32.const 0x100 ;; subscription
22
+ i32.const 0x200 ;; event (out)
23
23
i32.const 1 ;; nsubscriptions
24
- i32.const 300 ;; retp (out)
24
+ i32.const 0x300 ;; retp (out)
25
25
call $poll_oneoff
26
26
unreachable
27
27
)
Original file line number Diff line number Diff line change 3
3
;;
4
4
;; linear memory usage:
5
5
;; 0: wait
6
- ;; 100 : poll_oneoff subscription
7
- ;; 200 : poll_oneoff event
8
- ;; 300 : poll_oneoff return value
6
+ ;; 0x100 : poll_oneoff subscription
7
+ ;; 0x200 : poll_oneoff event
8
+ ;; 0x300 : poll_oneoff return value
9
9
10
10
(module
11
11
(memory (export " memory" ) (import " foo" " bar" ) 1 1 shared)
41
41
end
42
42
;; long enough block
43
43
;; clock_realtime, !abstime (zeros)
44
- i32.const 124 ;; 100 + offsetof(subscription, timeout)
44
+ i32.const 0x118 ;; 0x100 + offsetof(subscription, timeout)
45
45
i64.const 1_000_000_000 ;; 1s
46
46
i64.store
47
- i32.const 100 ;; subscription
48
- i32.const 200 ;; event (out)
47
+ i32.const 0x100 ;; subscription
48
+ i32.const 0x200 ;; event (out)
49
49
i32.const 1 ;; nsubscriptions
50
- i32.const 300 ;; retp (out)
50
+ i32.const 0x300 ;; retp (out)
51
51
call $poll_oneoff
52
52
unreachable
53
53
)
You can’t perform that action at this time.
0 commit comments