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

Method OnAtomicWait

src/shared-validator.cc:755–767  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

753}
754
755Result SharedValidator::OnAtomicWait(const Location& loc,
756 Opcode opcode,
757 Var memidx,
758 Address alignment,
759 Address offset) {
760 Result result = CheckInstr(opcode, loc);
761 MemoryType mt;
762 result |= CheckMemoryIndex(memidx, &mt);
763 result |= CheckAtomicAlign(loc, alignment, opcode.GetMemorySize());
764 result |= CheckOffset(loc, offset, mt.limits);
765 result |= typechecker_.OnAtomicWait(opcode, mt.limits);
766 return result;
767}
768
769Result SharedValidator::OnBinary(const Location& loc, Opcode opcode) {
770 Result result = CheckInstr(opcode, loc);

Callers

nothing calls this directly

Calls 1

GetMemorySizeMethod · 0.80

Tested by

no test coverage detected