Closed Bug 1328826 Opened 7 years ago Closed 7 years ago

Look at baseline stubs to decide to use MConcat

Categories

(Core :: JavaScript Engine: JIT, defect)

defect
Not set
normal

Tracking

()

RESOLVED WONTFIX
mozilla53
Tracking Status
firefox53 --- fixed

People

(Reporter: h4writer, Assigned: h4writer)

References

Details

Attachments

(1 file, 1 obsolete file)

Currently we only look at the input types to decide when to use MConcat. If the types don't give enough information we could look to the ics in baseline and if we only see ICBinaryArith_StringConcat we could use MConcat.
Flags: needinfo?(hv1989)
I think we should also get this with bug 1324561, but if this is a win in the meantime we shouldn't wait for that.
Attached patch Patch (obsolete) — Splinter Review
Totally agree that CacheIR MIR generation will solve this. Though created this super quickly as a result like you said we can probably just take this for now.
Assignee: nobody → hv1989
Flags: needinfo?(hv1989)
Attachment #8824013 - Flags: review?(jdemooij)
Attached patch PatchSplinter Review
Attachment #8824013 - Attachment is obsolete: true
Attachment #8824013 - Flags: review?(jdemooij)
Attachment #8824014 - Flags: review?(jdemooij)
Comment on attachment 8824014 [details] [diff] [review]
Patch

Review of attachment 8824014 [details] [diff] [review]:
-----------------------------------------------------------------

Looks good.

::: js/src/jit/MIR.h
@@ -7218,1 @@
>          setMovable();

This is OK because we will bailout if we see an object or symbol?
Attachment #8824014 - Flags: review?(jdemooij) → review+
Comment on attachment 8824014 [details] [diff] [review]
Patch

Review of attachment 8824014 [details] [diff] [review]:
-----------------------------------------------------------------

::: js/src/jit/MIR.h
@@ -7218,1 @@
>          setMovable();

Correct
Pushed by hv1989@gmail.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/28ca0dfe8d72
IonMonkey: Speculate concatenation on baseline caches, r=jandem
https://hg.mozilla.org/mozilla-central/rev/28ca0dfe8d72
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla53
Backout out in https://hg.mozilla.org/integration/mozilla-inbound/rev/3cc278ae455617ea056ccc9248616811c33d57e0

(In reply to Jan de Mooij [:jandem] from comment #1)
> I think we should also get this with bug 1324561, but if this is a win in
> the meantime we shouldn't wait for that.

We need to test that at least one of the operands are string, which we don't do anymore with this code. Doing that might be a bit more complicated and given above comment I won't spend more time on this.
Resolution: FIXED → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: