()
| 10 | d8.file.execute("test/mjsunit/wasm/wasm-module-builder.js"); |
| 11 | |
| 12 | function 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 | } |
| 27 | testCompileLoadStore(); |
no test coverage detected
searching dependent graphs…