Ehsan Akhgari
940b078fd2
Bug 662961 - Silence the clang warnings issued because of alignment requirements increase when compiling jsstr.cpp; r=Waldo
...
--HG--
extra : rebase_source : 984f986f3de6c92cdb45cadeff40bc84b36406ca
2011-06-19 17:04:48 -04:00
Nicholas Nethercote
4cc5c61803
Bug 664647 - Work around MSVC 2005 PGO bug in GetJSObjectSlotsCallback and friends. r=khuey.
2011-06-20 09:01:37 +10:00
Igor Bukanov
b64bc1fb04
bug 601075 - followup to fix MSVC warings and adjust the testStringBufferMallocAccounting.js test to overwrite all conservative GC roots.
2011-06-19 19:41:46 +02:00
Andrew McCreight
3f1b66195e
Backout bug 653248 due to bug 667011
2011-06-15 10:55:58 -07:00
Andrew McCreight
9ad333dda5
backing out patch for bug 653248 due to bug 667011
2011-06-15 10:55:58 -07:00
Ehsan Akhgari
d6b4429b37
Merge mozilla-central and mozilla-inbound
2011-06-28 18:43:09 -04:00
Joe Drew
770bb721ef
Merge m-c to m-i
2011-06-28 12:21:04 -04:00
Joe Drew
952b32c999
Merge last green changeset from mozilla-inbound to mozilla-central.
2011-06-28 12:11:31 -04:00
Kyle Huey
a5cab656de
Merge b-s to m-c.
2011-06-28 08:54:26 -07:00
Chris Leary
31076ac1d6
Merge mozilla-central and tracemonkey.
2011-06-27 11:07:22 -07:00
Igor Bukanov
ba5e71d38e
bug 666091 - custom file for GCTIMER output. r=anygregor
2011-06-22 14:33:39 +02:00
Jeff Walden
55a71f2ebf
Style patrol followup to bug 665835. r=consistency
...
--HG--
extra : rebase_source : fe11c9f93246357209608ef6db85f2c147eb1b61
2011-06-24 14:36:13 -07:00
Chris Leary
a71d61104b
Followup for bug 649576 GCC 4.3.3 warning.
2011-06-25 16:35:56 -07:00
Chris Leary
0780a149be
Bug 649576: Extricate JSHashTable from JSAtomList death grip. (r=luke)
2011-06-24 14:22:30 -07:00
Paul Biggar
0e43edd30e
Bug 666788: Remove JS_sscanf declaration, for which there is no definition (r=cdleary)
2011-06-24 16:12:40 -07:00
Luke Wagner
822bc8b69e
Bug 666094 - InitJitFrameLatePrologue should do a better modeling generatePrologue (r=dvander)
2011-06-24 16:11:21 -07:00
David Mandelin
4c436c89cd
Bug 666587: revert accidentally changed control flow in fun_getProperty, r=jwalden
2011-06-24 14:26:00 -07:00
Dave Herman
4fa36afd9e
Bug 666852 - crash when yield occurs in comprehension RHS (r=cdleary)
2011-06-24 14:08:29 -04:00
Justin Lebar
169b00ccad
Bug 664486 - Add page fault counts to about:memory on Linux and Mac. r=njn, sr=bz
...
--HG--
extra : rebase_source : 47dd7501dea7ae69e01828a5c730e8853739dc71
2011-06-16 14:34:09 -04:00
Shawn Gong
552c301b28
Fixed bug 632255: implemented FileReader.readAsArrayBuffer() API. r=sicking
2011-06-30 17:50:44 -07:00
Makoto Kato
cd7ae32ee3
Bug 635617 - 64-bit crash [@ MakeDay] r=jwalden
2011-06-08 10:41:37 +09:00
Makoto Kato
8aef16bd3b
Bug 667076 - follow up for bustage on Win64. r=luke
2011-07-01 15:59:58 +09:00
Jeff Walden
0dfbe6d91b
Bug 657298 - Various bugs in setting the length of an array. r=dmandelin
...
--HG--
extra : rebase_source : f27bd4d0141df46d7ef054c91c2601d3b50d9690
2011-06-28 10:05:53 -07:00
Jeff Walden
d2d6ef6dd4
Bug 667527 - Remove the array-length limitation from the method used in certain cases to append values to newborn arrays, and name it more generally than previously. r=dmandelin
...
--HG--
extra : rebase_source : 1f7ee1dc5f5bd3185a8c7e02c5fdf8dcef765cb4
2011-06-28 10:05:40 -07:00
Nikhil Marathe
309bac37f9
Bug 665355 - Make delegate object and ArrayBuffer share same prototype. r=mrbkap
...
--HG--
extra : rebase_source : a7bd7dce5e0fbc53097f56065f5d5290046bc691
2011-06-29 17:42:03 -07:00
Nikhil Marathe
052a90e97b
Bug 665355 - Fix __proto__ recursion. r=mrbkap
...
--HG--
extra : rebase_source : b97d692c2318e3e071e68e2e1cec38ca9e614cb0
2011-06-29 17:41:35 -07:00
Nikhil Marathe
9a3fd541fa
Bug 665914 - ArrayBuffer.prototype['byteLength'] crashes. r=mrbkap
...
--HG--
extra : rebase_source : 09fda2860e11457f516c3b0b0614bde7e3ff3a91
2011-06-29 17:38:10 -07:00
Blake Kaplan
4b185d0ef0
Bug 667630 - Don't treat the payload of a jsval as a pointer and make sure we unroot the value. r=luke
...
--HG--
extra : rebase_source : b3c5c3a29c859e2632ef97b0acc0a18842f9c52a
2011-06-29 17:36:09 -07:00
Blake Kaplan
e9d975ff6a
Bug 664689 - Deal with wrappers-around-wrappers here. r=gal
...
--HG--
extra : rebase_source : af67e8aded9aa89874c0d74bc9fd48df2268eafc
2011-06-28 14:00:19 -07:00
Steve Fink
67a675cdaa
Bug 667056 - Fix when function callbacks are invoked (r=luke)
2011-06-24 17:13:19 -07:00
Steve Fink
29117f5284
Bug 667076 - Add a CHECK_EQUAL for testing whether non-jsval types are equal and report expected and observed values on failure (r=luke)
...
--HG--
extra : rebase_source : fb98cbdcaa63abbfe718d3dfc5b3ac1b0d3a64da
2011-06-24 13:11:28 -07:00
Chris Leary
e059ba52f5
POD trait for |long long| family, attempt to rambo Winx64 back to life. (rs=luke)
2011-06-27 15:00:17 -07:00
Igor Bukanov
5b6c00bb2a
Bug 657198 - improving unreachable GC things detection in traces. r=gal
2011-05-31 10:01:09 +02:00
David Anderson
3eff122abe
Fix ARM assert (no bug, r=cdleary).
2011-06-24 00:22:58 -07:00
Jeff Walden
65bb367c0c
Followup to fix tests relying on the mistaken absence of JSOPTION_ANONFUNFIX. r=orange
2011-06-23 18:48:55 -07:00
Brian Hackett
485e71109e
Bug 662132: Better coordination of GC and ICs, r=dvander
2011-06-23 18:19:57 -07:00
Gavin Barraclough
8ccf51f141
Bug 653672: fix regexp offset handling, r=cdleary
2011-06-20 13:31:24 -07:00
Chris Leary
4fd96c3fb4
Fix type-mismatched error return value.
2011-06-23 17:06:57 -07:00
Luke Wagner
a6f59ecb7d
Bug 666292 - The decompiler does not deserve to use FrameRegsIter (it temporarily clobbers script->code) (r=waldo)
2011-06-23 16:41:59 -07:00
Jeff Walden
0a61156473
Bug 665835 - Remove JSOPTION_ANONFUNFIX. r=cdleary
...
--HG--
rename : js/src/tests/js1_5/extensions/regress-376052.js => js/src/tests/ecma_5/misc/unnamed-function.js
2011-06-21 09:53:19 -07:00
Jeff Walden
6b92eb239e
*Fewer* *occurrences*, not "less occurences". r=languagenazi
2011-06-23 11:07:27 -07:00
Dave Herman
bc5c25ed9b
Bug 665286 - crash on yield in arguments list (r=cdleary)
2011-06-23 18:20:31 -04:00
Dave Herman
8d5a97dc48
Fixed broken test case (r=orange)
2011-06-23 16:40:58 -04:00
Paul Biggar
2d4fbba45a
Bug 666052: Remove unused NSPR defines for events, hashtables and arenas (r=luke)
2011-06-23 13:27:04 -07:00
Luke Wagner
cf52575b1d
Update 'make check' OffTheBooks/Foreground accounting for 580ad572687b
2011-06-23 10:43:31 -07:00
Jeff Walden
4d7b8eb3a6
Bug 660517 - Kill XML objects as prototypes. r=mrbkap
...
--HG--
extra : rebase_source : e2bf46111cab2bf97abe5a1bd8d0b25d97e8bfb9
2011-06-16 15:43:58 -07:00
Jeff Walden
0f68955900
Bug 587268 - Consolidate duplicate properties during enumeration of objects with custom enumeration behavior. r=dmandelin
...
--HG--
extra : rebase_source : ffd03f833471205e896815a7593326d2f7ea7bac
2011-06-21 16:52:25 -07:00
Luke Wagner
0319982d42
Bug 665247 - Remove unused metering code (r=igor)
...
--HG--
extra : rebase_source : 78ec31e4236f63f8a91024f34b1b99a889dc47f5
2011-06-21 10:26:22 -07:00
Dave Herman
da7f1d70a8
Bug 632030 - Reflect.parse handling of duplicate var declarations (r=jorendorff)
2011-06-23 12:31:40 -04:00
Daniel Holbert
197cb3d127
Bug 666481: Remove set-but-not-used variable 'count' from jsatom.cpp. r=igor
2011-06-23 02:47:13 -07:00
Dave Herman
0e0b2db7f9
Bug 632056 - Reflect.parse() constant-folding test
2011-06-23 03:44:56 -04:00
Dave Herman
494f040003
Bug 632029 - Reflect.parse() constant-folding
2011-06-23 03:31:12 -04:00
Dave Herman
ab82a6fa38
Bug 632026 - Reflect.parse() constant folding test
2011-06-23 03:17:42 -04:00
Igor Bukanov
40d7d39db3
bug 665781 - do not shrink XML arrays during GC. r=gal
2011-06-21 12:23:14 +02:00
Luke Wagner
cdcb6ca0ba
Bug 666003 - Set 'script' after pushing inline frame in JSOP_CALL (r=waldo)
...
--HG--
extra : rebase_source : a3a922c32a1f68fcd5dcf72937d695b39bbb4770
2011-06-21 17:44:50 -07:00
Nicholas Nethercote
6ef6e862d2
Bug 665404 - Create JaegerCompartments lazily. r=luke.
2011-06-22 09:16:23 +10:00
Bob Clary
0a168b2cf6
bug 662468 - JavaScript Tests - restore Object.prototype.string in e4x/Regress/regress-373082.js, r=igor.
2011-06-21 10:35:29 -07:00
Nicholas Nethercote
a902454a0c
Bug 661068 follow-up - Fix the --disable-tracejit bustage caused by 1e464e38591e. Oh the humanity!
2011-06-21 13:18:15 +10:00
Nicholas Nethercote
a208fd35a9
Bug 661068 - Create TraceMonitors lazily. r=luke.
2011-06-21 12:47:04 +10:00
Craig Topper
856cbcefa4
Bug 666135 - Disable -Wcast-align when building with clang
2011-05-13 14:18:52 -07:00
Igor Bukanov
13395451ad
bug 601075 - bump-allocator for GC arenas. r=wmccloskey
2011-05-11 14:46:33 +02:00
Dave Herman
7612662008
disable constant folding for Reflect.parse (bug 571617, r=jorendorff)
2011-06-18 08:45:05 -07:00
Tom Schuster
1681a326d5
Bug 640593 - Remove Function.arity and other cleanup around function properties r=jorendorff
...
--HG--
rename : js/src/tests/ecma_5/strict/function-name-arity.js => js/src/tests/ecma_5/strict/function-name.js
2011-06-18 00:55:55 +02:00
Luke Wagner
bddfcf1535
Fix test added by a5a8d503df69; apparently Proxy.fix is only available in debug builds (r=burning)
...
--HG--
extra : rebase_source : a39bd49833096b0db4baeb9b9ce5af98b3914e23
2011-06-17 17:34:09 -07:00
Paul Biggar
abb14214f8
No bug: Remove js.mdp, which is some kind of Visual Studio thing (r=luke)
...
I accidentally overwrote this in March, and no-one has since complained, so
this is clearly useless.
2011-06-17 17:16:58 -07:00
Luke Wagner
2ebc3262be
Bug 664951 - Weaken CallJSNativeConstructor again (r=waldo)
2011-06-17 16:51:52 -07:00
Luke Wagner
3ca1688adf
Bug 663789 - InvokeSessionGuard needs to do a better job resetting the call frame (r=waldo)
2011-06-17 16:51:05 -07:00
Luke Wagner
135ed62f87
Bug 660734, part 2 - Add back a ContextAllocPolicy that calls cx->malloc_ and use it in StringBuffer so that the new string's bytes are counted by the GC (r=igor)
...
--HG--
extra : rebase_source : a9e677e80574352125c93a7a3d775ef20303c551
2011-06-17 10:14:30 -07:00
Luke Wagner
721022b341
Bug 660734, part 1 - s/ContextAllocPolicy/TempAllocPolicy/ since it doesn't call cx->malloc_ (r=igor)
...
--HG--
extra : rebase_source : 7ea0d6a7ed86a9c561efdd2d7b93623ea37c5b90
2011-06-17 10:11:33 -07:00
Igor Bukanov
973ee9f2df
bug 664677 - initializing number and script state when creating the runtime. r=anygregor
...
--HG--
extra : rebase_source : 7e16c8649723bb67205343c0c7cf230e7e04a8c0
2011-06-16 11:42:35 +02:00
Brendan Eich
8838f75826
Object.getOwnPropertyNames considers enumerable getter inherited properties as own (636989, r=jorendorff/gal).
2011-06-17 00:01:21 -07:00
Dave Herman
c90692005d
Reflect.parse() stack overflow (bug 632024, r=jorendorff)
2011-06-16 23:27:26 -07:00
Craig Topper
bdf31b71e5
Bug 664667: Fix operator precedence issue in JSObject::slotsAndStructSize, r=jorendorff
2011-06-15 21:17:42 -07:00
Nikhil Marathe
8d1eed62d4
Bug 664577 - Make sure non-SpiderMonkey users don't require knowledge about JSObject when using ArrayBuffers. r=mrbkap
2011-06-16 15:46:39 -04:00
Blake Kaplan
83446b873d
Backed out changeset 8b3dc129aed8. Missing bug number in the commit (bug 664577).
2011-06-16 16:57:51 -04:00
Nikhil Marathe
ced65c9a25
Make sure non-SpiderMonkey users don't require knowledge about JSObject when using ArrayBuffers. r=mrbkap
2011-06-16 15:46:39 -04:00
Kyle Huey
a513a5e9b1
Bug 613066: Update structured clone algorithm to the latest spec. r=jorendorff
2011-06-16 11:22:37 -07:00
Andrew McCreight
94348ec6d3
Bug 653248 - Mark any weak references reachable from XPCOM gray, not black. r=gal
2011-06-15 10:55:58 -07:00
Jeff Walden
78a353366d
Bug 655192 - Update the initSharingEmptyShape comment to be more precise about what it requires of the provided proto, to avoid mentioning js_InitClass. r=jorendorff
...
--HG--
extra : rebase_source : 7008073db608db3f83ee31f9a7798f67ccc8d4b5
2011-05-09 13:06:52 -07:00
Jeff Walden
5911c8d372
Bug 655192 - Declare variables as late as possible in js_InitXMLClass. r=jorendorff
...
--HG--
extra : rebase_source : 13cf4e90f5f6dc549ef1500cc91cb9507ce47d90
2011-05-04 16:54:24 -04:00
Jeff Walden
213f565321
Add a test for loose equality between Date objects and booleans. r=itsatest
...
--HG--
extra : rebase_source : daa612d30395f006b34795e967514a0ac07ee67d
2011-06-13 21:49:58 -07:00
Jeff Walden
ce0eef97b4
Bug 663245 - Reduce exposure of jsbool.h, jsiter.h, and jsstr.h outside the JS engine to ding compile time less when they're touched. r=jimb
...
--HG--
extra : rebase_source : 426b168d126099956836c73cd082860bfc77f578
2011-06-10 11:44:16 -07:00
Jeff Walden
199261fd22
Bug 470791 - Adjust prmjtime.cpp PRMJ_Now code to be more readable, and not just a direct translation of JSLL_* macros. r=jimb
...
--HG--
extra : rebase_source : a82ba7183aeb4c1a3dbbc199b465e0eef651ba9f
2011-06-09 01:13:17 -07:00
Jeff Walden
d336c82cfa
Bug 470791 - Remove all users of the long-obsolete JSLL_* macros. r=jimb
...
--HG--
extra : rebase_source : 106b723b49d54dcd86ec67eaa50ca919bc8e5845
2011-06-09 01:13:03 -07:00
Jeff Walden
e84bb50504
Bug 662946 - Remove various headers from INSTALLED_HEADERS that shouldn't be there. r=jimb
...
--HG--
extra : rebase_source : a6028a859cac4625ef2f3227ce0fa3159b5e8556
2011-06-09 01:12:21 -07:00
Jeff Walden
d913af715c
Bug 663547 - Make ecma_5/Object/* not dog-slow any more by disabling a particularly expensive assertion when they run. r=luke
...
--HG--
extra : rebase_source : c287c56c37c971eb9967e297602cf1e2c43ef017
2011-06-14 18:39:53 -07:00
Dave Herman
1d1b53860a
disallow yield and arguments in generator expressions (bug 634472, r=cdleary)
2011-06-16 08:20:18 -07:00
Luke Wagner
02e7f00e45
Bug 648438 - Don't assert about js_ReconstructStackDepth for imacros since apparently this only works for imacros in the top stack frame (r=jwalden)
...
--HG--
extra : rebase_source : a7059021f02113b41214080e4ec6a4fe5210c4a5
2011-06-16 08:14:19 -07:00
Nicholas Nethercote
a9e2ffa879
Bug 571249 - Add memory reporters for JSScripts, non-fixed object slot arrays, and string chars. r=igor.
2011-06-16 13:01:04 +10:00
David Anderson
353ce9c4ce
Make alloc policy realloc() easier to implement (bug 664353, r=luke).
2011-06-15 18:11:59 -07:00
Brendan Eich
b2a9eace38
Inherited non-configurable accessor properties mis-reported as own properties (637994, r=jwalden).
2011-06-14 23:48:59 -07:00
Brendan Eich
a2fa4d23af
No else after return.
2011-06-14 19:32:33 -07:00
Jim Blandy
a282ee62d3
Bug 660039: Provide a WeakMap usable from C++. r=jorendorff
...
Remove WeakMap class; implement the JavaScript object using functions static to jsweakmap.cpp.
Define a new WeakMap class template, parameterized by Key and Value types,
and accepting a MarkPolicy argument saying how to mark them.
Add assertions to check that we check and set the right mark bits, and
tests that trip them in the presence of mistakes in earlier revisions of
this patch.
2011-06-14 19:21:47 -07:00
Jim Blandy
7cdc628e2a
Bug 661567: Use RuntimeAllocPolicy in JS WeakMap objects, not ContextAllocPolicy. r=jorendorff
2011-06-14 19:21:47 -07:00
Jim Blandy
900b1f6059
Bug 661567: Implement RuntimeAllocPolicy, providing proper memory accounting in GC'd objects that live longer than a JSContext. r=luke
2011-06-14 19:21:47 -07:00
Jim Blandy
fe837eb8a0
Bug 661567: Use ObjectValueMap typedef name where appropriate. r=gal
2011-06-14 19:21:47 -07:00
Luke Wagner
70b6adcc95
Bug 664159 - Fix eval-in-frame crash (r=waldo)
2011-06-14 17:35:19 -07:00
Nikhil Marathe
566af7c712
Bug 656519 - Add an interpreter fast-path for getting length from a typed array. r=mrbkap
...
--HG--
extra : rebase_source : b2d583778e14877cb0e01f0739d08cd31dc9c757
2011-06-14 15:35:54 -04:00
Nikhil Marathe
f96aadd8f3
Bug 656519 - Do a small size optimization for arraybuffer objects, possibly avoiding a second malloc entirely for small array buffers. r=mrbkap
...
--HG--
extra : rebase_source : 2dcaee6b42f47dafcfbb866a45ed2452f029a253
2011-06-14 15:34:06 -04:00
Nikhil Marathe
acda759fc1
Bug 656519 - Avoid a malloc (and a finalizer) by storing the malloc'd array in our slots instead of in a separate malloc'd structure in our private field. r=mrbkap
...
--HG--
extra : rebase_source : 791ede2d8db96f56e4ef8478d491aec413d3e392
2011-06-14 15:33:11 -04:00