Closed Bug 532806 Opened 16 years ago Closed 16 years ago

OP_lookupswitch in LIR doesn't handle the default-only case

Categories

(Tamarin Graveyard :: Virtual Machine, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: stejohns, Assigned: stejohns)

Details

Attachments

(1 file)

A recent optimization trims items that are identical to the default case, but if all are trimmed then nothing is emitted for the opcode at all... what we should do is unconditionally jump to the default in this case.
Attached patch PatchSplinter Review
Attachment #415979 - Flags: superreview?(edwsmith)
Attachment #415979 - Flags: review?(rreitmai)
Attachment #415979 - Flags: superreview?(edwsmith) → superreview+
needs a test case, too
Comment on attachment 415979 [details] [diff] [review] Patch good find.
Attachment #415979 - Flags: review?(rreitmai) → review+
pushed (with testcase) as changeset: 3258:8aaad35edfac
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Assignee: nobody → stejohns
Status: RESOLVED → VERIFIED
Flags: in-testsuite+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: