Skip to content

Commit

Permalink
jsc/wasm32/wasm32.jsc: drop fill_table call
Browse files Browse the repository at this point in the history
  • Loading branch information
pipcet committed Feb 13, 2021
1 parent 610d571 commit f6f3862
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions jsc/wasm32/wasm32.jsc
Original file line number Diff line number Diff line change
Expand Up @@ -826,25 +826,6 @@ Wasm32Module.prototype.reload_at = function (thread, vm, clonedesc)
});
};

Wasm32Module.prototype.fill_table = function (thread, vm, got, plt)
{
var pc = 0;
var seen = 0;
var count = 0;
do {
var str = pc.toString(16);
while (str.length < 16)
str = str + " ";
var f = thread.exports["f_" + str];
if (f) {
vm.tableset(pc+plt, f);
seen++;
} else if (seen || count++ == 128) {
break;
}
pc++;
} while (true);
};
let last_tom = 16384;

Wasm32Module.prototype.check_libs = function (thread)
Expand Down Expand Up @@ -963,7 +944,6 @@ Wasm32Module.prototype.instantiate = function (thread, vm, mem, recurse)
if (this.instance.exports.entry !== undefined) {
thread.entry = this.imports.sys.plt + this.instance.exports.entry;
}
this.fill_table(thread, vm, this.imports.sys.got, this.imports.sys.plt);
this.vm.base_lm.dyninfo_apply(this.dyninfo, this.imports, this);
lastdonetime = this.donetime = Date.now();

Expand Down

0 comments on commit f6f3862

Please sign in to comment.