Closed
Bug 645889
Opened 14 years ago
Closed 14 years ago
JM: Add RegExp.exec -> RegExp.test optimization
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: bhackett1024, Assigned: bhackett1024)
Details
(Whiteboard: fixed-in-tracemonkey)
Attachments
(1 file)
6.74 KB,
patch
|
dmandelin
:
review+
|
Details | Diff | Splinter Review |
The optimization which the tracer does to transform re.exec into re.test when possible is currently responsible for most or all of the difference between JM+TI and JM+TM on awfy. This optimization should also be added to JM (type inference not needed, it's very simple to swap natives when generating native call stubs) to avoid the clutter.
Assignee | ||
Comment 1•14 years ago
|
||
Patch on the JM tree. Wrong author field on the commit, sorry!
http://hg.mozilla.org/projects/jaegermonkey/rev/a3632d306b13
Comment 2•14 years ago
|
||
Would this land cleanly on the TM tree?
Assignee | ||
Comment 3•14 years ago
|
||
Almost. I'll put together a patch for review.
Assignee | ||
Comment 4•14 years ago
|
||
Assignee: general → bhackett1024
Attachment #522564 -
Flags: review?(dmandelin)
Comment 5•14 years ago
|
||
Comment on attachment 522564 [details] [diff] [review]
patch against TM
Nice factoring. Only nit is that the name "IsCallResultUnusedOrTested" is kind of weird, but the comment at the top makes it pretty obvious anyway, and it's only used in these places. "IsCallResultNotStored"? "IsCallResultNullTestedOnly"? "IsCallResultObjectNotUsed"?
Attachment #522564 -
Flags: review?(dmandelin) → review+
Comment 6•14 years ago
|
||
CallResultEscapes, and invert the test?
Assignee | ||
Comment 7•14 years ago
|
||
I like CallResultEscapes.
http://hg.mozilla.org/tracemonkey/rev/ba8cc57e0848
Whiteboard: fixed-in-tracemonkey
Comment 8•14 years ago
|
||
cdleary-bot mozilla-central merge info:
http://hg.mozilla.org/mozilla-central/rev/ba8cc57e0848
Updated•14 years ago
|
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•