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

Method GetBrDropKeepCount

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

Source from the content-addressed store, hash-verified

439}
440
441Result BinaryReaderInterp::GetBrDropKeepCount(Index depth,
442 Index* out_drop_count,
443 Index* out_keep_count) {
444 SharedValidator::Label* label;
445 CHECK_RESULT(validator_.GetLabel(depth, &label));
446 Index keep_count = label->br_types().size();
447 CHECK_RESULT(
448 GetDropCount(keep_count, label->type_stack_limit, out_drop_count));
449 *out_keep_count = keep_count;
450 return Result::Ok;
451}
452
453Result BinaryReaderInterp::GetReturnDropKeepCount(Index* out_drop_count,
454 Index* out_keep_count) {

Callers

nothing calls this directly

Calls 2

GetLabelMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected