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

Method OnAtomicStore

src/shared-validator.cc:741–753  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

739}
740
741Result SharedValidator::OnAtomicStore(const Location& loc,
742 Opcode opcode,
743 Var memidx,
744 Address alignment,
745 Address offset) {
746 Result result = CheckInstr(opcode, loc);
747 MemoryType mt;
748 result |= CheckMemoryIndex(memidx, &mt);
749 result |= CheckAtomicAlign(loc, alignment, opcode.GetMemorySize());
750 result |= CheckOffset(loc, offset, mt.limits);
751 result |= typechecker_.OnAtomicStore(opcode, mt.limits);
752 return result;
753}
754
755Result SharedValidator::OnAtomicWait(const Location& loc,
756 Opcode opcode,

Callers

nothing calls this directly

Calls 1

GetMemorySizeMethod · 0.80

Tested by

no test coverage detected