Closed Bug 1111159 Opened 10 years ago Closed 10 years ago

Inline the IsArrayIterator intrinsic

Categories

(Core :: JavaScript Engine: JIT, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla37

People

(Reporter: bzbarsky, Assigned: bzbarsky)

References

Details

Attachments

(1 file)

In a simple testcase like attachment 8535691 [details] this gives us a 20-25% speedup because instead of doing a CallNative we end up doing ... nothing at all, because TI knows we only have objects with this class coming through here.
Comment on attachment 8535963 [details] [diff] [review]
Inline the IsArrayIterator intrinsic in Ion code to speed up for-of loops

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

Take it if you want it, I wanted to see if there was anything interesting in this to learn, seeing as I opened up the bug.  (There really wasn't.)
Attachment #8535963 - Flags: review+
Comment on attachment 8535963 [details] [diff] [review]
Inline the IsArrayIterator intrinsic in Ion code to speed up for-of loops

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

I don't think I can "fork" a request into two so bz gets review-granted email from me, *and* still has an outstanding request, so flipping the reviews' senses to get at least the former here, at his request.
Attachment #8535963 - Flags: review?(jdemooij)
Bleh, I wrote a patch for this and IsStringIterator in bug 932714 but forgot to land them :(

(In reply to Jeff Walden [:Waldo] (remove +bmo to email) from comment #3)
> I don't think I can "fork" a request into two so bz gets review-granted
> email from me, *and* still has an outstanding request, so flipping the
> reviews' senses to get at least the former here, at his request.

The page where you r+, has an "addl. review" field at the bottom so you can r+ there without touching the other requests :)
Comment on attachment 8535963 [details] [diff] [review]
Inline the IsArrayIterator intrinsic in Ion code to speed up for-of loops

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

Looks good to me too, thanks for doing this.

Maybe you can do the same for IsStringIterator, as it works exactly the same?
Attachment #8535963 - Flags: review+
(In reply to Jan de Mooij [:jandem] from comment #4)
> (In reply to Jeff Walden [:Waldo] (remove +bmo to email) from comment #3)
> > I don't think I can "fork" a request into two so bz gets review-granted
> > email from me, *and* still has an outstanding request, so flipping the
> > reviews' senses to get at least the former here, at his request.
> 
> The page where you r+, has an "addl. review" field at the bottom so you can
> r+ there without touching the other requests :)

bz probably doesn't get a review-granted mail in that case. Nevermind me :)
Blocks: 874580
That's with StringIterator bits too.
https://hg.mozilla.org/mozilla-central/rev/1910e8b4c026
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla37
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: