Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
HerrCai0907 committed Nov 3, 2024
1 parent 3acb084 commit abf4ac9
Show file tree
Hide file tree
Showing 178 changed files with 7,361 additions and 7,256 deletions.
4 changes: 2 additions & 2 deletions std/assembly/map.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ export class Map<K, V> {
}
// append new entry
let entries = this.entries;
this.entriesOffset++;
entry = changetype<MapEntry<K, V>>(changetype<usize>(entries) + <usize>this.entriesOffset * ENTRY_SIZE<K, V>());
let oldEntriesOffset = this.entriesOffset++;
entry = changetype<MapEntry<K, V>>(changetype<usize>(entries) + <usize>oldEntriesOffset * ENTRY_SIZE<K, V>());
// link with the map
entry.key = key;
if (isManaged<K>()) {
Expand Down
4 changes: 2 additions & 2 deletions std/assembly/set.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ export class Set<T> {
);
}
// append new entry
this.entriesOffset++;
entry = changetype<SetEntry<T>>(changetype<usize>(this.entries) + <usize>this.entriesOffset * ENTRY_SIZE<T>());
let oldEntriesOffset = this.entriesOffset++;
entry = changetype<SetEntry<T>>(changetype<usize>(this.entries) + <usize>oldEntriesOffset * ENTRY_SIZE<T>());
entry.key = key;
if (isManaged<T>()) {
__link(changetype<usize>(this), changetype<usize>(key), true);
Expand Down
6 changes: 3 additions & 3 deletions tests/compiler/assert-nonnull.debug.wat
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@
if
i32.const 224
i32.const 288
i32.const 114
i32.const 118
i32.const 42
call $~lib/builtins/abort
unreachable
Expand Down Expand Up @@ -203,7 +203,7 @@
if
i32.const 336
i32.const 288
i32.const 118
i32.const 122
i32.const 40
call $~lib/builtins/abort
unreachable
Expand Down Expand Up @@ -281,7 +281,7 @@
if
i32.const 224
i32.const 288
i32.const 114
i32.const 118
i32.const 42
call $~lib/builtins/abort
unreachable
Expand Down
6 changes: 3 additions & 3 deletions tests/compiler/assert-nonnull.release.wat
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
if
i32.const 1248
i32.const 1312
i32.const 114
i32.const 118
i32.const 42
call $~lib/builtins/abort
unreachable
Expand Down Expand Up @@ -313,7 +313,7 @@
if
i32.const 1248
i32.const 1312
i32.const 114
i32.const 118
i32.const 42
call $~lib/builtins/abort
unreachable
Expand All @@ -332,7 +332,7 @@
if
i32.const 1360
i32.const 1312
i32.const 118
i32.const 122
i32.const 40
call $~lib/builtins/abort
unreachable
Expand Down
42 changes: 21 additions & 21 deletions tests/compiler/assignment-chain.debug.wat
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@
if
i32.const 0
i32.const 368
i32.const 268
i32.const 246
i32.const 14
call $~lib/builtins/abort
unreachable
Expand All @@ -473,7 +473,7 @@
if
i32.const 0
i32.const 368
i32.const 270
i32.const 248
i32.const 14
call $~lib/builtins/abort
unreachable
Expand Down Expand Up @@ -536,7 +536,7 @@
if
i32.const 0
i32.const 368
i32.const 284
i32.const 262
i32.const 14
call $~lib/builtins/abort
unreachable
Expand Down Expand Up @@ -689,7 +689,7 @@
if
i32.const 0
i32.const 368
i32.const 201
i32.const 179
i32.const 14
call $~lib/builtins/abort
unreachable
Expand All @@ -706,7 +706,7 @@
if
i32.const 0
i32.const 368
i32.const 203
i32.const 181
i32.const 14
call $~lib/builtins/abort
unreachable
Expand Down Expand Up @@ -795,7 +795,7 @@
if
i32.const 0
i32.const 368
i32.const 221
i32.const 199
i32.const 16
call $~lib/builtins/abort
unreachable
Expand Down Expand Up @@ -838,7 +838,7 @@
if
i32.const 0
i32.const 368
i32.const 233
i32.const 211
i32.const 14
call $~lib/builtins/abort
unreachable
Expand All @@ -856,7 +856,7 @@
if
i32.const 0
i32.const 368
i32.const 234
i32.const 212
i32.const 14
call $~lib/builtins/abort
unreachable
Expand Down Expand Up @@ -924,7 +924,7 @@
if
i32.const 0
i32.const 368
i32.const 251
i32.const 229
i32.const 14
call $~lib/builtins/abort
unreachable
Expand Down Expand Up @@ -1041,7 +1041,7 @@
if
i32.const 0
i32.const 368
i32.const 382
i32.const 358
i32.const 14
call $~lib/builtins/abort
unreachable
Expand Down Expand Up @@ -1087,7 +1087,7 @@
if
i32.const 0
i32.const 368
i32.const 389
i32.const 366
i32.const 16
call $~lib/builtins/abort
unreachable
Expand Down Expand Up @@ -1119,7 +1119,7 @@
if
i32.const 0
i32.const 368
i32.const 402
i32.const 379
i32.const 5
call $~lib/builtins/abort
unreachable
Expand Down Expand Up @@ -1363,7 +1363,7 @@
if
i32.const 0
i32.const 368
i32.const 562
i32.const 537
i32.const 3
call $~lib/builtins/abort
unreachable
Expand Down Expand Up @@ -1583,7 +1583,7 @@
if
i32.const 0
i32.const 96
i32.const 229
i32.const 230
i32.const 20
call $~lib/builtins/abort
unreachable
Expand Down Expand Up @@ -1692,7 +1692,7 @@
if
i32.const 32
i32.const 368
i32.const 461
i32.const 436
i32.const 29
call $~lib/builtins/abort
unreachable
Expand Down Expand Up @@ -1794,7 +1794,7 @@
if
i32.const 0
i32.const 368
i32.const 334
i32.const 310
i32.const 14
call $~lib/builtins/abort
unreachable
Expand Down Expand Up @@ -1865,7 +1865,7 @@
if
i32.const 0
i32.const 368
i32.const 347
i32.const 323
i32.const 18
call $~lib/builtins/abort
unreachable
Expand Down Expand Up @@ -2022,7 +2022,7 @@
if
i32.const 0
i32.const 368
i32.const 361
i32.const 337
i32.const 14
call $~lib/builtins/abort
unreachable
Expand Down Expand Up @@ -2137,7 +2137,7 @@
if
i32.const 0
i32.const 368
i32.const 499
i32.const 474
i32.const 16
call $~lib/builtins/abort
unreachable
Expand All @@ -2157,7 +2157,7 @@
if
i32.const 0
i32.const 368
i32.const 501
i32.const 476
i32.const 14
call $~lib/builtins/abort
unreachable
Expand Down Expand Up @@ -2206,7 +2206,7 @@
if
i32.const 32
i32.const 96
i32.const 261
i32.const 262
i32.const 31
call $~lib/builtins/abort
unreachable
Expand Down
Loading

0 comments on commit abf4ac9

Please sign in to comment.