Assemble kernel on the client #1

Merged
cdo merged 72 commits from client-side-assembler into main 2026-03-18 15:21:33 +00:00
Showing only changes of commit 7135eeba74 - Show all commits

12
asm.js
View File

@@ -1156,13 +1156,15 @@ export class Assembler {
uleb128(x) { uleb128(x) {
const bytes = []; const bytes = [];
do { while (true) {
const b = x & 0x7f; const b = x & 0x7f;
x >>= 7; x >>= 7;
if (x != 0) if (x == 0) {
b |= 0x80; bytes.push(b);
bytes.push(b); return bytes;
} while (x != 0); }
bytes.push(b | 0x80);
}
return bytes; return bytes;
} }