| 623 | } |
| 624 | |
| 625 | Result 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 | |
| 634 | Result BinaryReaderInterp::OnTableCount(Index count) { |
| 635 | module_.tables.reserve(std::min(count, kMaxPreallocatedBufferSize)); |
no test coverage detected