Assemble kernel on the client #1
13
asm.js
13
asm.js
@@ -750,12 +750,17 @@ export class Assembler {
|
|||||||
?? this.lookup_param(func, action.symbol)
|
?? this.lookup_param(func, action.symbol)
|
||||||
?? this.lookup_local(func, action.symbol)
|
?? this.lookup_local(func, action.symbol)
|
||||||
?? this.lookup_global(action.symbol)
|
?? this.lookup_global(action.symbol)
|
||||||
?? this.lookup_def(action.symbol);
|
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
console.error(
|
const def_value = this.lookup_def(action.symbol);
|
||||||
`ERROR: Unable to resolve symbol ${action.symbol}`);
|
if (def_value == null) {
|
||||||
|
console.error(
|
||||||
|
`ERROR: Unable to resolve symbol ${action.symbol}`);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
func.body.push(...this.leb128(def_value));
|
||||||
|
} else {
|
||||||
|
func.body.push(value);
|
||||||
}
|
}
|
||||||
func.body.push(value);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
action_mem(action) {
|
action_mem(action) {
|
||||||
|
|||||||
Reference in New Issue
Block a user