| Server IP : 46.62.235.243 / Your IP : 216.73.216.163 Web Server : Apache/2.4.58 (Ubuntu) System : Linux Linkabili3Dicembre 6.8.0-100-generic #100-Ubuntu SMP PREEMPT_DYNAMIC Tue Jan 13 16:40:06 UTC 2026 x86_64 User : www-data ( 33) PHP Version : 8.1.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /proc/thread-self/root/usr/share/node_modules/@webassemblyjs/helper-compiler/esm/ |
Upload File : |
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
import { kStart } from "./index";
function printInstruction(instruction) {
var out = "";
if (typeof instruction.type === "string") {
// $FlowIgnore
if (instruction.type === "InternalEndAndReturn") {
out += "_end_and_return";
} // $FlowIgnore
if (instruction.type === "InternalBrUnless") {
out += "_br_unless";
out += " " + instruction.target;
} // $FlowIgnore
if (instruction.type === "InternalGoto") {
out += "_goto";
out += " " + instruction.target;
} // $FlowIgnore
if (instruction.type === "InternalCallExtern") {
out += "_extern_call";
out += " " + instruction.target;
}
}
if (typeof instruction.object === "string") {
out += instruction.object;
out += ".";
}
if (typeof instruction.id === "string") {
out += instruction.id;
}
if (instruction.args !== undefined) {
// $FlowIgnore
instruction.args.forEach(function (arg) {
out += " "; // $FlowIgnore
out += arg.value;
});
}
if (_typeof(instruction.index) === "object") {
// $FlowIgnore
out += " @" + String(instruction.index.value);
}
return out;
}
export function dumpIR(ir) {
var out = "";
out += "Func table:\n";
ir.funcTable.forEach(function (func) {
if (func.name === kStart) {
out += "__start" + " at " + func.startAt + "\n";
return;
}
out += func.name + " at " + func.startAt + "\n";
});
out += "\n";
for (var offset in ir.program) {
out += offset + " | ";
out += printInstruction(ir.program[parseInt(offset)]);
out += "\n";
}
return out;
}