-
-
Notifications
You must be signed in to change notification settings - Fork 675
Commit 4465767
committed
BREAKING CHANGE: Do not allocate buffers for memory.data(i32, i32?)
MemorySegments can now hold null buffers, which signifies that memory is
in fact used in the compiled program, for programs that only reserve
zero-filled memories. Using null buffers avoids passing zero-filled
buffers to Binaryen, which isn't necessary since Wasm memories are
initialized with zeroes when a (data ...) segment isn't present.
This change is breaking in that modules using imported memories that
contain non-zero values in such memory ranges at the time of
instantiation will retain those values, as opposed to being filled.
This shouldn't affect most users, however.
Fixes #2827.1 parent de174c5 commit 4465767
File tree
160 files changed
+6372
-6608
lines changed- src
- tests/compiler
- bindings
- issues
- 2322
- rt
- std
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
160 files changed
+6372
-6608
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3322 | 3322 |
| |
3323 | 3323 |
| |
3324 | 3324 |
| |
3325 | - | ||
3325 | + | ||
3326 | 3326 |
| |
3327 | 3327 |
| |
3328 | 3328 |
| |
|
Lines changed: 13 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1894 | 1894 |
| |
1895 | 1895 |
| |
1896 | 1896 |
| |
1897 | + | ||
1898 | + | ||
1899 | + | ||
1900 | + | ||
1901 | + | ||
1902 | + | ||
1903 | + | ||
1904 | + | ||
1905 | + | ||
1906 | + | ||
1897 | 1907 |
| |
1898 | 1908 |
| |
1899 | 1909 |
| |
| |||
2043 | 2053 |
| |
2044 | 2054 |
| |
2045 | 2055 |
| |
2046 | - | ||
2056 | + | ||
2047 | 2057 |
| |
2048 | 2058 |
| |
2049 | 2059 |
| |
| |||
8060 | 8070 |
| |
8061 | 8071 |
| |
8062 | 8072 |
| |
8063 | - | ||
8073 | + | ||
8064 | 8074 |
| |
8065 | 8075 |
| |
8066 | 8076 |
| |
| |||
8151 | 8161 |
| |
8152 | 8162 |
| |
8153 | 8163 |
| |
8154 | - | ||
8164 | + | ||
8155 | 8165 |
| |
8156 | 8166 |
| |
8157 | 8167 |
| |
|
Lines changed: 18 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1366 | 1366 |
| |
1367 | 1367 |
| |
1368 | 1368 |
| |
1369 | - | ||
1369 | + | ||
1370 | 1370 |
| |
1371 | 1371 |
| |
1372 | 1372 |
| |
| |||
2409 | 2409 |
| |
2410 | 2410 |
| |
2411 | 2411 |
| |
2412 | - | ||
2412 | + | ||
2413 | + | ||
2414 | + | ||
2413 | 2415 |
| |
2414 | - | ||
2415 | - | ||
2416 | - | ||
2416 | + | ||
2417 | + | ||
2418 | + | ||
2417 | 2419 |
| |
2418 | 2420 |
| |
2421 | + | ||
2422 | + | ||
2423 | + | ||
2424 | + | ||
2425 | + | ||
2419 | 2426 |
| |
2420 | - | ||
2421 | - | ||
2422 | - | ||
2427 | + | ||
2428 | + | ||
2429 | + | ||
2423 | 2430 |
| |
2424 | 2431 |
| |
2425 | 2432 |
| |
2426 | - | ||
2433 | + | ||
2427 | 2434 |
| |
2435 | + | ||
2436 | + | ||
2428 | 2437 |
| |
2429 | 2438 |
| |
2430 | 2439 |
| |
|
Lines changed: 5 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
35 | 35 |
| |
36 | 36 |
| |
37 | 37 |
| |
38 | - | ||
39 | - | ||
40 | - | ||
41 | - | ||
42 | - | ||
43 | - | ||
44 | - | ||
45 | - | ||
38 | + | ||
39 | + | ||
40 | + | ||
41 | + | ||
42 | + | ||
46 | 43 |
| |
47 | 44 |
| |
48 | 45 |
| |
|
Lines changed: 9 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
25 | 25 |
| |
26 | 26 |
| |
27 | 27 |
| |
28 | - | ||
29 | - | ||
30 | - | ||
31 | - | ||
32 | - | ||
33 | - | ||
34 | - | ||
35 | - | ||
36 | - | ||
28 | + | ||
29 | + | ||
30 | + | ||
31 | + | ||
32 | + | ||
33 | + | ||
34 | + | ||
35 | + | ||
36 | + | ||
37 | 37 |
| |
38 | 38 |
| |
39 | 39 |
| |
|
Lines changed: 11 additions & 14 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
70 | 70 |
| |
71 | 71 |
| |
72 | 72 |
| |
73 | - | ||
74 | - | ||
75 | - | ||
76 | - | ||
77 | - | ||
78 | - | ||
79 | - | ||
80 | - | ||
81 | - | ||
82 | - | ||
83 | - | ||
84 | - | ||
85 | - | ||
86 | - | ||
73 | + | ||
74 | + | ||
75 | + | ||
76 | + | ||
77 | + | ||
78 | + | ||
79 | + | ||
80 | + | ||
81 | + | ||
82 | + | ||
83 | + | ||
87 | 84 |
| |
88 | 85 |
| |
89 | 86 |
| |
|
Lines changed: 22 additions & 22 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
62 | 62 |
| |
63 | 63 |
| |
64 | 64 |
| |
65 | - | ||
66 | - | ||
67 | - | ||
68 | - | ||
69 | - | ||
70 | - | ||
71 | - | ||
72 | - | ||
73 | - | ||
74 | - | ||
75 | - | ||
76 | - | ||
77 | - | ||
78 | - | ||
79 | - | ||
80 | - | ||
81 | - | ||
82 | - | ||
83 | - | ||
84 | - | ||
85 | - | ||
86 | - | ||
65 | + | ||
66 | + | ||
67 | + | ||
68 | + | ||
69 | + | ||
70 | + | ||
71 | + | ||
72 | + | ||
73 | + | ||
74 | + | ||
75 | + | ||
76 | + | ||
77 | + | ||
78 | + | ||
79 | + | ||
80 | + | ||
81 | + | ||
82 | + | ||
83 | + | ||
84 | + | ||
85 | + | ||
86 | + | ||
87 | 87 |
| |
88 | 88 |
| |
89 | 89 |
| |
|
0 commit comments