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)

defect

Tracking

()

VERIFIED FIXED
mozilla1.9alpha8

People

(Reporter: jruderman, Assigned: brendan)

Details

(Keywords: testcase, verified1.8.1, Whiteboard: [baking until 09/08])

Attachments

(1 file)

> function() { delete 3; } function () { true; } > function () { true; } function () { } Why isn't it optimized all the way to function () { } in the first round?
(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
Attached patch fix — — Splinter Review
Attachment #237085 - Flags: review?(mrbkap)
Attachment #237085 - Flags: review?(mrbkap) → review+
Fixed on the trunk. /be
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
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?
Whiteboard: [baking until 09/08]
Comment on attachment 237085 [details] [diff] [review] fix a=schrep for drivers.
Attachment #237085 - Flags: approval1.8.1? → approval1.8.1+
Fixed on the 1.8 branch. /be
Keywords: fixed1.8.1
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+
verified fixed 1.8, 1.9 20060909 windows/mac*/linux
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: