igor%mir2.org
3482078f3d
Bug 386885: JSAtom.number is removed in favour of using atoms itself for hashing. r=brendan
...
git-svn-id: svn://10.0.0.236/trunk@229690 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-11 09:25:45 +00:00
neil%parkwaycc.co.uk
998c53a562
Followup to bug 348748 to fix the alignment of trailing backslashes in macros
...
[xxx_cast<foo*>(bar) is three characters shorter than NS_XXX_CAST(foo*, bar)]
git-svn-id: svn://10.0.0.236/trunk@229689 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-11 08:46:49 +00:00
bzbarsky%mit.edu
4f868cfbe0
Clean up the XDR properly even if JS_XDRScript fails. In particular, don't
...
double-free things. Bug 387572, r+sr=brendan
git-svn-id: svn://10.0.0.236/trunk@229661 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-11 03:10:43 +00:00
bzbarsky%mit.edu
f4d44ca58c
Relanding bug 326777, r=bsmedberg, sr=jst
...
git-svn-id: svn://10.0.0.236/trunk@229650 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-11 00:57:17 +00:00
mrbkap%gmail.com
6403b5f449
Create exceptions with the right parent. bug 387390, r=jst sr=brendan
...
git-svn-id: svn://10.0.0.236/trunk@229648 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-11 00:37:03 +00:00
mrbkap%gmail.com
a433d999af
Ensure that we have a valid scope chain at all times so C++ callers can create objects in the right scope. bug 387591, r=brendan
...
git-svn-id: svn://10.0.0.236/trunk@229647 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-11 00:29:25 +00:00
mrbkap%gmail.com
b29de61e27
Avoid asserting for user-controlled thing (through __proto__ setting). bug 387182, r+sr=jst
...
git-svn-id: svn://10.0.0.236/trunk@229646 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-11 00:27:57 +00:00
brendan%mozilla.org
f54c1b6d4c
to{Source,{,Locale}String} are not generic (387501, r=mrbkap).
...
git-svn-id: svn://10.0.0.236/trunk@229590 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-10 05:07:20 +00:00
bzbarsky%mit.edu
eb3f2e8e52
Backing out to fix red
...
git-svn-id: svn://10.0.0.236/trunk@229585 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-10 04:07:45 +00:00
bzbarsky%mit.edu
9d50498a31
Make sure that we push a null JSContext on the current thread's XPConnect stack
...
before processing events. Bug 326777, r=bsmedberg, sr=jst
git-svn-id: svn://10.0.0.236/trunk@229584 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-10 03:48:07 +00:00
mrbkap%gmail.com
f2845a4615
Attempt to fix leaks.
...
git-svn-id: svn://10.0.0.236/trunk@229580 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-10 00:24:16 +00:00
mrbkap%gmail.com
373ce19558
Back out this change to hopefully fix the rest of the regressions test failures (from bug 386695).
...
git-svn-id: svn://10.0.0.236/trunk@229577 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-09 23:34:58 +00:00
mrbkap%gmail.com
b8488a84f9
Associate XPCWrappedNativeScopes with XPCContexts, like the DOM does with windows and contexts, so that we can push a context that's allowed to actually call XPCWrappedJS functions. bug 352791, r=jst sr=brendan
...
git-svn-id: svn://10.0.0.236/trunk@229572 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-09 21:51:57 +00:00
mrbkap%gmail.com
ad5b7ef921
Don't create exceptions using the global object as the parent, since that's bogus, use the scope chain instead. bug 386695, r+sr=jst
...
git-svn-id: svn://10.0.0.236/trunk@229571 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-09 21:46:18 +00:00
igor%mir2.org
0ec23405cf
Bug 385729: objects and regexps are stored in separated tables in JSScript. r=brendan,mrbkap
...
git-svn-id: svn://10.0.0.236/trunk@229506 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-08 09:03:37 +00:00
jwalden%mit.edu
dda6ff3c99
Bug 348748 - Replace all instances of NS_STATIC_CAST and friends with C++ casts (and simultaneously bitrot nearly every patch in existence). r=bsmedberg on the script that did this. Tune in next time for Macro Wars: Episode II: Attack on the LL_* Macros.
...
git-svn-id: svn://10.0.0.236/trunk@229504 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-08 07:08:56 +00:00
igor%mir2.org
39a6552069
Bug 387229: now DUMP_SCOPE_STATS includes js_scope_stats into the log. r=brendan
...
git-svn-id: svn://10.0.0.236/trunk@229491 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-07 21:55:29 +00:00
dbaron%dbaron.org
601e3d1073
Fix bogus trace names. b=387223 r=brendan
...
git-svn-id: svn://10.0.0.236/trunk@229480 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-07 07:30:58 +00:00
mrbkap%gmail.com
8684273291
Allow chrome files to touch implicit XPCNativeWrappers. bug 387084, r+sr=jst
...
git-svn-id: svn://10.0.0.236/trunk@229461 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-07 00:52:44 +00:00
jwatt%jwatt.org
22b30400c4
Fixing bug 317304. Implement weak references for JavaScript. Patch by Alex Fritze <alex@croczilla.com>. r+sr=shaver@mozilla.org
...
git-svn-id: svn://10.0.0.236/trunk@229447 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-06 20:13:14 +00:00
brendan%mozilla.org
eb6f94c59d
Fix degenerate unsigned (enum) comparisons (357016, r=igor).
...
git-svn-id: svn://10.0.0.236/trunk@229397 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-05 23:25:27 +00:00
crowder%fiverocks.com
38b3370b46
Bug 357016: changing this back to (void *) for now to fix burning tree
...
git-svn-id: svn://10.0.0.236/trunk@229379 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-05 20:54:44 +00:00
crowder%fiverocks.com
f63d05ac86
Bug 357016: fixing brendan's nit from comment 23
...
git-svn-id: svn://10.0.0.236/trunk@229376 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-05 20:41:59 +00:00
crowder%fiverocks.com
2e9c5abf21
Bug 357016: spidermonkey should be buildable by a C++ compiler, patch by
...
crowder/Jason Orendorff, r=brendan
git-svn-id: svn://10.0.0.236/trunk@229375 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-05 20:37:48 +00:00
mrbkap%gmail.com
88e2ea3574
Ensure that accesses to implicit XPCNativeWrappers are actually legal. bug 384750, r+sr=jst
...
git-svn-id: svn://10.0.0.236/trunk@229373 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-05 20:13:43 +00:00
mrbkap%gmail.com
03d0334d2e
Ensure that accesses to implicit XPCNativeWrappers are actually legal. bug 384750, r+sr=jst
...
git-svn-id: svn://10.0.0.236/trunk@229372 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-05 20:01:12 +00:00
dbaron%dbaron.org
32fa5c05a5
Put comment in the right place. b=180380
...
git-svn-id: svn://10.0.0.236/trunk@229279 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-03 21:31:02 +00:00
mrbkap%gmail.com
acef291377
Backing out these changes to fix tinderbox orange.
...
git-svn-id: svn://10.0.0.236/trunk@229213 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-03 01:12:41 +00:00
mrbkap%gmail.com
f8b0c8fc2e
Ensure that accesses to implicit XPCNativeWrappers are actually legal. bug 384750, r+sr=jst
...
git-svn-id: svn://10.0.0.236/trunk@229201 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-02 23:39:41 +00:00
brendan%mozilla.org
a7527febde
Fix redundant statement and out-of-date comment.
...
git-svn-id: svn://10.0.0.236/trunk@229188 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-02 21:06:52 +00:00
igor%mir2.org
2283248466
Bug 349326: for-in loop now always closes iterator objects. r=brendan
...
git-svn-id: svn://10.0.0.236/trunk@229141 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-02 12:13:27 +00:00
timeless%mozdev.org
8d97fd0e4c
Bug 385765 [@ jsdASObserver::Observe] You can't dereference a NULL nsCOMPtr with operator->()
...
r=dveditz sr=dveditz
git-svn-id: svn://10.0.0.236/trunk@229103 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-01 19:25:10 +00:00
sayrer%gmail.com
692533e675
Bug 180380. nsXPCComponents object and its wrapper leaked at shutdown. Patch by David Baron, David Bradley, and Robert Sayre. r=jst/bzbarsky, sr=dbaron
...
git-svn-id: svn://10.0.0.236/trunk@229084 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-30 23:00:09 +00:00
dbaron%dbaron.org
f691f7f952
Suspect all native wrappers during cycle collection (last part, rest already done by Graydon). b=368869 r=graydon sr=jst
...
git-svn-id: svn://10.0.0.236/trunk@229030 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-30 03:03:30 +00:00
dbaron%dbaron.org
4e324aaf93
Make wrapped native debug dump log the native that is wrapped. b=385549 r+sr=jst
...
git-svn-id: svn://10.0.0.236/trunk@229029 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-30 03:02:15 +00:00
nboyd%atg.com
39baead261
See bug 382340. Additional patch from Hannes Wallnoefer:
...
The varargs patch does not handle the case where a varargs method is called
with a java array. For example, the following code returns a List containing a
string array as single element, instead of a List containing all the strings in
the array:
java.util.Arrays.asList(java.util.TimeZone.getAvailableIDs());
git-svn-id: svn://10.0.0.236/trunk@228931 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-28 12:52:40 +00:00
jst%mozilla.org
247f207c4f
Fixing bug 380474. Use the inner object when looking up methods and adding event listeners. r=mrbkap@mozilla.org, sr=brendan@mozilla.org
...
git-svn-id: svn://10.0.0.236/trunk@228911 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-28 00:28:02 +00:00
mrbkap%gmail.com
93a7020057
Skip initial holes when computing the start value of reduce(Right). bug 386030, r=brendan
...
git-svn-id: svn://10.0.0.236/trunk@228909 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-28 00:04:49 +00:00
brendan%mozilla.org
6f3cc7032c
Added push benchmark from Gabriel Sjoberg <gabrielsjoberg@gmail.com>.
...
git-svn-id: svn://10.0.0.236/trunk@228786 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-27 00:11:11 +00:00
brendan%mozilla.org
e42d3e17c5
Re-land fix for cloned function object prototyping (300079, r=igor/mrbkap).
...
git-svn-id: svn://10.0.0.236/trunk@228766 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-26 18:19:54 +00:00
enndeakin%sympatico.ca
8e51bea6a6
Bug 382034, support optional args in idl, try again with fix for crash calling toString, r+sr=shaver
...
git-svn-id: svn://10.0.0.236/trunk@228681 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-25 14:23:26 +00:00
enndeakin%sympatico.ca
6dad1b3e57
Bug 382034, back out due to test content/base/test/test_bug352728.html failing
...
git-svn-id: svn://10.0.0.236/trunk@228580 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-22 15:21:14 +00:00
enndeakin%sympatico.ca
41118635e1
Bug 382034, support optional arguments in idl, r+sr=shaver
...
git-svn-id: svn://10.0.0.236/trunk@228578 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-22 14:22:23 +00:00
dbaron%dbaron.org
0fab4c99a1
Back out again.
...
git-svn-id: svn://10.0.0.236/trunk@228569 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-22 03:11:41 +00:00
mrbkap%gmail.com
f4df34064d
Actually populate the string cache so we don't leak all deflated strings. bug 385378, r=brendan
...
git-svn-id: svn://10.0.0.236/trunk@228564 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-22 00:31:50 +00:00
dbaron%dbaron.org
10b95a7040
Bug 368869, suspect all native wrappers for cycle collection. Relanding. Patch by graydon@mozilla.com. r=brendan, sr=jst
...
git-svn-id: svn://10.0.0.236/trunk@228547 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-21 22:25:51 +00:00
mrbkap%gmail.com
b1a2eb695b
Remove useless variable. bug 385368, patch from Gabriel Sjoberg <gabrielsjoberg@gmail.com>, r=mrbkap
...
git-svn-id: svn://10.0.0.236/trunk@228534 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-21 20:38:45 +00:00
sayrer%gmail.com
16221423ba
Bug 381651. Tweak XPCOMUtils. Patch by Nickolay_Ponomarev <asqueella@gmail.com>. r=sayrer, sr=bsmedberg
...
git-svn-id: svn://10.0.0.236/trunk@228413 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-21 04:53:35 +00:00
mrbkap%gmail.com
25d15d759d
Implement a full nsIScriptSecurityManager in xpcshell. bug 239969, r+sr=jst
...
git-svn-id: svn://10.0.0.236/trunk@228410 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-21 00:10:48 +00:00
mrbkap%gmail.com
39a87ec18e
Use the latest version of JS, so the shell always has the newest features. bug 385159, r=brendan
...
git-svn-id: svn://10.0.0.236/trunk@228409 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-20 23:53:55 +00:00