| 683 | } |
| 684 | |
| 685 | Result 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 | |
| 699 | Result SharedValidator::OnAtomicNotify(const Location& loc, |
| 700 | Opcode opcode, |
nothing calls this directly
no test coverage detected