MCPcopy Create free account
hub / github.com/WebAssembly/wabt / OnStore

Method OnStore

src/shared-validator.cc:1324–1336  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1322}
1323
1324Result SharedValidator::OnStore(const Location& loc,
1325 Opcode opcode,
1326 Var memidx,
1327 Address alignment,
1328 Address offset) {
1329 Result result = CheckInstr(opcode, loc);
1330 MemoryType mt;
1331 result |= CheckMemoryIndex(memidx, &mt);
1332 result |= CheckAlign(loc, alignment, opcode.GetMemorySize());
1333 result |= CheckOffset(loc, offset, mt.limits);
1334 result |= typechecker_.OnStore(opcode, mt.limits);
1335 return result;
1336}
1337
1338Result SharedValidator::OnTableCopy(const Location& loc,
1339 Var dst_var,

Callers

nothing calls this directly

Calls 1

GetMemorySizeMethod · 0.80

Tested by

no test coverage detected