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

Method OnFunction

src/interp/binary-reader-interp.cc:625–632  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

623}
624
625Result BinaryReaderInterp::OnFunction(Index index, Index sig_index) {
626 CHECK_RESULT(
627 validator_.OnFunction(GetLocation(), Var(sig_index, GetLocation())));
628 FuncType& func_type = module_.func_types[sig_index];
629 module_.funcs.push_back(FuncDesc{func_type, {}, Istream::kInvalidOffset, {}});
630 func_types_.push_back(func_type);
631 return Result::Ok;
632}
633
634Result BinaryReaderInterp::OnTableCount(Index count) {
635 module_.tables.reserve(std::min(count, kMaxPreallocatedBufferSize));

Callers 1

OnImportFuncMethod · 0.45

Calls 2

VarClass · 0.50
push_backMethod · 0.45

Tested by

no test coverage detected