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

Method GetLocalIndex

src/ir.cc:250–255  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

248}
249
250Index Func::GetLocalIndex(const Var& var) const {
251 if (var.is_index()) {
252 return var.index();
253 }
254 return bindings.FindIndex(var);
255}
256
257const Func* Module::GetFunc(const Var& var) const {
258 return const_cast<Module*>(this)->GetFunc(var);

Callers 2

ResolveLocalVarMethod · 0.45

Calls 3

is_indexMethod · 0.80
indexMethod · 0.80
FindIndexMethod · 0.45

Tested by

no test coverage detected