97 Commits

Author SHA1 Message Date
crowder%fiverocks.com
47a0bd86c4 Bug 384809 : Various JS engine crashes/leaks in OOM conditions, r=brendan, patch by Gavin Reaney, gavin@picsel.com
git-svn-id: svn://10.0.0.236/trunk@228294 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-19 04:10:03 +00:00
crowder%fiverocks.com
de2410df1a Bug 375801: Using (void 0) instead of "undefined" in toSource and uneval(), r=mrbkap
git-svn-id: svn://10.0.0.236/trunk@227893 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-12 19:33:40 +00:00
igor%mir2.org
bee25cd6c3 Bug 384104: Fixing ALE macros to quell GCC strict-aliasing warnings. r=brendan
git-svn-id: svn://10.0.0.236/trunk@227849 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-12 07:27:23 +00:00
igor%mir2.org
f92cdfb6ca Bug 378261: Replacing GC_MARK_DEBUG by DumpHeap. r=brendan
git-svn-id: svn://10.0.0.236/trunk@225006 18797224-902f-48f8-a5cc-f745e15eee43
2007-04-25 13:43:18 +00:00
igor%mir2.org
4bb4c414fe Bug 375270: API to trace GC things graph without running the GC. r=brendan
git-svn-id: svn://10.0.0.236/trunk@224614 18797224-902f-48f8-a5cc-f745e15eee43
2007-04-17 06:53:39 +00:00
crowder%fiverocks.com
6ec6b0dc77 Bug 366398: Makefile.ref on Darwin builds dynamic library correctly, and a fix for debug builds
git-svn-id: svn://10.0.0.236/trunk@219501 18797224-902f-48f8-a5cc-f745e15eee43
2007-02-05 16:24:49 +00:00
crowder%fiverocks.com
2831391b63 Bug 366398: Backing this out since it breaks branch debug builds.
Will restore when I have branch approvals


git-svn-id: svn://10.0.0.236/trunk@219331 18797224-902f-48f8-a5cc-f745e15eee43
2007-02-01 18:40:00 +00:00
crowder%fiverocks.com
7e15ef5662 Bug 366398: On Darwin, Makefile.ref builds static libjs.so instead of dynamic libjs.dylib, r=bsmedberg
git-svn-id: svn://10.0.0.236/trunk@219285 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-31 19:55:41 +00:00
igor.bukanov%gmail.com
6997abb908 Bug 366975: Allow to allocate new GC things from JSGC_END callback. r=brendan
git-svn-id: svn://10.0.0.236/trunk@218642 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-18 23:36:41 +00:00
igor.bukanov%gmail.com
2f283ee950 Bug 347248: Initialize Error instance properties lazily to speed up new Error(). r=brendan
git-svn-id: svn://10.0.0.236/trunk@209101 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-03 12:34:18 +00:00
igor.bukanov%gmail.com
31aaa375e9 Bug 347248: Taking out the prev commit as old GCC can not tolerate non-static initializers.
git-svn-id: svn://10.0.0.236/trunk@209080 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-02 20:53:20 +00:00
igor.bukanov%gmail.com
0759bbf7fb Bug 347248: Initialize Error instance properties lazily to speed up new Error(). r=brendan
git-svn-id: svn://10.0.0.236/trunk@209076 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-02 19:52:11 +00:00
igor.bukanov%gmail.com
9d6ab15e7d Bug 322135: Optimizing large index access for array elements to prevent out-of-memory when calling Array functions for huge sparse arrays. r=mrbkap sr=brendan
git-svn-id: svn://10.0.0.236/trunk@207213 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-12 08:41:54 +00:00
dbaron%dbaron.org
7bb7b45abd Backing out Igor's checkin for bug 322135 to fix orange.
git-svn-id: svn://10.0.0.236/trunk@206948 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-08 23:52:08 +00:00
igor.bukanov%gmail.com
87cc572a63 Bug 322135: Optimizing large index access for array elements to prevent out-of-memory when calling Array functions for huge sparse arrays. r=mrbkap sr=brendan
git-svn-id: svn://10.0.0.236/trunk@206932 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-08 20:25:30 +00:00
igor.bukanov%gmail.com
c3d19cda9a Bug 341821: Running close hooks of generator objects outside GC locks. r=brendan sr=mrbkap
git-svn-id: svn://10.0.0.236/trunk@206664 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-06 09:23:26 +00:00
igor.bukanov%gmail.com
9eb90f97eb Bug 341821: Taking out the fix for the bug once again. The fix exposed the problem reported in bug 341815 and it better to address everything as single patch.
git-svn-id: svn://10.0.0.236/trunk@206120 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-31 08:40:44 +00:00
igor.bukanov%gmail.com
8980741eea Bug 341821: close hooks are run outside GC locks. r=brendan,sr=mrbkap
git-svn-id: svn://10.0.0.236/trunk@205903 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-29 07:26:40 +00:00
igor.bukanov%gmail.com
19edf80584 Bug 341821: removing the previous commit, the patch was broken.
git-svn-id: svn://10.0.0.236/trunk@205043 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-28 13:23:09 +00:00
igor.bukanov%gmail.com
2ea793fe10 Bug 341821: Close hooks are run outside GC locks. r=brendan,sr=mrbkap
git-svn-id: svn://10.0.0.236/trunk@205034 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-28 08:05:56 +00:00
brendan%mozilla.org
0a940b7247 JS_1_7_ALPHA_BRANCH landing, mainly destructuring optimizations and let completion (336373, r=mrbkap).
git-svn-id: svn://10.0.0.236/trunk@201636 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-06 01:25:44 +00:00
brendan%mozilla.org
6274493000 Coroutine generators, a la Python 2.5 (326466, r=igor).
git-svn-id: svn://10.0.0.236/trunk@198979 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-04 02:19:09 +00:00
brendan%mozilla.org
2fb9f8c051 First big wave of js1.7 changes (326466, 336376, r=mrbkap).
git-svn-id: svn://10.0.0.236/trunk@198099 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-20 22:27:28 +00:00
brendan%mozilla.org
aedfa6257b Major simplification to jsconfig.h, dropping support for all ancient bug config and almost all pre-ECMA-Edition-3 feature config (325951, r=mrbkap).
git-svn-id: svn://10.0.0.236/trunk@195469 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-26 21:33:01 +00:00
brendan%mozilla.org
ad4257f410 Memoize standard class.prototype bindings, per ECMA-262 (304376, r=mrbkap).
git-svn-id: svn://10.0.0.236/trunk@194643 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-19 00:22:43 +00:00
igor%mir2.org
896b9e308e Bug 327896: JS_STATIC_ASSERT is now used to assert constant conditions during compilation time instead of waiting for runtime to check for JS_ASSERT. r=brendan
git-svn-id: svn://10.0.0.236/trunk@190667 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-21 10:27:50 +00:00
igor%mir2.org
caf466b112 Bug 319719: JS scanner checks for keywords using pregenerated C source
avoiding the cost of atomizing keyword strings. This is an updated version
of the previous rather bad commit to address Makefile issues. r=brendan


git-svn-id: svn://10.0.0.236/trunk@188224 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-26 08:47:51 +00:00
igor%mir2.org
f553d13362 Bug 322772: I added js_EqualStrings which is a faster version of
js_CompareStrings when testing only for string equality. r=brendan


git-svn-id: svn://10.0.0.236/trunk@188223 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-26 08:01:54 +00:00
igor%mir2.org
9e4fecd594 Reverting commit for bug 319719: Makefile changes broke too much builds.
git-svn-id: svn://10.0.0.236/trunk@188012 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-22 21:08:05 +00:00
igor%mir2.org
d7acf1f679 Bug 319719: JS scanner checks for keywords using pregenerated C source
avoiding the cost of atomizing keyword strings. r=brendan


git-svn-id: svn://10.0.0.236/trunk@187990 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-22 01:14:20 +00:00
mrbkap%gmail.com
c52b3336a1 bug 232182: Allow SpiderMonkey to deal with UTF-8 strings (controlled by a define). Patch from Michael Daumling <daumling@adobe.com>. r=shaver
git-svn-id: svn://10.0.0.236/trunk@184170 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-05 01:06:30 +00:00
mrbkap%gmail.com
778d69a5f2 bug 132949: fix some of the more egregious bugs in jsfile.c, this also cleans up some of the style nits, but is nowhere a complete patch. Use jsfile.c at your own risk! rs=shaver
git-svn-id: svn://10.0.0.236/trunk@178611 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-22 17:30:44 +00:00
brendan%mozilla.org
fd99a24062 Add JS_EnumerateResolvedStandardClasses, and fix a few lazy-standard-class-init glitches hindering it (292903, r=shaver, a=me).
git-svn-id: svn://10.0.0.236/trunk@174675 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-16 04:24:03 +00:00
brendan%mozilla.org
3abcebe4b0 Followup patch for bug 293782 etc., to unregress 137000 (r/a=shaver).
git-svn-id: svn://10.0.0.236/trunk@173498 18797224-902f-48f8-a5cc-f745e15eee43
2005-05-17 01:06:35 +00:00
timeless%mozdev.org
7250d36891 Bug 292397 JS_VERSION 130 doesn't build
r=brendan a=asa


git-svn-id: svn://10.0.0.236/trunk@173143 18797224-902f-48f8-a5cc-f745e15eee43
2005-05-06 21:44:32 +00:00
brendan%mozilla.org
fce64ac33d When converting from list to hashtable in js_IndexAtom, arrange to preallocate the table's buckets array to the list length, and set table->nentries (buglet reported by tellme.com folks).
git-svn-id: svn://10.0.0.236/trunk@170168 18797224-902f-48f8-a5cc-f745e15eee43
2005-03-04 18:23:58 +00:00
jst%mozilla.jstenback.com
982e8ae6ca Fixing bug 265174. Quiet down compiler warnings on Linux x86_64. r+sr=brendan@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@167624 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-12 19:56:32 +00:00
brendan%mozilla.org
a8e2a690ad Revamp the GC to fix E4X private data dueling GC bugs, to reduce malloc costs for small-ish objects and functions, and to pave the way for further GC wins (123668, r=shaver, TAKE 2).
git-svn-id: svn://10.0.0.236/trunk@167293 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-05 06:15:03 +00:00
brendan%mozilla.org
4c0635a125 Back out, broke liveconnect at least.
git-svn-id: svn://10.0.0.236/trunk@167288 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-05 03:58:19 +00:00
brendan%mozilla.org
7a816352a4 Revamp the GC to fix E4X private data dueling GC bugs, to reduce malloc costs for small-ish objects and functions, and to pave the way for further GC wins (123668, r=shaver).
git-svn-id: svn://10.0.0.236/trunk@167286 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-05 02:56:36 +00:00
brendan%mozilla.org
036b7c131b E4X, configured off, code-complete.
git-svn-id: svn://10.0.0.236/trunk@165420 18797224-902f-48f8-a5cc-f745e15eee43
2004-11-17 07:43:01 +00:00
brendan%mozilla.org
6746fcd9bd Better XML string exclusion, plus js_default_str, based on codesighs (followup to 246441).
git-svn-id: svn://10.0.0.236/trunk@163246 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-05 16:57:13 +00:00
brendan%mozilla.org
e1d64a36be Initial E4X check-in, configured off (246441, rs=shaver).
git-svn-id: svn://10.0.0.236/trunk@163236 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-05 10:19:07 +00:00
bryner%brianryner.com
b9fee4bf3a Make jsdouble hashing code strict-aliasing safe (bug 247877). r=brendan.
git-svn-id: svn://10.0.0.236/trunk@158258 18797224-902f-48f8-a5cc-f745e15eee43
2004-06-21 17:57:10 +00:00
brendan%mozilla.org
42c8b66573 NARCISSUS ifdefs and related general fixes (r=shaver).
git-svn-id: svn://10.0.0.236/trunk@152659 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-11 07:21:59 +00:00
mkaply%us.ibm.com
e17e819d83 #200144
r=brendan, a=mkaply
Remove XP_OS2 #ifdefs from JS


git-svn-id: svn://10.0.0.236/trunk@149564 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-19 23:07:57 +00:00
gerv%gerv.net
123c4a9492 Bug 205418 - Relicense Spidermonkey (js/src) to MPL/LGPL/GPL. Patch by gerv; r,a=brendan.
git-svn-id: svn://10.0.0.236/trunk@149331 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-15 00:11:16 +00:00
brendan%mozilla.org
f5be31d9a8 Add __noSuchMethod__ handler support, and clean up js_ValueToFunction/js_ReportIsNotDefined error diagnosis hard cases (196097, r=sparky).
git-svn-id: svn://10.0.0.236/trunk@148258 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-22 06:26:03 +00:00
brendan%mozilla.org
2532d3d12a Big dynamic footprint win via script filename caching, plus line number fix for strict/const diags (see http://bugzilla.mozilla.org/attachment.cgi?id=127130&action=view for detailed checkin comments; 208030, r/rs=shaver, r=rginda on the jsd change, r=jst on the dom change).
git-svn-id: svn://10.0.0.236/trunk@145239 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-26 22:37:11 +00:00
seawood%netscape.com
f88d27351d Purge XP_PC.
Bug #74999


git-svn-id: svn://10.0.0.236/trunk@140681 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-04 05:26:58 +00:00