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

Method GetLocalType

src/interp/interp.cc:303–314  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

301//// FuncDesc ////
302
303ValueType FuncDesc::GetLocalType(Index index) const {
304 if (index < type.params.size()) {
305 return type.params[index];
306 }
307 index -= type.params.size();
308
309 auto iter = std::lower_bound(
310 locals.begin(), locals.end(), index + 1,
311 [](const LocalDesc& lhs, Index rhs) { return lhs.end < rhs; });
312 assert(iter != locals.end());
313 return iter->type;
314}
315
316//// Store ////
317Store::Store(const Features& features) : features_(features) {

Callers 2

EndLocalDeclsMethod · 0.45
OnLocalGetExprMethod · 0.45

Calls 6

backMethod · 0.80
descMethod · 0.80
sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
typeMethod · 0.45

Tested by

no test coverage detected