MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / addCurrentBlock

Function addCurrentBlock

crates/explorer/src/index.js:269–280  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

267 let lastOffset = null;
268
269 const addCurrentBlock = offset => {
270 currentBlock.dataset.wasmOffset = offset;
271
272 if (offset !== null) {
273 adjustColorForOffset(currentBlock, offset);
274 linkElements(currentBlock);
275 }
276
277 currentBlock.innerText = disasmBuffer.join("\n");
278 funcElem.appendChild(currentBlock);
279 disasmBuffer = [];
280 };
281
282 for (const inst of func.instructions) {
283 if (lastOffset !== inst.wasm_offset) {

Callers 1

index.jsFile · 0.85

Calls 3

adjustColorForOffsetFunction · 0.85
linkElementsFunction · 0.85
joinMethod · 0.45

Tested by

no test coverage detected