10722 Commits

Author SHA1 Message Date
sayrer%gmail.com
7de407694a Bug 409803. gcc (4.1 only) zealously avoids inlining at -Os. Patch by Dan Witte. r=ted.mielczarek
git-svn-id: svn://10.0.0.236/trunk@247926 18797224-902f-48f8-a5cc-f745e15eee43
2008-03-16 02:48:58 +00:00
bclary%bclary.com
47b5605c57 JavaScript Tests - modify test to catch allocation size overflow, bug 422348
git-svn-id: svn://10.0.0.236/trunk@247908 18797224-902f-48f8-a5cc-f745e15eee43
2008-03-15 11:56:17 +00:00
crowder%fiverocks.com
c9fb1f54e7 Bug 422885: uninitialized memory-read in XPCWrapper::AddProperty, r/sr=mrbkap, a=:luser
git-svn-id: svn://10.0.0.236/trunk@247820 18797224-902f-48f8-a5cc-f745e15eee43
2008-03-14 14:44:27 +00:00
nboyd%atg.com
50f6451152 Fix spelling in comment.
git-svn-id: svn://10.0.0.236/trunk@247789 18797224-902f-48f8-a5cc-f745e15eee43
2008-03-14 00:52:36 +00:00
igor%mir2.org
ffd22acc3a bug=422432 r=brenda,jag a1.9=blocking1.9
The local free lists for doubles now restricted to 32/64 entries, not 8, to minimize locking penaltties.


git-svn-id: svn://10.0.0.236/trunk@247766 18797224-902f-48f8-a5cc-f745e15eee43
2008-03-13 20:07:29 +00:00
nboyd%atg.com
9bb2f94db2 Fix many warnings, mostly adding @Override, a few Class<?>.
git-svn-id: svn://10.0.0.236/trunk@247765 18797224-902f-48f8-a5cc-f745e15eee43
2008-03-13 20:00:41 +00:00
bclary%bclary.com
aceb0bb0b0 JavaScript Tests - update tests due to changes on trunk for overflow reporting, bug 422348
git-svn-id: svn://10.0.0.236/trunk@247756 18797224-902f-48f8-a5cc-f745e15eee43
2008-03-13 18:46:11 +00:00
sayrer%gmail.com
7c849bf38a Bug 420906. support for custom options for jsinterp.c when compiling the browser. Patch by Ted Mielczarek. r=bsmedberg
git-svn-id: svn://10.0.0.236/trunk@247746 18797224-902f-48f8-a5cc-f745e15eee43
2008-03-13 18:06:16 +00:00
igor%mir2.org
988d79a946 bug 421274: backing out again due to crashes on 64 bit Linux.
git-svn-id: svn://10.0.0.236/trunk@247745 18797224-902f-48f8-a5cc-f745e15eee43
2008-03-13 18:03:02 +00:00
igor%mir2.org
2c80a90927 bug=421274 follow up to fix issues with 64 bit
git-svn-id: svn://10.0.0.236/trunk@247741 18797224-902f-48f8-a5cc-f745e15eee43
2008-03-13 17:29:40 +00:00
brendan%mozilla.org
5ac9fd0dbb Fix ASSERT_VALID_PROPERTY_CACHE_HIT bustage (NPOTB).
git-svn-id: svn://10.0.0.236/trunk@247718 18797224-902f-48f8-a5cc-f745e15eee43
2008-03-13 08:00:20 +00:00
igor%mir2.org
3e33b57170 bug=421274 r=brendan a1.9=mtschrep
eliminating SAVE_SP_AND_PC and friends from the interpreter loop


git-svn-id: svn://10.0.0.236/trunk@247716 18797224-902f-48f8-a5cc-f745e15eee43
2008-03-13 06:48:23 +00:00
igor%mir2.org
45ee880fc5 backing out bug 421274
git-svn-id: svn://10.0.0.236/trunk@247715 18797224-902f-48f8-a5cc-f745e15eee43
2008-03-13 06:23:09 +00:00
igor%mir2.org
22a66cf4d4 bug=421274 r=brendan a1.9=mtschrep
eliminating SAVE_SP_AND_PC and friends from the interpreter loop


git-svn-id: svn://10.0.0.236/trunk@247714 18797224-902f-48f8-a5cc-f745e15eee43
2008-03-13 05:52:54 +00:00
igor%mir2.org
bd9f77b978 bug=422348 r,a1.9=shaver
proper overflow error reporting


git-svn-id: svn://10.0.0.236/trunk@247697 18797224-902f-48f8-a5cc-f745e15eee43
2008-03-12 23:07:47 +00:00
igor%mir2.org
6de91a6791 bug=421806 r=brendan a1.9=blockin1.9
fixing decompiler regressions with interpreter stack modeling


git-svn-id: svn://10.0.0.236/trunk@247695 18797224-902f-48f8-a5cc-f745e15eee43
2008-03-12 23:03:29 +00:00
reed%reedloden.com
7eddaab1f2 Bug 422185 - "jsgc.obj : error LNK2001: unresolved external symbol "int __cdecl posix_memalign(void * *,unsigned int,unsigned int)" (?posix_memalign@@YAHPAPAXII@Z)" (posix_memalign needs to be extern "C" when compiling with a C++ compiler) [p=benjamin@smedbergs.us (Benjamin Smedberg [bsmedberg]) r=brendan a1.9=damons]
git-svn-id: svn://10.0.0.236/trunk@247687 18797224-902f-48f8-a5cc-f745e15eee43
2008-03-12 22:32:54 +00:00
mattwillis%gmail.com
b92b4f76da Bug 422161 - Fix JS strict errors in *.jsm modules. r and rs=gavin, a1.9+=damons
git-svn-id: svn://10.0.0.236/trunk@247682 18797224-902f-48f8-a5cc-f745e15eee43
2008-03-12 21:57:00 +00:00
nboyd%atg.com
526365f5be Add test
git-svn-id: svn://10.0.0.236/trunk@247675 18797224-902f-48f8-a5cc-f745e15eee43
2008-03-12 21:09:00 +00:00
nboyd%atg.com
137910fcf4 Patch from Dominic Cooney:
Some users are getting bitten by Xerces' DocumentBuilderImpl
throwing UnsupportedOperationException for reset, which Rhino E4X
calls when it is returning the document builder to its (wading) pool.
I've attached a patch that suppresses the
UnsupportedOperationException in returnDocumentBuilderToPool and
leaves the pool empty if reset throws UnsupportedOperationException.


git-svn-id: svn://10.0.0.236/trunk@247665 18797224-902f-48f8-a5cc-f745e15eee43
2008-03-12 19:05:06 +00:00
nboyd%atg.com
706695df30 Begin 1.7R2 work
git-svn-id: svn://10.0.0.236/trunk@247664 18797224-902f-48f8-a5cc-f745e15eee43
2008-03-12 19:04:03 +00:00
bclary%bclary.com
90bbc2ca73 JavaScript Tests - update known failures to account for improved CAPS messages in bug 246699, not part of the build
git-svn-id: svn://10.0.0.236/trunk@247660 18797224-902f-48f8-a5cc-f745e15eee43
2008-03-12 18:12:09 +00:00
bclary%bclary.com
62e991a75e JavaScript Tests - update known failures for mac debug browser on js1_5/Array/regress-350256-03.js, bug 350256, not part of the build
git-svn-id: svn://10.0.0.236/trunk@247653 18797224-902f-48f8-a5cc-f745e15eee43
2008-03-12 17:21:54 +00:00
igor%mir2.org
9be5670c27 bug=420904 support for custom options for jsinterp.c in js shell build scripts. This is outside of tree.
git-svn-id: svn://10.0.0.236/trunk@247638 18797224-902f-48f8-a5cc-f745e15eee43
2008-03-12 14:36:06 +00:00
nboyd%atg.com
54e009f4f7 Fix warnings, mainly @Override and generics.
git-svn-id: svn://10.0.0.236/trunk@247632 18797224-902f-48f8-a5cc-f745e15eee43
2008-03-12 12:47:25 +00:00
brendan%mozilla.org
46a89fcd1a Fix indentation nit
git-svn-id: svn://10.0.0.236/trunk@247606 18797224-902f-48f8-a5cc-f745e15eee43
2008-03-12 07:05:30 +00:00
shaver%mozilla.org
e0329e27a7 Bug 422286: fix accounting of array length when slicing dense arrays.
r=mrbkap, a=mconnor.


git-svn-id: svn://10.0.0.236/trunk@247605 18797224-902f-48f8-a5cc-f745e15eee43
2008-03-12 06:50:55 +00:00
bclary%bclary.com
ff980df0be JavaScript Tests - fix TimeWithinDay for negative arguments, bug 264727
git-svn-id: svn://10.0.0.236/trunk@247579 18797224-902f-48f8-a5cc-f745e15eee43
2008-03-11 22:18:23 +00:00
reed%reedloden.com
9d0d6d838e Bug 418406 - "Make network error constants accessible via Components.results" [p=trev.moz@adblockplus.org (Wladimir Palant) r=biesi sr=sicking a1.9=damons]
git-svn-id: svn://10.0.0.236/trunk@247533 18797224-902f-48f8-a5cc-f745e15eee43
2008-03-11 08:14:04 +00:00
reed%reedloden.com
96bf80ec88 Bug 421947 - "More C++ casts required for Windows only, especially overloaded pow() and log10()" [p=benjamin@smedbergs.us (Benjamin Smedberg [bsmedberg]) r=crowder a1.9=damons]
git-svn-id: svn://10.0.0.236/trunk@247529 18797224-902f-48f8-a5cc-f745e15eee43
2008-03-11 08:09:41 +00:00
timeless%mozdev.org
4b89f5e047 Bug 421303 Crash [@ jsds_ScriptHookProc]
r=caillon a=dsicore

If we reach ~jsdService, that means our client doesn't care about us, so we can
(and should) drop all references to any callbacks (if they cared, they'd have
kept us alive!*).

I think jsdService::Off should clear all the hooks, the strange magic of not
clearing it isn't really a great idea. So for Off, we'll now clear the
ScriptHook too (consumers who use off should really drop any references they
have to our objects...). I'm still on the fence on this point, I suspect we can
actually move it from ::Off to ~jsdService (it must be cleared at some point,
otherwise if jsd_xpc's library manages to get unloaded, the function pointer
would be invalid, which would be *BAD*).

jsds_NotifyPendingDeadScripts needs to clear gDeadScripts whether or not
there's a service or hooks, so it does. Because it's a static callback and
because of the scary way GC works, I'd rather ensure (deathgrip) that jsds is
available (and consistent!) for the duration of the function call. The code
already handles the lack of a hook, so there's no reason to do magical
returns....

The real problem which mayhemer found was that jsdService::Off was returning
early (failure) because gGCStatus wasn't JSGC_END when called from ~jsdService
from JS_GC from the cyclecollector, so we make sure that ~jsdService forces
::Off to act as if it is JSGC_END (after ensuring that there are no callbacks
available).

* a pure javascript (xpcom component, not DOM hosted!) version of a jsdService
consumer means that jsdService will need to talk to the CycleCollector
eventually (this is another bug for the future).


git-svn-id: svn://10.0.0.236/trunk@247513 18797224-902f-48f8-a5cc-f745e15eee43
2008-03-11 00:13:48 +00:00
sayrer%gmail.com
0b99ea4607 Bug 421984. Build with -fstrict-aliasing on GCC platforms. r/a=shaver
git-svn-id: svn://10.0.0.236/trunk@247511 18797224-902f-48f8-a5cc-f745e15eee43
2008-03-11 00:04:47 +00:00
timeless%mozdev.org
8d4d00a220 Bug 421774 consolidate jsd static variables into main
r=shaver


git-svn-id: svn://10.0.0.236/trunk@247507 18797224-902f-48f8-a5cc-f745e15eee43
2008-03-10 23:11:36 +00:00
bclary%bclary.com
1e75187042 JavaScript Tests - update test to catch exception in browser tests, bug 420612
git-svn-id: svn://10.0.0.236/trunk@247499 18797224-902f-48f8-a5cc-f745e15eee43
2008-03-10 21:24:35 +00:00
igor%mir2.org
22af3421c7 bug=419632 r=brendan a1.9=blockin1.9
avoiding weak roots for doubles


git-svn-id: svn://10.0.0.236/trunk@247492 18797224-902f-48f8-a5cc-f745e15eee43
2008-03-10 19:27:44 +00:00
nboyd%atg.com
340fc393a1 Add @Override
git-svn-id: svn://10.0.0.236/trunk@247478 18797224-902f-48f8-a5cc-f745e15eee43
2008-03-10 17:06:10 +00:00
gavin%gavinsharp.com
96b1ef265f Back out the patch from bug 420642 because it broke gmail (bug 421571)
git-svn-id: svn://10.0.0.236/trunk@247470 18797224-902f-48f8-a5cc-f745e15eee43
2008-03-10 08:28:51 +00:00
bclary%bclary.com
fe2285d3e7 JavaScript Tests - regression tests for bug 418641, by Igor Bukanov
git-svn-id: svn://10.0.0.236/trunk@247446 18797224-902f-48f8-a5cc-f745e15eee43
2008-03-09 21:04:14 +00:00
bclary%bclary.com
0fcbad3bd0 JavaScript Tests - regression test for bug 420087, by Mike Shaver
git-svn-id: svn://10.0.0.236/trunk@247445 18797224-902f-48f8-a5cc-f745e15eee43
2008-03-09 20:49:13 +00:00
bclary%bclary.com
6d1edfd7b2 JavaScript Tests - regression test for bug 420399, by Jesse Ruderman
git-svn-id: svn://10.0.0.236/trunk@247444 18797224-902f-48f8-a5cc-f745e15eee43
2008-03-09 20:32:33 +00:00
bclary%bclary.com
255842c373 JavaScript Tests - regression tests for bug 420610, by Jesse Ruderman
git-svn-id: svn://10.0.0.236/trunk@247443 18797224-902f-48f8-a5cc-f745e15eee43
2008-03-09 20:15:14 +00:00
bclary%bclary.com
be0d2f4cf4 JavaScript Tests - regression test for bug 420612, by Jesse Ruderman
git-svn-id: svn://10.0.0.236/trunk@247442 18797224-902f-48f8-a5cc-f745e15eee43
2008-03-09 20:09:09 +00:00
bclary%bclary.com
7fe02d9f28 JavaScript Tests - regression test for bug 421325, by Brian Crowder
git-svn-id: svn://10.0.0.236/trunk@247441 18797224-902f-48f8-a5cc-f745e15eee43
2008-03-09 20:00:57 +00:00
bclary%bclary.com
3451a7c29a JavaScript Tests - remove timezone dependencies for toLocaleFormat win32 tests, no bug, not part of the build
git-svn-id: svn://10.0.0.236/trunk@247436 18797224-902f-48f8-a5cc-f745e15eee43
2008-03-09 19:49:14 +00:00
timeless%mozdev.org
0ad7c819eb Bug 421231 js.c needs to call JSDB_TermDebugger
r=brendan NPOTB


git-svn-id: svn://10.0.0.236/trunk@247428 18797224-902f-48f8-a5cc-f745e15eee43
2008-03-09 10:05:29 +00:00
brendan%mozilla.org
e71ceeac76 Fix from Sebastian Redl to compile under GCC 4.2 (r=me, a=shaver).
git-svn-id: svn://10.0.0.236/trunk@247421 18797224-902f-48f8-a5cc-f745e15eee43
2008-03-09 04:49:46 +00:00
crowder%fiverocks.com
1aa6b5580f Bug 421325: array_join_sub does not handle holes in dense arrays correctly, r/a=shaver
git-svn-id: svn://10.0.0.236/trunk@247345 18797224-902f-48f8-a5cc-f745e15eee43
2008-03-08 00:16:51 +00:00
jwalden%mit.edu
ab041effa3 Bug 352044 - Issues with Unicode escape sequences in JavaScript source code; Unicode escapes not part of identifiers were being treated as their equivalent CVs, and non-identifier Unicode escapes within identifiers were being treated as their CVs (simultaneously starting a new token). acid3++ r=mrbkap, a=damons
git-svn-id: svn://10.0.0.236/trunk@247338 18797224-902f-48f8-a5cc-f745e15eee43
2008-03-07 23:28:55 +00:00
nboyd%atg.com
8dd5a2bca3 Add reporting of location of doctest failure.
git-svn-id: svn://10.0.0.236/trunk@247328 18797224-902f-48f8-a5cc-f745e15eee43
2008-03-07 20:43:32 +00:00
bclary%bclary.com
ec6e625946 JavaScript Tests - update known failures, bug 421515
git-svn-id: svn://10.0.0.236/trunk@247327 18797224-902f-48f8-a5cc-f745e15eee43
2008-03-07 20:33:18 +00:00