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)
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: gal, Assigned: gal)
Details
Attachments
(1 file)
|
1.43 KB,
patch
|
graydon
:
review+
|
Details | Diff | Splinter Review |
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
| Assignee | ||
Comment 1•17 years ago
|
||
Assignee: general → gal
| Assignee | ||
Updated•17 years ago
|
Attachment #364230 -
Flags: review?(graydon)
Updated•17 years ago
|
Attachment #364230 -
Flags: review?(graydon) → review+
Comment 2•17 years ago
|
||
this needs to be rebased
Comment 3•15 years ago
|
||
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.
Comment 4•15 years ago
|
||
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.
Description
•