Commit Graph

4112 Commits

Author SHA1 Message Date
brendan%mozilla.org
7050bb0c78 Backing out, see bug 389122 and orange or red tinderboxes.
git-svn-id: svn://10.0.0.236/trunk@230578 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-21 23:21:20 +00:00
brendan%mozilla.org
18ee45583c Fast natives and related optimizations (385393, r=igor).
git-svn-id: svn://10.0.0.236/trunk@230576 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-21 21:39:42 +00:00
mrbkap%gmail.com
a9121164a8 Don't double-wrap objects when getting them out of an XPCVariant. bug 384632, r=peterv sr=jst
git-svn-id: svn://10.0.0.236/trunk@230407 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-21 01:03:55 +00:00
dbaron%dbaron.org
3f5fb6ceeb Add more useful assertion for debugging cycle collector faults. b=386912 r+sr=peterv
git-svn-id: svn://10.0.0.236/trunk@230272 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-19 04:58:39 +00:00
dmose%mozilla.org
825379ae05 Fix comment to say 'createInstance' when it really means that, since this is pointed to by devmo as API documentation; no bug; rs=shaver
git-svn-id: svn://10.0.0.236/trunk@230222 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-18 20:19:05 +00:00
bclary%bclary.com
4da4389219 add winmm.lib to JavaScript Shell build configuration on Windows, bug 363258, not part of the build. r=mrbkap
git-svn-id: svn://10.0.0.236/trunk@230218 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-18 19:55:15 +00:00
jwalden%mit.edu
a276ef39ff Bug 388276 - Build failed on solaris x86 due to checkin for 372428. Patch by Leon Sha <leon.sha@sun.com>, r=cls
git-svn-id: svn://10.0.0.236/trunk@230142 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-17 21:23:25 +00:00
mrbkap%gmail.com
2c54f9e915 Move where we convert things into strings into a more centralized place. bug 372075, r=bzbarsky sr=jst
git-svn-id: svn://10.0.0.236/trunk@230129 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-17 20:12:22 +00:00
igor%mir2.org
1b3cd5ca5b Bug 387871: proper state checks when closing the generator. r=brendan
git-svn-id: svn://10.0.0.236/trunk@230096 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-17 06:41:20 +00:00
igor%mir2.org
36391ed96f Bug 380469: Followup to remove to no longer used JSGenerator.next. r=brendan
git-svn-id: svn://10.0.0.236/trunk@230095 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-17 06:38:27 +00:00
mrbkap%gmail.com
f8d37b7b62 Fixing build bustage.
git-svn-id: svn://10.0.0.236/trunk@230063 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-16 21:44:00 +00:00
mrbkap%gmail.com
bae2c3e2ac Bad millisecond resolution for (new Date).getTime() / Date.now() on Windows. bug 363258, patch from Rob Arnold <robarnold@mozilla.com>, r=brendan
git-svn-id: svn://10.0.0.236/trunk@230061 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-16 21:29:57 +00:00
igor%mir2.org
3d83f2f3b2 Bug 380469: Taking away too zealous code simplification.
git-svn-id: svn://10.0.0.236/trunk@230051 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-16 20:57:16 +00:00
dolske%mozilla.com
97245738c8 Bug 388190: XPCOMUtils spews uuids when registering components. r=sayrer, sr=benjamin
git-svn-id: svn://10.0.0.236/trunk@230038 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-16 17:57:49 +00:00
alex%croczilla.com
05817de1fb Bug 381693 - Allow null targetObj arg to xpcIJSModuleLoader::import().
r=sayrer, src=brendan.


git-svn-id: svn://10.0.0.236/trunk@230000 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-15 18:21:12 +00:00
asqueella%gmail.com
1998307ac0 synchronize documentation, Sylvain Pasche <sylvain.pasche@gmail.com>
r=sayrer, bug 380970


git-svn-id: svn://10.0.0.236/trunk@229967 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-14 21:43:35 +00:00
igor%mir2.org
6a664052de Bug 380469: Followup for the previous check in to remove more no longer used close-on-GC code. r=brendan
git-svn-id: svn://10.0.0.236/trunk@229956 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-14 08:28:57 +00:00
igor%mir2.org
0b0429dffd Bug 387909: make sure that [generator] is the first bytecode. r=brendan
git-svn-id: svn://10.0.0.236/trunk@229912 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-13 21:23:39 +00:00
igor%mir2.org
8ee7408a67 Bug 380469: Calling close on unreachable generators from GC is no longer supported. r=brendan
git-svn-id: svn://10.0.0.236/trunk@229883 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-13 07:28:47 +00:00
crowder%fiverocks.com
af19e0d34b Bug 357016: follow-up to fix another void* nit, patch by Edward Lee edilee@mozilla.com, r=crowder
git-svn-id: svn://10.0.0.236/trunk@229863 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-13 00:04:23 +00:00
jwalden%mit.edu
b5394cc6e3 Back out bug 386635; it broke restoring sessions in the browser.
git-svn-id: svn://10.0.0.236/trunk@229829 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-12 19:11:45 +00:00
igor%mir2.org
95c498451e Bug 357016: Patch from Edward Lee to restore ability to compile SpiderMonkey with C++ compiler. It was broken after my changes. r=myself
git-svn-id: svn://10.0.0.236/trunk@229796 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-12 07:48:50 +00:00
jwalden%mit.edu
055749deac Back out bug 387390; it causes the marquee binding to throw security exceptions.
git-svn-id: svn://10.0.0.236/trunk@229786 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-12 03:14:27 +00:00
mrbkap%gmail.com
b0e436cceb Don't trust the filename of cloned functions. bug 387390, r=jst sr=brendan
git-svn-id: svn://10.0.0.236/trunk@229780 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-12 01:27:03 +00:00
mrbkap%gmail.com
f5207325ba Always return XPCSafeJSObjectWrappers from Components.utils.Sandbox and evalInSandbox. This makes this interface much, much easier to use safely, as the wrapper takes care of several common problems that occur when touching regular JS objects directly. bug 386635, r=jst sr=brendan
git-svn-id: svn://10.0.0.236/trunk@229763 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-11 22:52:29 +00:00
mrbkap%gmail.com
bacec5f48b Clear dormantNext when we're done using it. bug 387725, r=igor
git-svn-id: svn://10.0.0.236/trunk@229750 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-11 21:57:05 +00:00
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