Closed
Bug 787286
Opened 14 years ago
Closed 1 year ago
IonMonkey: Support truncated LLoadSlotT (WE are 3x slower than Chrome)
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: sstangl, Unassigned)
References
(Blocks 1 open bug)
Details
(Whiteboard: [ion:t])
Attachments
(1 file)
|
1.67 KB,
application/javascript
|
Details |
Relevant microbenchmark attached. We emit the following code in a tight loop:
> 29 LoadSlot Slots102 // Double (implying Double or Int32)
> 30 TruncateToInt32 LoadSlot29 // Int32
> 31 BitAnd TruncateToInt32 // Int32
> 34 StoreSlot Slots102 BitAnd31
The LoadSlot gets lowered to a Double-typed LLoadSlotT, which performs a load that checks for Int32 and, if found, converts it to Double. Since the value stored is always Int32, we always load an Int32, convert it to a double, and then convert it back to an Int32.
Instead, we could just perform the truncation as part of the load, letting Int32s flow through.
Probably only minor perf gains, very low-priority.
Updated•14 years ago
|
Whiteboard: [ion:t]
| Reporter | ||
Comment 1•14 years ago
|
||
Between V8 and SS, this *only* occurs in bitwise-and, so it is the lowest of low priorities.
| Assignee | ||
Updated•12 years ago
|
Assignee: general → nobody
Updated•4 years ago
|
Severity: normal → S3
Comment 2•1 year ago
|
||
Chrome: https://share.firefox.dev/454aEOg (1s)
Firefox: https://share.firefox.dev/4mbOhMY (3s)
But is the testcase still relevant?
Summary: IonMonkey: Support truncated LLoadSlotT → IonMonkey: Support truncated LLoadSlotT (WE are 3x slower than Chrome)
Comment 3•1 year ago
|
||
We now load bitwiseAndValue as an Int32 and generate fairly good code. The main issue is that the StoreDynamicSlotT code has some unnecessary barrier code. Unrolling this loop might also help a bit.
Let's close this bug and work on these issues in other bugs.
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•