MCPcopy Create free account
hub / github.com/WasmEdge/WasmEdge / addLocal

Method addLocal

lib/validator/formchecker.cpp:134–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132void FormChecker::addRef(const uint32_t FuncIdx) { Refs.emplace(FuncIdx); }
133
134void FormChecker::addLocal(const ValType &V, bool Initialized) {
135 Locals.emplace_back(V);
136 if (Initialized || V.isDefaultable()) {
137 LocalInits.push_back(static_cast<uint32_t>(Locals.size() - 1));
138 Locals.back().IsInit = true;
139 }
140}
141
142void FormChecker::addTag(const uint32_t TypeIdx) { Tags.push_back(TypeIdx); }
143

Callers 1

validateMethod · 0.80

Calls 3

isDefaultableMethod · 0.80
backMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected