(builder)
| 134 | |
| 135 | (function TestImportExportedMutableGlobalI64() { |
| 136 | function addGettersAndSetters(builder) { |
| 137 | const index = 0; |
| 138 | builder.addFunction('geti64_hi', makeSig([], [kWasmI32])) |
| 139 | .addBody([ |
| 140 | kExprGlobalGet, index, |
| 141 | kExprI64Const, 32, kExprI64ShrU, |
| 142 | kExprI32ConvertI64]) |
| 143 | .exportFunc(); |
| 144 | builder.addFunction('geti64_lo', makeSig([], [kWasmI32])) |
| 145 | .addBody([kExprGlobalGet, index, kExprI32ConvertI64]) |
| 146 | .exportFunc(); |
| 147 | builder.addFunction("seti64", makeSig([kWasmI32, kWasmI32], [])) |
| 148 | .addBody([ |
| 149 | kExprLocalGet, 1, kExprI64UConvertI32, |
| 150 | kExprLocalGet, 0, kExprI64UConvertI32, |
| 151 | kExprI64Const, 32, kExprI64Shl, |
| 152 | kExprI64Ior, |
| 153 | kExprGlobalSet, index]) |
| 154 | .exportFunc(); |
| 155 | }; |
| 156 | |
| 157 | let builder = new WasmModuleBuilder(); |
| 158 | builder.addGlobal(kWasmI64, true, false).exportAs('i64'); |
no test coverage detected