9657 Commits

Author SHA1 Message Date
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
nboyd%atg.com
311ca11470 Fix one small warning.
git-svn-id: svn://10.0.0.236/trunk@230026 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-16 13:51:35 +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
bclary%bclary.com
5e948abce7 JavaScript Test - regression test for bug 349326, by Igor Bukanov
git-svn-id: svn://10.0.0.236/trunk@229906 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-13 17:23:49 +00:00
bclary%bclary.com
e1685c13b7 JavaScript Test - regression test for bug 382981, by Jesse Ruderman
git-svn-id: svn://10.0.0.236/trunk@229904 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-13 17:08:03 +00:00
bclary%bclary.com
335524fd20 JavaScript Test - regression test for bug 383269, by Igor Bukanov, Brendan Eich
git-svn-id: svn://10.0.0.236/trunk@229902 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-13 16:56:30 +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
bclary%bclary.com
1d5d8e2a51 JavaScript Test - regression test for bug 384680, by Jesse Ruderman
git-svn-id: svn://10.0.0.236/trunk@229874 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-13 02:26:26 +00:00
bclary%bclary.com
e6a70e6330 JavaScript Test - regression test for bug 385134, by Jesse Ruderman
git-svn-id: svn://10.0.0.236/trunk@229873 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-13 02:08:24 +00:00
bclary%bclary.com
7bb2667750 JavaScript Test - regression test for bug 385729, by Jesse Ruderman
git-svn-id: svn://10.0.0.236/trunk@229871 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-13 01:49:58 +00:00
bclary%bclary.com
5ed784e039 JavaScript Test - regression test for bug 386030, by Blake Kaplan
git-svn-id: svn://10.0.0.236/trunk@229870 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-13 01:13:41 +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
bclary%bclary.com
71fd939245 JavaScript Test - regression test for bug 387501
git-svn-id: svn://10.0.0.236/trunk@229842 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-12 20:56:00 +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
bclary%bclary.com
7b8fb0d84c JavaScript Tests - automation updates, bug 387909, not part of the build
git-svn-id: svn://10.0.0.236/trunk@229821 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-12 17:49:32 +00:00
nboyd%atg.com
7aaeda6bb7 Fix bug 386997 - Need to support 'debugger' statement
Adding the 'debugger' keyword will now result in a breakpoint being hit when
run in the Rhino debugger. The statement is ignored if the debugger is not
running or when compiled to Java bytecodes.

Patch from Bob Jervis (bjervis@google.com).


git-svn-id: svn://10.0.0.236/trunk@229809 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-12 15:09:18 +00:00
nboyd%atg.com
c940f9ef3d Patch from Bob Jervis (bjervis@google.com):
Here is the patch for the (mostly) formatting issues in the code differences.
Note: There is one non-formatting change in here.  It is fallout from the
'const' support I implemented some time back.  Basically, the change marginally
improves the memory allocation for compiled code.  Essentially, the bug is that
I was reserving 2 slots for each local, when I should only reserve one in this
function.  (This is the result of a bad cut and paste, I think, with the
function above it in Codegen.java.)


git-svn-id: svn://10.0.0.236/trunk@229806 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-12 14:52:30 +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
nboyd%atg.com
a813befbb5 New skips of new tests.
git-svn-id: svn://10.0.0.236/trunk@229715 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-11 16:53:38 +00:00
nboyd%atg.com
4ab45fa564 Implement block scope (let) and array comprehensions.
This required significant changes to symbol table management.


git-svn-id: svn://10.0.0.236/trunk@229709 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-11 16:00:03 +00:00
nboyd%atg.com
36bffb1678 Switch to 1.4 as the souce and target.
git-svn-id: svn://10.0.0.236/trunk@229698 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-11 13:55:09 +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