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

Method GetReturnCallDropKeepCount

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

Source from the content-addressed store, hash-verified

459}
460
461Result BinaryReaderInterp::GetReturnCallDropKeepCount(const FuncType& func_type,
462 Index keep_extra,
463 Index* out_drop_count,
464 Index* out_keep_count) {
465 Index keep_count = static_cast<Index>(func_type.params.size()) + keep_extra;
466 CHECK_RESULT(GetDropCount(keep_count, 0, out_drop_count));
467 *out_drop_count += validator_.GetLocalCount();
468 *out_keep_count = keep_count;
469 return Result::Ok;
470}
471
472void BinaryReaderInterp::EmitBr(Index depth,
473 Index drop_count,

Callers

nothing calls this directly

Calls 2

GetLocalCountMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected