MCPcopy Index your code
hub / github.com/nodejs/node / testCompileLoadStore

Function testCompileLoadStore

deps/v8/test/mjsunit/wasm/liftoff-trap-handler.js:12–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10d8.file.execute("test/mjsunit/wasm/wasm-module-builder.js");
11
12function testCompileLoadStore() {
13 const builder = new WasmModuleBuilder();
14 // These functions generate statically out of bounds accesses.
15 builder.addFunction("load", kSig_i_i)
16 .addBody([kExprLocalGet, 0, kExprI32LoadMem, 0, 0x80, 0x80, 0x80, 1])
17 .exportFunc();
18 builder.addFunction("store", kSig_i_ii)
19 .addBody([kExprLocalGet, 0,
20 kExprLocalGet, 1,
21 kExprI32StoreMem, 0, 0x80, 0x80, 0x80, 1,
22 kExprLocalGet, 1])
23 .exportFunc();
24 builder.addMemory(1, 1);
25 const instance = builder.instantiate();
26}
27testCompileLoadStore();

Callers 1

Calls 5

addFunctionMethod · 0.95
addMemoryMethod · 0.95
instantiateMethod · 0.95
exportFuncMethod · 0.45
addBodyMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…