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

Method OnLoadZero

src/shared-validator.cc:1026–1038  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1024}
1025
1026Result SharedValidator::OnLoadZero(const Location& loc,
1027 Opcode opcode,
1028 Var memidx,
1029 Address alignment,
1030 Address offset) {
1031 Result result = CheckInstr(opcode, loc);
1032 MemoryType mt;
1033 result |= CheckMemoryIndex(memidx, &mt);
1034 result |= CheckAlign(loc, alignment, opcode.GetMemorySize());
1035 result |= CheckOffset(loc, offset, mt.limits);
1036 result |= typechecker_.OnLoad(opcode, mt.limits);
1037 return result;
1038}
1039
1040Result SharedValidator::OnLocalGet(const Location& loc, Var local_var) {
1041 CHECK_RESULT(CheckInstr(Opcode::LocalGet, loc));

Callers 2

OnLoadZeroExprMethod · 0.80
OnLoadZeroExprMethod · 0.80

Calls 2

GetMemorySizeMethod · 0.80
OnLoadMethod · 0.45

Tested by

no test coverage detected