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

Method OnAtomicLoad

src/shared-validator.cc:685–697  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

683}
684
685Result SharedValidator::OnAtomicLoad(const Location& loc,
686 Opcode opcode,
687 Var memidx,
688 Address alignment,
689 Address offset) {
690 Result result = CheckInstr(opcode, loc);
691 MemoryType mt;
692 result |= CheckMemoryIndex(memidx, &mt);
693 result |= CheckAtomicAlign(loc, alignment, opcode.GetMemorySize());
694 result |= CheckOffset(loc, offset, mt.limits);
695 result |= typechecker_.OnAtomicLoad(opcode, mt.limits);
696 return result;
697}
698
699Result SharedValidator::OnAtomicNotify(const Location& loc,
700 Opcode opcode,

Callers

nothing calls this directly

Calls 1

GetMemorySizeMethod · 0.80

Tested by

no test coverage detected