193 Commits

Author SHA1 Message Date
gavin%gavinsharp.com
40bef6f596 Bug 355992: |Assertion failure: strncmp(rval, js_function_str, 8) == 0 && rval[8] == ' '| with non-function setter, patch by Brian Crowder <crowder@fiverocks.com>, r=brendan
git-svn-id: svn://10.0.0.236/trunk@213372 18797224-902f-48f8-a5cc-f745e15eee43
2006-10-09 22:50:37 +00:00
brendan%mozilla.org
416dd83125 Fix hard case of empty group assignment in let block head (355635, r=mrbkap).
git-svn-id: svn://10.0.0.236/trunk@213220 18797224-902f-48f8-a5cc-f745e15eee43
2006-10-06 07:50:47 +00:00
brendan%mozilla.org
fbbeb475be Fix 355049 (r=mrbkap).
git-svn-id: svn://10.0.0.236/trunk@213219 18797224-902f-48f8-a5cc-f745e15eee43
2006-10-06 07:09:50 +00:00
brendan%mozilla.org
58f3c7b4c1 Checking in patch from Nick Allen <nallen@acm.org> and Thue Janus Kristensen <thuejk@gmail.com> implementing merge-sort for Array.prototype.sort, for stability and best perf on real-world mostly- or often-ordered inputs (224128, r/sr=igor/brendan).
git-svn-id: svn://10.0.0.236/trunk@213195 18797224-902f-48f8-a5cc-f745e15eee43
2006-10-05 23:28:51 +00:00
brendan%mozilla.org
3b7677061a Another fast followup fix.
git-svn-id: svn://10.0.0.236/trunk@213141 18797224-902f-48f8-a5cc-f745e15eee43
2006-10-05 00:56:24 +00:00
brendan%mozilla.org
68b5da6d05 Igor's cleanup patch, with some decompiler assist from me (354982, r=us).
git-svn-id: svn://10.0.0.236/trunk@213135 18797224-902f-48f8-a5cc-f745e15eee43
2006-10-05 00:19:49 +00:00
brendan%mozilla.org
87ebedc224 Fix holes-in-destructuring-array-patterns bug from hell (355004, tr=jesse).
git-svn-id: svn://10.0.0.236/trunk@212952 18797224-902f-48f8-a5cc-f745e15eee43
2006-10-01 08:11:23 +00:00
brendan%mozilla.org
888b773558 Destructuring decompilation (346642, anticipating r=mrbkap).
git-svn-id: svn://10.0.0.236/trunk@212920 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-30 06:46:56 +00:00
brendan%mozilla.org
bf389954f8 Fix 353454, r=mrbkap.
git-svn-id: svn://10.0.0.236/trunk@212094 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-21 00:46:05 +00:00
brendan%mozilla.org
543e5891d9 Prep patch for 'plan A' (346642, r=mrbkap).
git-svn-id: svn://10.0.0.236/trunk@211917 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-18 11:04:30 +00:00
brendan%mozilla.org
e8252ab10a Fix value generator decompilation to rewrite JSOP_FORLOCAL as JSOP_GETLOCAL (352392, r=mrbkap)
git-svn-id: svn://10.0.0.236/trunk@210104 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-14 01:40:52 +00:00
brendan%mozilla.org
ee04d967d9 Fix js_DecompileValueGenerator to not copy a bytecode slice, breaking source notes (350417, r=mrbkap).
git-svn-id: svn://10.0.0.236/trunk@210103 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-14 01:38:57 +00:00
brendan%mozilla.org
19d7a84b1f Space patrol.
git-svn-id: svn://10.0.0.236/trunk@210008 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-13 08:26:42 +00:00
brendan%mozilla.org
4e0c8bf89d Fix else-if chains to be unbraced as required by single let declaration consequents (352268, r=mrbkap).
git-svn-id: svn://10.0.0.236/trunk@209999 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-13 07:20:48 +00:00
brendan%mozilla.org
0cccf3cb61 Fix to avoid elselet run-together decompilations (352217, r=mrbkap).
git-svn-id: svn://10.0.0.236/trunk@209996 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-13 07:13:15 +00:00
brendan%mozilla.org
79db1c74a7 Fix new and related precedence problems (352312, r=sayrer/jesse).
git-svn-id: svn://10.0.0.236/trunk@209953 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-13 00:16:46 +00:00
brendan%mozilla.org
2accee6801 Fix yield's 'input precedence' (352269, r=mrbkap).
git-svn-id: svn://10.0.0.236/trunk@209837 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-12 05:16:26 +00:00
brendan%mozilla.org
b206f5a2de Detect parentheses forcing right association and decompile them (352261, r=mrbkap).
git-svn-id: svn://10.0.0.236/trunk@209832 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-12 04:30:12 +00:00
brendan%mozilla.org
bb83d24aba Tweak new precedence when constructor is a call expression (352013, r=mrbkap).
git-svn-id: svn://10.0.0.236/trunk@209830 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-12 04:10:43 +00:00
brendan%mozilla.org
ce5368ea79 Fix JSOP_SETCALL and JSOP_POPV precedences; turn off auto-parens for bracketed index values (352079, r=mrbkap).
git-svn-id: svn://10.0.0.236/trunk@209817 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-12 02:07:32 +00:00
brendan%mozilla.org
35970ad5ef Fix getter/setter in object initialiser decompilation to track minimal parenthesization fixes (352010, r=mrbkap).
git-svn-id: svn://10.0.0.236/trunk@209815 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-12 01:55:08 +00:00
brendan%mozilla.org
3564a163a6 Fix yield (yield) decompilation (352198, r=mrbkap).
git-svn-id: svn://10.0.0.236/trunk@209778 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-11 21:26:30 +00:00
brendan%mozilla.org
6744dc7a9f Fix to parenthesize any expression starting with 'function ' (352073, r=mrbkap).
git-svn-id: svn://10.0.0.236/trunk@209776 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-11 21:15:00 +00:00
brendan%mozilla.org
5cd009544f Fix element-setting decompilation (352202, r=mrbkap).
git-svn-id: svn://10.0.0.236/trunk@209774 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-11 21:09:37 +00:00
jwalden%mit.edu
3551776d83 Bug 352097 - E4X XML processing instruction with a target but no data decompiles with an extra space; also fixes bug 352103 - <??> accepted as a valid XML PI. r=brendan
git-svn-id: svn://10.0.0.236/trunk@209773 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-11 21:08:03 +00:00
brendan%mozilla.org
1f53613f25 Don't brace let declaration if single statement controlled by if/do/while/for/with (351070, r=mrbkap).
git-svn-id: svn://10.0.0.236/trunk@209757 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-11 19:45:24 +00:00
brendan%mozilla.org
dbc421d57f Fix precedence-based decompilation (352026 and dependents, r=mrbkap/sayrer).
git-svn-id: svn://10.0.0.236/trunk@209744 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-11 18:29:33 +00:00
sayrer%gmail.com
f030c20502 bug 352060. Fixes for getter/setter keywords, XML assign decompile printfs, and precedence table. r=brendan
git-svn-id: svn://10.0.0.236/trunk@209723 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-11 16:38:45 +00:00
sayrer%gmail.com
18eb737ddd Bug 349616. "getter" keyword decompiles as "(null)"
git-svn-id: svn://10.0.0.236/trunk@209648 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-10 16:54:30 +00:00
brendan%mozilla.org
30c7c22446 Fix ancient bug that suppressed parenthesization of set-element rhs (352022, r=mrbkap).
git-svn-id: svn://10.0.0.236/trunk@209622 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-10 09:10:17 +00:00
brendan%mozilla.org
51e6b8ed2b Fix two bugs in JSOP_CONDSWITCH code-gen and decompilation (351496, r=mrbkap).
git-svn-id: svn://10.0.0.236/trunk@209446 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-08 16:45:40 +00:00
brendan%mozilla.org
cfc1d8ca26 back out rev 3.160, it's buggy.
git-svn-id: svn://10.0.0.236/trunk@209423 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-08 05:18:36 +00:00
brendan%mozilla.org
ec8c177ea4 Fix decompilation to preserve braces required by let, and also fix switch body block to have scope for let at top level of case statement (349634, r=mrbkap).
git-svn-id: svn://10.0.0.236/trunk@209421 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-08 05:03:54 +00:00
brendan%mozilla.org
d4acb53387 Must keep discriminant on stack when decompiling switches, for correct stack modeling of let expressions/blocks/declarations (351496, r=mrbkap).
git-svn-id: svn://10.0.0.236/trunk@209420 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-08 04:53:01 +00:00
brendan%mozilla.org
e374f733e5 Fix 351626 and 351705, r=mrbkap/sayrer.
git-svn-id: svn://10.0.0.236/trunk@209369 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-07 19:48:07 +00:00
brendan%mozilla.org
ed53941dbd Object and array initializers must be parenthesized if expression statements (351625, r=mrbkap).
git-svn-id: svn://10.0.0.236/trunk@209319 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-07 05:50:23 +00:00
brendan%mozilla.org
9897271697 Fix JSOP_GROUP decompilation to propagate lastop to saveop (to lastop again on next iteration, in case of cascading groups; 351597, r=mrbkap).
git-svn-id: svn://10.0.0.236/trunk@209305 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-07 01:16:15 +00:00
brendan%mozilla.org
a70cb307b3 Fix operator precedences and make the most of them when decompiling (350531, r=mrbkap/sayrer).
git-svn-id: svn://10.0.0.236/trunk@209249 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-06 06:31:08 +00:00
brendan%mozilla.org
87ddbf0855 Cleanup patch geared toward not escaping control characters in XML literals (349814, r=mrbkap).
git-svn-id: svn://10.0.0.236/trunk@209204 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-05 20:21:56 +00:00
brendan%mozilla.org
2b9133793b Force parens around 'in' expr E1 in for (E1;...) loop (351336, r=mrbkap).
git-svn-id: svn://10.0.0.236/trunk@209151 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-05 00:29:32 +00:00
brendan%mozilla.org
07d80012b1 Fix local function shadowing argument decompilation (351116, r=mrbkap).
git-svn-id: svn://10.0.0.236/trunk@209078 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-02 20:33:42 +00:00
brendan%mozilla.org
da72328b13 Fix stack modeling in for(x[i] in o) type loop heads (350810, r=mrbkap/sayrer).
git-svn-id: svn://10.0.0.236/trunk@208955 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-01 00:36:50 +00:00
brendan%mozilla.org
36e5b8e8fa Fix regression from initial js1.7 landing (350670, r=mrbkap).
git-svn-id: svn://10.0.0.236/trunk@208843 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-30 21:12:25 +00:00
brendan%mozilla.org
c8c294f61b Fix try/catch/finally code generation (350312, r=igor/shaver).
git-svn-id: svn://10.0.0.236/trunk@208767 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-29 23:15:22 +00:00
brendan%mozilla.org
a976f2ea1c Fix inline specialization of PushOff for array comprehensions (349650, r=mrbkap/sayrer).
git-svn-id: svn://10.0.0.236/trunk@208707 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-29 16:52:27 +00:00
brendan%mozilla.org
e029719e46 Fix delete property and method call operand decompilation cases (350242, r=mrbkap/shaver).
git-svn-id: svn://10.0.0.236/trunk@208582 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-27 21:08:41 +00:00
brendan%mozilla.org
4fa5097a7e Retract to left-most operand for JSOP_ARRAYPUSH (349648, r=mrbkap/sayrer).
git-svn-id: svn://10.0.0.236/trunk@208571 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-27 15:57:32 +00:00
brendan%mozilla.org
74ce0341ef Fix @* decompilation (349956, r=shaver).
git-svn-id: svn://10.0.0.236/trunk@208425 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-25 18:04:03 +00:00
brendan%mozilla.org
bcb574cd8b Fix decompilation of postfix ++ and -- on block-local names (349633, r=shaver).
git-svn-id: svn://10.0.0.236/trunk@208423 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-25 17:57:25 +00:00
mrbkap%gmail.com
9abee4a1bd Avoid extra parens inside XML lists. bug 349815, r=brendan
git-svn-id: svn://10.0.0.236/trunk@208222 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-23 20:00:26 +00:00