| 439 | } |
| 440 | |
| 441 | Result 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 | |
| 453 | Result BinaryReaderInterp::GetReturnDropKeepCount(Index* out_drop_count, |
| 454 | Index* out_keep_count) { |