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

Method OnLoad

src/shared-validator.cc:998–1010  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

996}
997
998Result SharedValidator::OnLoad(const Location& loc,
999 Opcode opcode,
1000 Var memidx,
1001 Address alignment,
1002 Address offset) {
1003 Result result = CheckInstr(opcode, loc);
1004 MemoryType mt;
1005 result |= CheckMemoryIndex(memidx, &mt);
1006 result |= CheckAlign(loc, alignment, opcode.GetMemorySize());
1007 result |= CheckOffset(loc, offset, mt.limits);
1008 result |= typechecker_.OnLoad(opcode, mt.limits);
1009 return result;
1010}
1011
1012Result SharedValidator::OnLoadSplat(const Location& loc,
1013 Opcode opcode,

Callers 2

OnLoadSplatMethod · 0.45
OnLoadZeroMethod · 0.45

Calls 1

GetMemorySizeMethod · 0.80

Tested by

no test coverage detected