remove redundant skip_stub_try_me_else condition (#1444)

This commit is contained in:
Mark Thom
2022-04-28 19:25:09 -06:00
parent 23c4e935b4
commit e4eefc92f4

View File

@@ -1080,8 +1080,14 @@ impl<'b, TermMarker: Allocator> CodeGenerator<'b, TermMarker> {
// the peculiar condition of this block, when false, // the peculiar condition of this block, when false,
// anticipates code.pop_front() being called about a // anticipates code.pop_front() being called about a
// dozen lines below. // dozen lines below.
if !skip_stub_try_me_else {
// if the condition is false, code_offsets.no_indices() is false,
// so don't repeat the work of the condition on skip_stub_try_me_else
// below.
self.increment_jmp_by_locs_by(code.len()); self.increment_jmp_by_locs_by(code.len());
} }
}
self.skeleton.clauses.push_back(clause_index_info); self.skeleton.clauses.push_back(clause_index_info);
code.extend(clause_code.into_iter()); code.extend(clause_code.into_iter());