Граф коммитов

84 Коммитов

Автор SHA1 Сообщение Дата
mrbkap%gmail.com 36071ec9b8 Create a safe version of js_ComputeThis that does access checks up the scope chain and bails if there's a failure. Use js_SafeComputeThis in places where its needed. bug 319263, r+a181=brendan 2006-05-04 06:46:27 +00:00
brendan%mozilla.org 105db56e9f Fixed another JSVERSION_1_2 removal botch that broke splice (325951 regression, but see 326466 for the report). 2006-04-28 00:20:44 +00:00
brendan%mozilla.org 19075ba56d Prep patch for iterators and generators (326466, r=mrbkap). 2006-04-27 00:39:43 +00:00
brendan%mozilla.org d5cdd83399 Major simplification to jsconfig.h, dropping support for all ancient bug config and almost all pre-ECMA-Edition-3 feature config (325951, r=mrbkap). 2006-04-26 21:33:01 +00:00
brendan%mozilla.org 05d93ba6e5 Second half of fix for 304376 (r=mrbkap). 2006-04-19 23:36:16 +00:00
igor%mir2.org ad4a379d52 Bug 330951: Patch from Pawel Chmielowski to fix a regression that I introduced in bug 311515. 2006-03-18 23:36:04 +00:00
igor%mir2.org 3ad298d674 Bug 330812: In array_sort clear only those elements of temporary vector that
would be included in the rooted set. It provides better performance for huge
mostly spare arrays. r=mrbkap
2006-03-17 22:09:46 +00:00
igor%mir2.org 2830bd1869 Bug 311515: Fixing misspellings in comments from the previous commit. 2006-03-16 08:04:28 +00:00
igor%mir2.org 2e221363b8 Bug 311515: array_sort sorts undefined value and holes via counting them as according to the Ecma standard holes are bigger then undefined values which are bigger then anything else. This allows to simplify sort_compare and shrink jsarray.c code while making sorting of spare arrays faster. r=mrbkap 2006-03-15 20:49:09 +00:00
igor%mir2.org f458e75099 Bug 328556: Proper accounting for growth in array_join_sub when reallocating
chars array. r=mrbkap
2006-02-27 17:32:22 +00:00
mrbkap%gmail.com d9be113509 Clean up a bracing nitpick. 2006-02-24 22:12:32 +00:00
brendan%mozilla.org b2a8bfb115 Fix typo in enum tag. 2006-01-11 05:18:30 +00:00
brendan%mozilla.org b8eccc400a Fix uninitialized variable use in an assertion (311583, r=igor). 2005-12-07 22:42:06 +00:00
igor%mir2.org 1c72cc977a Fix for bug 311583:
Not uneval(array) uses elision, not undefined, to represent array holes.
r=brendan
2005-11-20 01:12:58 +00:00
igor%mir2.org 42450ad2fb Fix for bug 312138:
js_HeapSort terminates as soon as sort function indicates so. r=brendan
2005-11-16 10:02:57 +00:00
mrbkap%gmail.com 3fe8343439 bug 315509: array_unshift doesn't deal with holes in the array correctly. Patch from moz_bug_r_a4@yahoo.com. r=mrbkap 2005-11-08 20:58:28 +00:00
brendan%mozilla.org 2b996ec15b Use explicit local roots in native methods (313763, r/sr=igor/shaver). 2005-11-01 01:13:36 +00:00
brendan%mozilla.org 8113f0b6b6 Consolidate and check fun->object access (313685, r=mrbkap). 2005-10-25 08:00:30 +00:00
brendan%mozilla.org 9102c15f22 Use local roots effectively (312278, r=igor). 2005-10-20 18:58:24 +00:00
igor%mir2.org a7cef58144 Fixing bug 312069:
My previous patch to avoid memory allocation for pivot in HeapSort did not deal properly with checking for overflow. So here is a proper version.
2005-10-12 07:39:45 +00:00
mrbkap%gmail.com f310dfbccf bug 311792: Make sure that temporary values are protected from GC. Patch from Igor Bukanov <igor.bukanov@gmail.com>. r=mrbkap/brendan 2005-10-10 23:33:16 +00:00
brendan%mozilla.org 1b532f2824 Fix 310425 (r=mrbkap) and check in Igor's fix for 311497 (r=me). 2005-10-09 06:09:21 +00:00
brendan%mozilla.org 26bf0793b5 Patch by Igor and me (mostly Igor in substance) to fix corner cases, optimize hole cases (310425, r/sr=mrbkap/shaver). 2005-10-02 06:27:07 +00:00
brendan%mozilla.org 55edf8cd0c Fix failure to root temporary result under Array.prototype.sort (306788, r/sr=mrbkap/shaver). 2005-09-02 17:49:05 +00:00
brendan%mozilla.org 06a0130dc0 Generic static method automation to simplify things for callers of generic prototype methods (304828, r=mrbkap, sr=shaver). 2005-08-30 04:28:45 +00:00
brendan%mozilla.org 7b4f4db99e Patch to bug 305002 written by Hans-Andreas Engel <Hans-A.Engel@unibas.ch>. 2005-08-19 01:48:48 +00:00
mrbkap%gmail.com c89e210546 bug 300858: Make sure to update all_strings so that we don't try to treat a JSVAL_HOLE as a JSString in sort_compare_strings. Instead, arrays composed of strings and holes should go through sort_compare. r+a=brendan 2005-07-20 04:06:51 +00:00
mrbkap%gmail.com a1c3b628bd bug 301204: Array.prototype.reverse is broken. Also fix a bug in Array.prototype.slice, when begin > end. r=shaver a=bsmedberg 2005-07-18 18:44:22 +00:00
mrbkap%gmail.com a23e65e0a2 bug 299738: Fix jsarray.c to not fill holes in arrays. r=brendan a=bsmedberg 2005-07-13 16:38:46 +00:00
mrbkap%gmail.com 93319239ed bug 299644: Array.prototype.concat() plugs holes in the existing array.
r+a=brendan
2005-07-05 21:25:12 +00:00
brendan%mozilla.org 23ed3dd111 Followup fix for 255555 (r=mrbkap, a=me). 2005-06-08 18:08:53 +00:00
mrbkap%gmail.com 87a6415a5e bug 255555: undefined and missing values are passed to Array.sort()'s comparison function. r+a=brendan 2005-06-08 16:38:38 +00:00
shaver%mozilla.org 94288f4091 Bug 290252: array extras: add lastIndexOf, add fromIndex to indexOf, fix
behaviour of operations on an empty array, shine shoes.
            r+a=brendan.
2005-05-04 02:43:13 +00:00
shaver%mozilla.org 4fcbb1c1ae Bug 290592: Add |forEach|, |indexOf|, |filter|, |map|, |some| and |every| to
Array.prototype, for greater Lispy righteousness.  r+a=brendan.
2005-04-17 18:31:59 +00:00
brendan%mozilla.org 496ad03465 Patch from Erik Fabert <jerfa@yahoo.com> to fix splice/concat/slice number-of-formals 'length' property values (274035, r=me). 2005-01-15 04:34:39 +00:00
brendan%mozilla.org 6439d93504 Propagate a flag induced by JSOPTION_XML into script and context version fields, for proper run- and compile-time consistency (275742, r=shaver). 2004-12-24 00:03:59 +00:00
brendan%mozilla.org 32e7a4bde1 Implement Deutsch-Schorr-Waite, plus related GC metering improvements, to avoid stack overflow crashes when marking very deep object lists (203278, r=igor@fastmail.fm and Igor wrote the tail-recursion elimination code). 2004-12-06 23:17:19 +00:00
brendan%mozilla.org 5f8cd19af3 Root the temporary vector used by array_sort via fp->vars (272336, r=shaver). 2004-11-30 17:52:29 +00:00
brendan%mozilla.org dea0bf9edb Initial E4X check-in, configured off (246441, rs=shaver). 2004-10-05 10:19:07 +00:00
brendan%mozilla.org 8423c683b6 Fix [null].toSource() to produce [null], not [] (245148, r=shaver). 2004-06-02 21:10:00 +00:00
gerv%gerv.net 82a585b053 Bug 205418 - Relicense Spidermonkey (js/src) to MPL/LGPL/GPL. Patch by gerv; r,a=brendan. 2003-11-15 00:11:16 +00:00
brendan%mozilla.org 5ab6026cea Oops, this should have been checked in as part of the bug 208586 landing. 2003-06-12 00:26:40 +00:00
brendan%mozilla.org 287257cbff Checking in heap-sort speedup from Igor Bukanov <igor@icesoft.no> (bug 181828, r=me). 2003-02-27 01:43:44 +00:00
brendan%mozilla.org aba494b15d Check in rogerl's patch for bug 178722, r=me. 2002-11-07 10:51:23 +00:00
brendan%mozilla.org a96179b15f Fix Array.prototype.concat to special-case and flatten Array arguments (including |this|) only, not any object with array-like .length (169795, r=rogerl, who fixed my tired morning patch). 2002-09-20 18:45:05 +00:00
brendan%mozilla.org 6184d85eef khanson's patch with a comment elaboration for bug 157652 (r=rogerl, sr=me, a=rjesup). 2002-07-31 21:42:12 +00:00
rogerl%netscape.com 7d4a750bfb Bug #155285. Array.join(undefined) should use ',' - ECMA compatibility.
r=scole, sr=brendan.
2002-07-03 07:22:14 +00:00
rogerl%netscape.com 6ebd2105e5 Bug #154338, r=khanson,sr=jag. Misuse of string length field, when string
was dependent, extracted bad value for subsequent memory request.
2002-07-02 18:14:01 +00:00
khanson%netscape.com 64051a587d patch to speed up array.sort of strings by 40% r=brendan, sr=shaver 2002-05-27 05:53:57 +00:00
timeless%mac.com fc883176bf Bug 106386 rid source of misspellings
r=db48x sr=blake a=asa
2002-03-19 04:30:17 +00:00