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 33f5a4be06 - Show all commits

4
asm.js
View File

@@ -752,8 +752,8 @@ export class Assembler {
lookup_local(func, symbol) { lookup_local(func, symbol) {
const param_count = Object.entries(func.params).length; const param_count = Object.entries(func.params).length;
const index = param_count + Object.keys(func.locals).indexOf(symbol); const index = Object.keys(func.locals).indexOf(symbol);
return index == -1 ? null : index; return index == -1 ? null : param_count + index;
} }
lookup_global(symbol) { lookup_global(symbol) {