Closed
Bug 1244098
Opened 5 years ago
Closed 5 years ago
Fold jsop_in to boolean constant.
Categories
(Core :: JavaScript Engine: JIT, defect)
Core
JavaScript Engine: JIT
Tracking
()
RESOLVED
FIXED
mozilla47
Tracking | Status | |
---|---|---|
firefox47 | --- | fixed |
People
(Reporter: arai, Assigned: jandem)
References
Details
Attachments
(1 file)
7.47 KB,
patch
|
bhackett1024
:
review+
|
Details | Diff | Splinter Review |
In bug 887016, jsop_in is used to check String.prototype has no non-default property (@@match, @@search, etc), and it needs to be folded into boolean constant, especially false, in Ion compilation, to improve performance. it's used like following, so it should be false in normal case. > function StringHasNoMatch() { > var ObjectProto = GetBuiltinPrototype("Object"); > var StringProto = GetBuiltinPrototype("String"); >... > if (std_match in StringProto) > return false; > return true; > }
Reporter | ||
Comment 1•5 years ago
|
||
jandem, would you finish the patch you gave me before?
Flags: needinfo?(jdemooij)
Assignee | ||
Comment 2•5 years ago
|
||
This is a cleaned-up version of the patch I gave arai. It folds "id in object" in IonBuilder, if we know the object (or an object on its prototype chain) does not have the property.
Assignee: nobody → jdemooij
Status: NEW → ASSIGNED
Flags: needinfo?(jdemooij)
Attachment #8715760 -
Flags: review?(arai.unmht)
Assignee | ||
Comment 3•5 years ago
|
||
Comment on attachment 8715760 [details] [diff] [review] Patch Oops, meant to r? Brian.
Attachment #8715760 -
Flags: review?(arai.unmht) → review?(bhackett1024)
Assignee | ||
Comment 4•5 years ago
|
||
(In reply to Jan de Mooij [:jandem] from comment #2) > It folds "id in object" in IonBuilder, if we know the object (or an object > on its prototype chain) does not have the property. If the object is a singleton, we can also fold if it definitely *has* the property. I didn't implement that yet, because it's a bit more tricky and the current patch is sufficient for bug 887016.
Updated•5 years ago
|
Attachment #8715760 -
Flags: review?(bhackett1024) → review+
Comment 6•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/df34cd3d3f88
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla47
You need to log in
before you can comment on or make changes to this bug.
Description
•