3089 Commits

Author SHA1 Message Date
brendan%mozilla.org
0b54e32cf9 Fix 334807 (r=mrbkap).
git-svn-id: svn://10.0.0.236/trunk@195050 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-21 11:08:18 +00:00
neil%parkwaycc.co.uk
98c18c2636 --disable-xpcom-fastload breaks JS component loader b=334849 r=shaver sr=brendan
git-svn-id: svn://10.0.0.236/trunk@195045 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-21 09:46:00 +00:00
brendan%mozilla.org
370c142728 Revert to comment out the XXXMLM mystery assert.
git-svn-id: svn://10.0.0.236/trunk@195042 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-21 07:47:06 +00:00
brendan%mozilla.org
13dcfd5a06 Remove non-standard and not-for-public-use With (304376 followup).
git-svn-id: svn://10.0.0.236/trunk@195041 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-21 07:14:29 +00:00
igor%mir2.org
7630836c1b Bug 312238: gcBytes and gcPrivateBytes from JSRuntime now means the total
amount of memory allocated by GC arenas, not the size of allocated things
which does not include the memory taken by free GC cells. This simplified
accounting and allows to implement lock-less allocation of GC things.


git-svn-id: svn://10.0.0.236/trunk@194971 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-20 15:33:35 +00:00
brendan%mozilla.org
f5dd15b42e Final (I hope) followup patch (304376, r=mrbkap).
git-svn-id: svn://10.0.0.236/trunk@194953 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-20 05:18:09 +00:00
brendan%mozilla.org
5025bd9f59 Fix brain-damaged code from last checkin (r=mrbkap).
git-svn-id: svn://10.0.0.236/trunk@194747 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-20 01:17:06 +00:00
brendan%mozilla.org
d5fb083e40 Second half of fix for 304376 (r=mrbkap).
git-svn-id: svn://10.0.0.236/trunk@194732 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-19 23:36:16 +00:00
dbaron%dbaron.org
60650181d5 Call SetName so we don't have an XPCCallContext in a bad state. b=334104 r=dbradley sr=jst
git-svn-id: svn://10.0.0.236/trunk@194718 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-19 22:00:31 +00:00
gavin%gavinsharp.com
4961bafdf6 Bug 334180: backport pldhash -> jsdhash of win32 fastcall support, rev. 1, patch by bsmedberg, r=brendan
git-svn-id: svn://10.0.0.236/trunk@194701 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-19 20:34:56 +00:00
brendan%mozilla.org
344efbb419 Oops.
git-svn-id: svn://10.0.0.236/trunk@194647 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-19 00:57:03 +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
dbaron%dbaron.org
6cdacfb709 Make JSDHashTable/PLDHashTable assert when ops or enumeration callbacks mutate the table. b=334180 r=brendan
git-svn-id: svn://10.0.0.236/trunk@194614 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-18 18:30:50 +00:00
igor%mir2.org
2094d1c4fb Bug 331598: The tail recursion elimination in MarkGCThingChildren is simplified.r=brendan
git-svn-id: svn://10.0.0.236/trunk@194584 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-18 07:25:37 +00:00
brendan%mozilla.org
82f058c240 Random trailing space search.
git-svn-id: svn://10.0.0.236/trunk@194579 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-18 04:41:24 +00:00
brendan%mozilla.org
b159ef957a Patch from Feng Qian <feng.qian.moz@gmail.com> with assist from Igor, based on ancient patch from me, to factor per-thread state from JSContext into JSThread to support per-thread lock-free GC allocation (312238, r=me).
git-svn-id: svn://10.0.0.236/trunk@194574 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-18 01:41:54 +00:00
mrbkap%gmail.com
7027363df3 Fix use of uninitialized fp.
git-svn-id: svn://10.0.0.236/trunk@194573 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-18 01:34:38 +00:00
mrbkap%gmail.com
9e514977cc Fix off-by-one error while parsing control escape sequences. bug 334158, patch by Andreas <mqmq87@web.de>, r=mrbkap
git-svn-id: svn://10.0.0.236/trunk@194567 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-18 00:10:27 +00:00
mrbkap%gmail.com
fc4c9589f6 Split out construction code from the interpreter proper and share it between the js_Interpret and a new Narcissus-only function on Function.prototype (__applyConstructor__). This allows Narcissus to call a native constructor with an array of arguments, like Function.prototype.apply. bug 331429, r=brendan
git-svn-id: svn://10.0.0.236/trunk@194557 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-17 23:36:31 +00:00
dbaron%dbaron.org
44edb56bed Fix mismatched allocators. b=334162 r+sr=jst
git-svn-id: svn://10.0.0.236/trunk@194550 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-17 23:03:51 +00:00
brendan%mozilla.org
d2a185a15e Fix int constant precedent (333541, r=mrbkap).
git-svn-id: svn://10.0.0.236/trunk@194471 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-16 05:10:10 +00:00
mrbkap%gmail.com
44604ebc68 -- Allow the DOM script object factory to turn XPConnect return values into proper nsIException objects.
-- Make nsDOMClassInfo::ThrowJSException never throw null as an exception.
-- Make XPCException::ToString grab the description of the result as well as the name.

r+sr=jst


git-svn-id: svn://10.0.0.236/trunk@194440 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-15 00:37:51 +00:00
jst%mozilla.jstenback.com
197612f082 Fixing bug 321299. Make sure XPConnect wrappers get properly reparented when moving nodes from document to document. r=mrbkap@gmail.com, sr=bzbarsky@mit.edu
git-svn-id: svn://10.0.0.236/trunk@194099 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-11 03:49:44 +00:00
mrbkap%gmail.com
bf99b4ceb9 Try fixing bug 326497 again, this time allowing DOM constructors to be wrapped in cross-domain settings, since some of them can be used (e.g., Location). r+sr=jst for the DOM bits, r=brendan sr=shaver for the XPConnect bits.
git-svn-id: svn://10.0.0.236/trunk@194048 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-10 21:40:28 +00:00
brendan%mozilla.org
9818786b46 Duh... (333398, r=mrbkap).
git-svn-id: svn://10.0.0.236/trunk@193979 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-10 05:35:12 +00:00
silver%warwickcompsoc.co.uk
a16f07b7df Bug 332514 - Don't allow null argument to Sandbox constructor. r=brendan sr=jst
git-svn-id: svn://10.0.0.236/trunk@193947 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-08 22:04:40 +00:00
bclary%bclary.com
5d717bdeb0 Update JS_GetImplementationVersion() date string (bug 67111, r=brendan)
git-svn-id: svn://10.0.0.236/trunk@193817 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-07 16:04:45 +00:00
brendan%mozilla.org
67fecc4afc Fix thread- and GC-safety bugs in js_GetAnyName and its evil twin (331782, 325526, r=mrbkap).
git-svn-id: svn://10.0.0.236/trunk@193734 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-06 20:25:18 +00:00
brendan%mozilla.org
714b7b383f Fix uneval on E4X objects (327534, r=mrbkap).
git-svn-id: svn://10.0.0.236/trunk@193732 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-06 20:16:06 +00:00
gavin%gavinsharp.com
3c840b3830 Bug 314529: E4X: delete operator misses some descendants - e4x/Types/9.1.1.3.js, patch by Erik Fabert <jerfa@email.it>, r=brendan
git-svn-id: svn://10.0.0.236/trunk@193688 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-06 13:04:54 +00:00
gavin%gavinsharp.com
79e150c396 Bug 330319: Remove duplicate string constants in jsnum.c, patch by Erik Fabert <jerfa@email.it>, r=brendan
git-svn-id: svn://10.0.0.236/trunk@193686 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-06 13:02:03 +00:00
gavin%gavinsharp.com
7b27780f2a Bug 331203: Result of Math.pow(NaN, 0) should be 1, patch by Erik Fabert <jerfa@email.it>, r=brendan
git-svn-id: svn://10.0.0.236/trunk@193662 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-06 04:49:20 +00:00
dbaron%dbaron.org
18873ddbcb Root across calls to JS_SetElement and JS_SetProperty. b=331667 r=jst,dbradley sr=brendan
git-svn-id: svn://10.0.0.236/trunk@193627 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-05 21:34:16 +00:00
dbaron%dbaron.org
9911a9b756 Remove uses of MOZ_DECL_CTOR_COUNTER, which is always defined to nothing. b=332745 rs=roc,bzbarsky
git-svn-id: svn://10.0.0.236/trunk@193572 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-05 00:00:44 +00:00
timeless%mozdev.org
4e4c7e0a1a Bug 332689 js.mak clean targets fail to clean up pch's
also fixes up a few glitches in the jskwgen work and makes make clean zap its generated file
the clean target for js now cleans fdlibm+jskwgen too
the clean target for jsshell now cleans js too


git-svn-id: svn://10.0.0.236/trunk@193513 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-04 15:50:15 +00:00
timeless%mozdev.org
2d35152c07 Bug 328479 Building the jsshell on VC++ 6 fails because jsautokw.h is missing
spidermonkey only fix for nmake. not part of any build that works since this hasn't worked in a long time.


git-svn-id: svn://10.0.0.236/trunk@193500 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-04 13:09:50 +00:00
mrbkap%gmail.com
c950452cb1 Backing out my changes from bug 326497 to fix tinderbox orange.
git-svn-id: svn://10.0.0.236/trunk@193447 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-03 21:18:41 +00:00
mrbkap%gmail.com
c7ea544607 Don't ignore any errors returned by PostCreate. Also, don't override an exception if one is already reported, as the further away from the original problem we get, the less precise the error message will be. bug 326497, r=brendan sr=shaver
git-svn-id: svn://10.0.0.236/trunk@193419 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-03 18:10:38 +00:00
bzbarsky%mit.edu
e1ba63aa5f Create a powerless non-principal and start using it. Bug 326506, r=mrbkap,
sr=dveditz


git-svn-id: svn://10.0.0.236/trunk@193399 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-02 20:58:26 +00:00
brendan%mozilla.org
f7c113ea4f Undepend regexp source string so error message formatted arg refs into it work (332472, r=mrbkap).
git-svn-id: svn://10.0.0.236/trunk@193397 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-02 19:08:47 +00:00
brendan%mozilla.org
3c9d53900e Fix double-destroy on js_SetLastIndex failure in js_NewRegExpObject (332415, r=mrbkap).
git-svn-id: svn://10.0.0.236/trunk@193360 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-01 00:01:20 +00:00
brendan%mozilla.org
a7d74b0744 Don't optimize special (eval and debugger) global frames (332199, r=mrbkap).
git-svn-id: svn://10.0.0.236/trunk@193294 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-31 01:32:19 +00:00
brendan%mozilla.org
5573988f3e Fix 331787 by atomizing declared function object early (r=mrbkap).
git-svn-id: svn://10.0.0.236/trunk@193293 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-31 01:28:54 +00:00
darin%meer.net
70deb5f58d fixes bug 328925 "Replace NS_WARN_IF_FALSE with NS_ASSERTION (where appropriate)" r=dbaron
git-svn-id: svn://10.0.0.236/trunk@193272 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-30 18:40:56 +00:00
igor%mir2.org
2cb61dd30f Bug 331770: Extending JS_GCMETER to include average free list density and free list recycle/new allocation ratio.
git-svn-id: svn://10.0.0.236/trunk@193125 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-28 08:41:40 +00:00
dbaron%dbaron.org
ab4adb429c Root the new string across the call to js_NewObject, etc. b=331793 r=brendan
git-svn-id: svn://10.0.0.236/trunk@193084 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-27 23:45:56 +00:00
dbaron%dbaron.org
de533b785a Root the result of js_NewXML across js_GetXMLObject. b=331786 r=brendan
git-svn-id: svn://10.0.0.236/trunk@193083 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-27 23:43:40 +00:00
brendan%mozilla.org
bd271ab2d7 MIPS little-endian porting fix from Ian Jackson and Thiemo Seufer, via Mike Hommey <mh@glandium.org> (331820, r=me).
git-svn-id: svn://10.0.0.236/trunk@193029 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-27 05:55:15 +00:00
brendan%mozilla.org
8cf326962c Home sp (and pc) before allocating call-outs (331719, r=mrbkap).
git-svn-id: svn://10.0.0.236/trunk@193002 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-26 03:51:47 +00:00
igor%mir2.org
e9732b9053 Bug 331456: Cache of deflated string bytes is per runtime now. To preserve
API compatibility JS_GetStringBytes(JSString *str) calls newly introduced
js_GetGCStringRuntime(JSString *str) to extract JSRuntime* instance based
on the layout of GC structures. r=brendan


git-svn-id: svn://10.0.0.236/trunk@192999 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-25 22:55:00 +00:00