Commit Graph

1052 Commits

Author SHA1 Message Date
bclary@bclary.com
fb46ae01b6 JavaScript Test - fix thinko in ecma_3/Number/15.7.4.3-01.js, bug 412068 2008-01-14 23:09:46 -08:00
jwalden@mit.edu
961c502c55 Bug 412068 - Number.prototype.toLocaleString incorrectly accesses the memory where its first argument should be, even if no first argument is actually given. Tag-team r=igor, r+a=brendan By the way, this checkin occurred on an orange tree. Just like every other patch in the last day. Yay checkin policy. 2008-01-14 20:16:08 -08:00
bclary@bclary.com
a370aa63b2 Sisyphus|JavaScript Tests - fix runtests.sh -e extra argument processing, bug 412317, not part of the build 2008-01-14 11:07:01 -08:00
sayrer@gmail.com
0b2ec181fe Bug 412210. SpiderMonkey faster at -O2 with msvc. r/a=brendan 2008-01-13 20:45:42 -08:00
bclary@bclary.com
b7550378f8 Sisyphus|JavaScript Tests - TinderboxPrint of test counts contain leading whitespace, bug 412183, not part of the build 2008-01-13 10:44:48 -08:00
jag@tty.nl
9d8ca5c0c9 Bug 406800: HP's OA crash [@js_FinalizeObject][@ RtlpDeCommitFreeBlock] when loading blade enclosure info. r/sr=peterv GC was clearing mJSVal without updating mData, so XPCTraceableVariant's destructor would get confused and call Cleanup() on mData when it shouldn't (the buffer pointed to wasn't ours to free, you see). Instead of avoiding Cleanup(), make it be harmless by nulling out the pointer to the buffer. 2008-01-13 10:21:08 -08:00
bclary@bclary.com
e0f531d24f JavaScript Tests - update public failures, bug 314874 verified fixed 2008-01-13 09:40:04 -08:00
brendan@mozilla.org
d56e272e19 * Menu of -D flags for enabling instrumentation, as a commented-out CFLAGS += setting for convenient testing. * js_FindProperty and js_LookupPropertyWithFlags return indexes into the scope and prototype chains, respectively, to support internal instrumentation, and to pave the way for the return of the property cache (bug 365851).. * jsutil.[ch] JSBasicStats struct and functions for computing mean/sigma/max and auto-scaling histogram. * JS_SCOPE_DEPTH_METER instrumentation for compile- and run-time scope chain length instrumentation: + At compile time, rt->hostenvScopeDepthStats and rt->lexicalScopeDepthStats meter scope chains passed into the compile and evaluate APIs. + At runtime, rt->protoLookupDepthStats and rt->scopeSearchDepthStats track steps along the prototype and scope chains until the sought-after property is found. * JS_ARENAMETER uses JSBasicStats now. * Added rt->liveScopePropsPreSweep to fix the property tree stats code that rotted when property tree sweeping moved to after the finalization phase. * Un-bitrotted some DEBUG_brendan code, turned some off for myself via XXX. * Mac OS X toolchain requires initialized data shared across dynamic library member files, outlaws common data, so initialize extern metering vars. * Old HASHMETER code in jshash.[ch] is now JS_HASHMETER-controlled and based on JSBasicStats. * DEBUG_scopemeters macro renamed JS_DUMP_SCOPE_METERS; uses JSBasicStats now. * Disentangle DEBUG and DUMP_SCOPE_STATS (now JS_DUMP_PROPTREE_STATS) and fix inconsistent thread safety for liveScopeProps (sometimes atomic-incremented, sometimes runtime-locked). * Compiler-modeled maxScopeDepth will propagate via JSScript to runtime for capability-based, interpreter-inlined cache hit qualifier bits, to bypass scope and prototype chain lookup by optimizing for common monomorphic get, set, and call site referencing a prototype property in a well-named object (no shadowing or mutation in 99.9% of the cases). 2008-01-12 16:31:31 -08:00
reed@reedloden.com
6f59510259 Change to ISO C90 comment style to fix warning in sayrer's last patch. 2008-01-11 23:37:32 -08:00
sayrer@gmail.com
d91f780693 Bug 353962. Use OSAtomic on Darwin for JS thinlocks. r/a=brendan 2008-01-11 23:16:14 -08:00
dwitte@stanford.edu
97a45f037f thoroughly whack mallocfest in nsID/nsJSID and friends. b=410250, r+sr=jst, a=blocking1.9+ 2008-01-11 20:30:42 -08:00
bclary@bclary.com
bf82c4ec6d JavaScript Tests - regression test for bug 411893, by Jeff Walden, not part of the build 2008-01-11 19:54:40 -08:00
bclary@bclary.com
76155f504d JavaScript Tests - regression test for bug 411889, by Jeff Walden, not part of the build 2008-01-11 19:48:16 -08:00
myk@mozilla.org
dbbcaac1ab backing out jst's fix for bug 408301 because it seems to have turned some tinderboxen red, others orange, and caused web content regressions 2008-01-11 17:56:21 -08:00
jwalden@mit.edu
5b92bba950 Fix dumb mistake in the last toString patch that causes proto-acid3 to crash. 2008-01-11 16:12:36 -08:00
jwalden@mit.edu
9123e1bf35 Bug 411893 - num.toPrecision(undefined) !== num.toString(). r=crowder, a=brendan 2008-01-11 15:12:15 -08:00
jwalden@mit.edu
f327bdf265 Bug 411889 - Given a = num.toString(), b = num.toString(undefined), c = num.toString(10), expect (a === b && b === c). r=crowder, a=brendan 2008-01-11 15:07:13 -08:00
jst@mozilla.org
0619ce52c3 Re-landing fix for bug 408301 to see if it really was the cause of the orange last time it landed. Make more XPConnect wrappers share their JSObject maps. r=peterv@propagandism.org, sr=brendan@mozilla.org 2008-01-11 15:06:40 -08:00
dbaron@dbaron.org
79f94348dc Unset and reset the JS context global objects when doing ExplainLiveExpectedGarbage, just like when doing normal cycle collection. b=410116 r+sr=peterv Not part of default build (DEBUG_CC-only). 2008-01-11 14:24:33 -08:00
nboyd@atg.com
a9bc0dbe8e Fix bug 411539 Generalize some tests for Rhino and Spidermonkey. r=bclary@bclary.com 2008-01-11 09:38:09 -08:00
benjamin@smedbergs.us
d4e1973996 Bug 411531 - Assertion failure !rt->gcRunning because I accidentally turned off deffered-release of wrapped natives during GC, r+sr=peterv 2008-01-11 06:52:45 -08:00
dwitte@stanford.edu
66d4df40f5 backing out the rest. 2008-01-11 02:56:35 -08:00
dwitte@stanford.edu
9d626da131 partial backout in an attempt to fix orange. 2008-01-11 02:08:58 -08:00
dwitte@stanford.edu
8a6c4d235f relanding bug 410250. 2008-01-11 01:13:04 -08:00
dwitte@stanford.edu
d2b6f4f5ed backing out to fix orange. 2008-01-10 20:59:44 -08:00
dwitte@stanford.edu
1798542e9f thoroughly whack mallocfest in nsID/nsJSID and friends. b=410250, r+sr=jst, a=blocking1.9+ 2008-01-10 19:56:00 -08:00
crowder@fiverocks.com
f4d0f0fd7b Bug 411747: latent GC hazard in one of the routines in js.c (npotb), r/a=brendan 2008-01-10 19:22:55 -08:00
crowder@fiverocks.com
d161c0b7cb Bug 411702 - Ancient OOM handling bug with an easy fix, r/a=brendan 2008-01-10 13:49:59 -08:00
igor@mir2.org
7bc03fee82 Bug 409109: using the new operation counting JS API for monitoring long-running scripts. r=brendan,jst 2008-01-10 07:39:02 -08:00
peterv@propagandism.org
bd933a00a4 Fix for bug 402966 (JS_Assert "!rt->gcRunning"). r/sr=dbaron. 2008-01-10 06:10:03 -08:00
bclary@bclary.com
92c8aaa72c JavaScript Tests - update spidermonkey-extensions-n.tests, bug 398000, not part of the build 2008-01-09 17:49:19 -08:00
bclary@bclary.com
566e9356bf JavaScript Tests - known-failure.pl should ignore trailing spaces, bug 411506, not part of the build 2008-01-09 11:30:38 -08:00
igor@mir2.org
1a974d67e5 Bug 409109: backing the checking as the tree was closed. 2008-01-09 07:31:13 -08:00
igor@mir2.org
f8145c5e61 Bug 409109: using the new operation counting JS API for monitoring long-running scripts. r=brendan,jst 2008-01-09 07:20:39 -08:00
bclary@bclary.com
ff1ea85c80 JavaScript Test - regression test for bug 352291, by Jesse Ruderman, not part of the build 2008-01-08 19:42:01 -08:00
bclary@bclary.com
9649730e98 JavaScript Test - regression test for bug 352422, by Jesse Ruderman, not part of the build 2008-01-08 19:31:29 -08:00
bclary@bclary.com
a2f8f1260f JavaScript Test - regression test for bug 352786, by Jesse Ruderman, not part of the build 2008-01-08 19:25:46 -08:00
roc+@cs.cmu.edu
2726b61178 Backing out 408301 to see if it fixes winxp01 orange 2008-01-08 19:21:35 -08:00
bclary@bclary.com
7588c92bef JavaScript Test - regression test for bug 376410, by Jesse Ruderman, not part of the build 2008-01-08 19:19:54 -08:00
bclary@bclary.com
6dd69c514e JavaScript Test - regression test for bug 376410, by Jesse Ruderman, not part of the build 2008-01-08 19:13:01 -08:00
bclary@bclary.com
418af942f5 JavaScript Test - regression test for bug 411279, by Brendan Eich, not part of the build 2008-01-08 18:56:25 -08:00
brendan@mozilla.org
6fdb9f94ad Support let in switch-case statement lists, scoped by switch body (411279, r=mrbkap). 2008-01-08 16:49:35 -08:00
jst@mozilla.org
34718748bd Fixing bug 408301. Make more XPConnect wrappers share their JSObject maps. r=peterv@propagandism.org, sr=brendan@mozilla.org 2008-01-08 15:38:24 -08:00
bclary@bclary.com
e712432ac8 JavaScript Tests - regression test for bug 410192, by Biju, Brendan Eich, not part of the build 2008-01-07 08:58:29 -08:00
bclary@bclary.com
9cd868e6b4 JavaScript Tests - update test due to fix to bug 410981, not part of the build 2008-01-07 07:29:21 -08:00
brendan@mozilla.org
9ced524053 Require explicit body block in 'for (let x ...) let y...' (410981, r=mrbkap). 2008-01-07 01:41:28 -08:00
brendan@mozilla.org
4bef2e90ac 64-bit fixes for problems reported by edwin@cheatah.nl (many thanks to Edwin; 410941, r=igor). 2008-01-07 00:41:06 -08:00
benjamin@smedbergs.us
3a92106058 Bug 410929 - Bad C++isms in js/src, r=crowder 2008-01-06 08:28:46 -08:00
bclary@bclary.com
18d6f4f179 JavaScript Tests - update known failures to account for bug 408957, not part of the build 2008-01-05 17:28:28 -08:00
igor@mir2.org
7cb5b01011 Bug 409109: Backing out once again to figure out the reason for talos regressions. 2008-01-05 17:20:16 -08:00
bclary@bclary.com
86ddf2aa29 JavaScript Tests - update tests to account for bug 408957, not part of the build 2008-01-05 17:18:47 -08:00
bclary@bclary.com
24946b6eb0 JavaScript Tests - tests for iterator constructor, by Norris Boyd, bug 410725 2008-01-05 06:16:51 -08:00
igor@mir2.org
9bb5aae331 Bug 409109: using the new operation counting JS API for monitoring long-running scripts. a,r=brendan 2008-01-05 03:25:49 -08:00
jruderman@hmc.edu
acec28b307 Add moving-between-frames crashtest 2008-01-04 22:54:28 -08:00
mrbkap@gmail.com
4dfe6493da Add a way to find all of the XOWs for an object and use it to deal with hard cases where we have to clear the scope of XOWs in order to reflect changes to the underlying object. Also deal with objects moving between scopes by ensuring that we're always able to find their XOWs. bug 399587, r+sr=jst r=brendan for some last-minute changes added in this version. 2008-01-04 20:45:16 -08:00
mrbkap@gmail.com
3706fb3053 Do not allow scripted getters or setters on XPCNativeWrappers. bug 387390, r=jst sr=brendan 2008-01-04 17:37:48 -08:00
brendan@mozilla.org
cfbfe3c2cd Track ES4 proposal by restricting let declaration to be direct child of block (408957, r=mrbkap). 2008-01-04 17:34:11 -08:00
mrbkap@gmail.com
705ce56638 Don't call arbitrary hooks from a function called from GC. bug 410323, r=brendan 2008-01-04 17:28:29 -08:00
mrbkap@gmail.com
e458b8b61d Use the currently active scope to find the prototype. bug 408639, r=jst sr=brendan 2008-01-04 17:25:35 -08:00
jst@mozilla.org
41ea116da8 Fixing bug 410851. Expose a faster way of getting the subject principal, and use that from performance critical code. r+sr=mrbkap@gmail.com 2008-01-04 15:59:12 -08:00
bclary@bclary.com
0189c1c262 JavaScript Tests - revert known failures due to bugs 393267, 399587 being backed out. not part of the build 2008-01-04 04:23:42 -08:00
jruderman@hmc.edu
0368dbc3d2 The last backout introduced some mochitest orange. Let's see whether backing out bug 393267 as well fixes that. 2008-01-03 21:13:59 -08:00
jruderman@hmc.edu
8a25f3a779 Backing out mrbkap's fix for bug 399587, in the hope of fixing bug 410323 and perhaps bug 410291. 2008-01-03 20:12:48 -08:00
brendan@mozilla.org
0d7046460b NPOTB assertion for Date's 'friend' API, plus comments (410647, r=bclary). 2008-01-03 18:23:55 -08:00
gavin@gavinsharp.com
15be910811 Back out patch for bug 409109 because its suspected of causing the fxdbug-win32-tb orange 2008-01-03 15:03:19 -08:00
brendan@mozilla.org
8c0a5e8a90 Comment nit-pick. 2008-01-03 12:57:05 -08:00
igor@mir2.org
136aa3e109 Bug 410653: make sure that the generator cleanup code is called on all code paths. r,a=brendan 2008-01-03 10:13:42 -08:00
igor@mir2.org
1240c7eabe Bug 409109: switching to new operation counting API. r=jst a=beltzner 2008-01-03 07:27:28 -08:00
igor@mir2.org
a9fa67b981 Bug 364776: New operation counter API to replace branch callback. r,a=brendan 2008-01-03 01:28:40 -08:00
bclary@bclary.com
2af85d44ba JavaScript Tests - regression test for bug 351463, not part of the buidl 2008-01-02 20:53:12 -08:00
brendan@mozilla.org
c02dbef876 XML/XMLList need toSource love (410192, r=mrbkap). 2008-01-02 12:25:59 -08:00
benjamin@smedbergs.us
f75d637c57 Bug 409433 - XPConnect should never allow GC off the main thread, r=mrbkap sr=jst a=luser 2007-12-31 10:17:35 -08:00
mrbkap@gmail.com
3467b91cc2 Fix silly think-o from bug 410090, r=lumpy 2007-12-30 12:37:49 -08:00
bclary@bclary.com
08b3b0e5af JavaScript Tests - update known failures due to fixes in bug 393269, bug 399587, not part of the build 2007-12-30 08:40:49 -08:00
mrbkap@gmail.com
a3cb3e9386 Preserve interesting attributes on same-origin XOWs. bug 393267, r+sr=jst a=beltzner 2007-12-29 20:36:37 -08:00
mrbkap@gmail.com
67bcba4a97 Add a way to find all of the XOWs for an object and use it to deal with hard cases where we have to clear the scope of XOWs in order to reflect changes to the underlying object. Also deal with objects moving between scopes by ensuring that we're always able to find their XOWs. bug 399587, r+sr=jst 2007-12-29 20:34:49 -08:00
mrbkap@gmail.com
f544e27288 Make enumeration over SJOWs walk the prototype chain. Also make SJOWs unwrap same-origin XOWs. bug 410090, r+sr=jst 2007-12-29 15:40:50 -08:00
mrbkap@gmail.com
c668cc7f5c Allow chrome to use SJOWs. bug 409889, r+sr=jst 2007-12-29 15:38:36 -08:00
sayrer@gmail.com
43999e482b Bug 387522. Native JSON support. r=crowder/jst, sr=brendan 2007-12-27 13:34:03 -08:00
bclary@bclary.com
3fda481a95 JavaScript Tests - regression tests for bug 407727, by Igor Bukanov, not part of the build 2007-12-27 12:23:00 -08:00
bclary@bclary.com
a69a021416 JavaScript Tests - record additional fixes from bug 390949 in known failure list, not part of the build 2007-12-27 07:03:09 -08:00
jruderman@hmc.edu
91424bc51f Backing out igor's fixes for bug 409109 and bug 364776 in an attempt to fix Tinderbox tgfx failures that are keeping talos red 2007-12-26 11:19:17 -08:00
bclary@bclary.com
bd2506675f JavaScript Tests - record fixes from bug 390949 in known failure list, not part of the build 2007-12-26 06:36:33 -08:00
igor@mir2.org
20fdb17cc6 Bug 409109: using operation counting API instead of the branch callback. r,sr=jst 2007-12-25 02:46:50 -08:00
igor@mir2.org
aa66348a18 Bug 364776: new operation callback API to replace branch callback. a,r=brendan 2007-12-25 02:12:26 -08:00
mrbkap@gmail.com
0af959a35c Do not propagate our toString function onto the wrapped objects. bug 390949, r+sr=jst 2007-12-24 12:17:16 -08:00
mrbkap@gmail.com
d6945425b5 Add mochitests for bug 409298 and bug 403005 r=bzbarsky 2007-12-24 11:28:21 -08:00
jruderman@hmc.edu
ca2676f2b9 Add crashtest 2007-12-23 17:25:00 -08:00
jruderman@hmc.edu
eb3288308b Add crashtest 2007-12-23 16:45:48 -08:00
timeless@mozdev.org
33d48a27ec Bug 336991 Useless null check of jsdscript in _destroyJSDScript r=gijs sr=bz a=dsicore 2007-12-23 15:47:36 -08:00
jwalden@mit.edu
a906fd95ab Kick the stupid Windows tinderbox. 2007-12-22 08:36:21 -08:00
bclary@bclary.com
17360fb8d6 JavaScript Test - add additional tests for Function constructor, bug 408271, not part of the build 2007-12-21 17:58:43 -08:00
sayrer@gmail.com
7fbc1f0e59 Bug 409324. js_DoubleToECMA(u)Int32 should return jsdouble, not a useless always-true JSBool. r/a=brendan 2007-12-21 14:06:37 -08:00
igor@mir2.org
365cedcc72 Bug 408271: check for missing return when parsing a function body in one place. r,a=brendan 2007-12-21 11:11:46 -08:00
mrbkap@gmail.com
f1c34acb2b Don't resolve things on SJOW's prototype and make toString on it work again. bug 409298, r+sr=jst a=beltzner 2007-12-21 11:05:05 -08:00
mrbkap@gmail.com
7c7e1261bf Give the JS engine some knowledge of wrappers so that they can compare equal and be noticed when they take part in __proto__ cycles; this was supposed to land before. bug 397855, r=brendan sr=dveditz 2007-12-21 01:10:59 -08:00
sayrer@gmail.com
cfbb96e156 Bug 409302. js_DoubleToECMA(u)Int32 has an unused cx param. r/a=brendan 2007-12-20 17:43:49 -08:00
bclary@bclary.com
f31cfc9dcc JavaScript Tests - update list of known failures, no bug, not part of the build 2007-12-20 16:07:00 -08:00
bclary@bclary.com
d28076f4ec JavaScript Tests - update tests to reflect changed behavior due to bug 409252 2007-12-20 16:02:14 -08:00
mrbkap@gmail.com
e718c42249 Fix this test to deal with the new error that's being thrown. 2007-12-20 15:46:08 -08:00