Closed
Bug 346915
Opened 20 years ago
Closed 20 years ago
Optimized "delete" expressions can often be optimized further
Categories
(Core :: JavaScript Engine, defect, P4)
Core
JavaScript Engine
Tracking
()
VERIFIED
FIXED
mozilla1.9alpha8
People
(Reporter: jruderman, Assigned: brendan)
Details
(Keywords: testcase, verified1.8.1, Whiteboard: [baking until 09/08])
Attachments
(1 file)
|
1.67 KB,
patch
|
mrbkap
:
review+
mtschrep
:
approval1.8.1+
|
Details | Diff | Splinter Review |
> function() { delete 3; }
function () { true; }
> function () { true; }
function () { }
Why isn't it optimized all the way to function () { } in the first round?
| Assignee | ||
Comment 1•20 years ago
|
||
(In reply to comment #0)
> Why isn't it optimized all the way to function () { } in the first round?
Constant folder doesn't handle delete rvalue, so we end up with peephole optimization, which is also independent of the useless expression eliminator. Taking, the decompiler is my red-headed stepchild.
/be
Assignee: general → brendan
OS: Mac OS X 10.4 → All
Priority: -- → P4
Hardware: Macintosh → All
Target Milestone: --- → mozilla1.9beta
| Assignee | ||
Comment 2•20 years ago
|
||
Attachment #237085 -
Flags: review?(mrbkap)
Updated•20 years ago
|
Attachment #237085 -
Flags: review?(mrbkap) → review+
| Assignee | ||
Comment 3•20 years ago
|
||
Fixed on the trunk.
/be
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
| Assignee | ||
Comment 4•20 years ago
|
||
Comment on attachment 237085 [details] [diff] [review]
fix
This is a safe fix for the fuzz tester. It's larger looking than its effects: it does not change CheckSideEffects' behavior on delete expressions except where the operand is not an "lvalue" -- in which case it makes CheckSideEffects consistent with the code generator, so that we don't end up with useless true operators that are culled on a round-trip throught the decompiler.
/be
Attachment #237085 -
Flags: approval1.8.1?
Updated•20 years ago
|
Whiteboard: [baking until 09/08]
Comment 5•20 years ago
|
||
Comment on attachment 237085 [details] [diff] [review]
fix
a=schrep for drivers.
Attachment #237085 -
Flags: approval1.8.1? → approval1.8.1+
Comment 7•20 years ago
|
||
Checking in regress-346915.js;
/cvsroot/mozilla/js/tests/js1_5/Regress/regress-346915.js,v <-- regress-346915.js
initial revision: 1.1
Flags: in-testsuite+
Comment 8•20 years ago
|
||
verified fixed 1.8, 1.9 20060909 windows/mac*/linux
Status: RESOLVED → VERIFIED
Keywords: fixed1.8.1 → verified1.8.1
You need to log in
before you can comment on or make changes to this bug.
Description
•