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

Method GetLocalCount

src/shared-validator.cc:590–592  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

588}
589
590Index SharedValidator::GetLocalCount() const {
591 return locals_.empty() ? 0 : locals_.back().end;
592}
593
594static bool is_power_of_two(uint32_t x) {
595 return x && ((x & (x - 1)) == 0);

Callers 3

TranslateLocalIndexMethod · 0.80

Calls 2

backMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected