Closed Bug 600489 Opened 16 years ago Closed 16 years ago

TM: allow for branches that are never taken

Categories

(Core :: JavaScript Engine, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: n.nethercote, Assigned: n.nethercote)

References

Details

(Whiteboard: fixed-in-tracemonkey)

Attachments

(1 file)

insBranch() can return NULL if a conditional branch is optimized so that its condition never succeeds. jstracer.cpp doesn't account for this, it just calls branch->setTarget(label). This hasn't mattered up until now, but with bug 600127 doing a better job of optimizing guard/branch conditions, it does matter. This patch adds label() to handle this.
Attachment #479341 - Flags: review?(gal)
Attachment #479341 - Flags: review?(gal) → review+
Whiteboard: fixed-in-tracemonkey
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Summary: TM: allow for insBranch() returning NULL → TM: allow for branches that are never taken
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: