Closed Bug 480237 Opened 17 years ago Closed 15 years ago

TM: Use branching instead of logic expression when unboxing numbers

Categories

(Core :: JavaScript Engine, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: gal, Assigned: gal)

Details

Attachments

(1 file)

This generates better code. Small speedup on SS. Old: mov eax,0(eax+ebx*4) mov edx,eax and edx,7 cmp edx,2 sete edx movzx edx,edx and eax,1 or eax,edx test eax,eax je 0x2a8fdc New: mov eax,0(eax+ebx*4) mov edx,eax and edx,1 cmp edx,1 je 0x264fcc and eax,7 cmp eax,2 jne 0x2a8fdc
Attached patch patchSplinter Review
Assignee: general → gal
Attachment #364230 - Flags: review?(graydon)
Attachment #364230 - Flags: review?(graydon) → review+
this needs to be rebased
These bugs are all part of a search I made for js bugs that are getting lost in transit: http://tinyurl.com/jsDeadEndBugs They all have a review+'ed, non-obsoleted patch and are not marked fixed-in-tracemonkey or checkin-needed but have not seen any activity in 300 days. Some of these got lost simply because the assignee/patch provider never requested a checkin, or just because they were forgotten about.
This bug is moot, thanks to fatvals, for which unboxing a number is much faster.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: