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

Method OnAtomicNotify

src/shared-validator.cc:699–711  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

697}
698
699Result SharedValidator::OnAtomicNotify(const Location& loc,
700 Opcode opcode,
701 Var memidx,
702 Address alignment,
703 Address offset) {
704 Result result = CheckInstr(opcode, loc);
705 MemoryType mt;
706 result |= CheckMemoryIndex(memidx, &mt);
707 result |= CheckAtomicAlign(loc, alignment, opcode.GetMemorySize());
708 result |= CheckOffset(loc, offset, mt.limits);
709 result |= typechecker_.OnAtomicNotify(opcode, mt.limits);
710 return result;
711}
712
713Result SharedValidator::OnAtomicRmwCmpxchg(const Location& loc,
714 Opcode opcode,

Callers

nothing calls this directly

Calls 1

GetMemorySizeMethod · 0.80

Tested by

no test coverage detected