Commit Graph

71153 Commits

Author SHA1 Message Date
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
524b87e3d5 Bug 656519 - Fix consumers outside SpiderMonkey to use new ArrayBuffer APIs. r=mrbkap
--HG--
extra : rebase_source : f359987831611155029114b5f85080155c6a12d5
2011-06-14 15:37:21 -04: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
Chris Leary
cb10121547 Avoid copy construction for paren info vector. (rs=dmandelin)
--HG--
extra : rebase_source : 659e9e5aa1946b2693645664584f98dfe068d19f
2011-06-14 11:53:14 -07:00
Michael Wu
8676e7fece Bug 648022: Backout bug 518230 due to startup crashes, r=igor 2011-05-16 09:20:40 -07:00
Jeff Walden
cb616455f0 Bug 658069 - Rename GlobalObject::isEvalAllowed to indicate its actual meaning better. r=mrbkap 2011-06-10 11:44:16 -07:00
Jeff Walden
d255c9a807 Bug 660438 - Update tracer for changed [[DefaultValue]] semantics to fall back for not-callable, not for not-primitive. r=luke 2011-05-31 11:10:19 -07:00
Jeff Walden
9d216339ba Bug 646129 - [[DefaultValue]] on Date objects is wrong when called with no hint. r=luke 2011-04-01 15:24:21 -07:00
Jeff Walden
4641c09f96 Bug 645464 - js::ClassMethodIsNative doesn't return false when the object has a property of the given name which isn't the specified native method. r=luke
--HG--
extra : rebase_source : a9c6944975bec3b155dc537733643e0faa5f6b0b
2011-03-28 19:27:14 -07:00
Jeff Walden
eba19e34f0 Remove the unused js_CoerceArrayToCanvasImageData. rs=luke
--HG--
extra : rebase_source : 040d3f596b2dcc1fa38c77d9cf16c484e252a243
2011-06-09 01:12:28 -07:00
Jeff Walden
7f7f1141f6 Bug 663331 - Make U+2028 LINE SEPARATOR and U+2029 PARAGRAPH SEPARATOR match the LineTerminator production when parsing code. r=njn
--HG--
extra : rebase_source : 9d6c02d03a5631e90b06fed4394d3867e5a29d5f
2011-06-10 11:22:06 -07:00
Jeff Walden
44a8747e80 Bug 663300 - Treat \u not followed by four hexadecimal digits, or \x not followed by two hexadecimal digits, as syntax errors in string literals. r=njn
--HG--
extra : rebase_source : 78f37bc91e44598ba99c1983b65b8627bed876b5
2011-06-10 11:21:57 -07:00
Jeff Walden
190c5e9bc0 Bug 662231 - Stop installing the jsnum.h header (again). r=jimb
--HG--
extra : rebase_source : 23bfbf1d8d10ed3efd501338b65e509b1344ae26
2011-06-08 16:50:23 -07:00
Chris Leary
f819c3428e Merge mozilla-central and tracemonkey. 2011-06-13 10:00:23 -07:00
Ted Mielczarek
1bb6830a2c Backed out changeset d12dda590f4a – bug 543463 - Make it easier for non-Mozilla devs to get and use the JavaScript Shell, for causing bug 663796 (unittests failing to run) 2011-06-13 10:40:35 -04:00
Ted Mielczarek
f5385df619 Backed out changeset d12dda590f4a – bug 543463 - Make it easier for non-Mozilla devs to get and use the JavaScript Shell, for causing bug 663796 (unittests failing to run) 2011-06-13 10:40:15 -04:00
Ted Mielczarek
2f25dab703 Backed out changeset 055e5a11a673 – bug 543463 - Make it easier for non-Mozilla devs to get and use the JavaScript Shell, for causing bug 663796 (unittests failing to run) 2011-06-13 10:38:43 -04:00
Ted Mielczarek
53ec2a7f4b Backed out changeset 055e5a11a673 – bug 543463 - Make it easier for non-Mozilla devs to get and use the JavaScript Shell, for causing bug 663796 (unittests failing to run) 2011-06-13 10:37:24 -04:00
Ted Mielczarek
a88f0715f0 merge m-c and b-s 2011-06-13 09:09:43 -04:00
Philipp von Weitershausen
5e6eaf23f9 Merge mozilla-inbound and mozilla-central 2011-06-13 11:57:17 +02:00
Makoto Kato
5713f0f90a Bug 662765 - Respect _M_IX86_FP. r=jlebar 2011-06-13 17:12:33 +09:00
David Bolter
213743502d Bug 663136 - Add test coverage for tablist as implicit live region. r=MarcoZ 2011-06-12 23:54:36 -07:00
Robert O'Callahan
a3ffca93f4 Bug 662898. Test 2011-06-13 13:42:48 +12:00
Robert O'Callahan
83ccc7f3f6 Bug 662898. Set canvas drawImage source pattern after any shadow is drawn, so the source doesn't get clobbered by the shadow drawing. r=jrmuizel 2011-06-13 13:41:51 +12:00
Ed Morley
223c46b36b Bug 659621 - Remove EXTRA_DSO_LIBS, EXTRA_DSO_LDOPTS, OS_LIBS from makefiles containing LIBXUL_LIBRARY = 1, now that libxul is always built; r=ted 2011-06-12 03:49:00 -04:00
Phil Ringnalda
aef3bc1013 Bug 663674 - Remove cross-commit, r=ted 2011-06-11 22:14:19 -07:00
Mounir Lamouri
4b22840f54 Merging mozilla-inbound with mozilla-central. 2011-06-12 17:25:56 +02:00
Jason Duell
d062346c8e Bug 660774 - e10s necko: refactor channelEventQueue to allow async resume/flush. r=jdm 2011-06-11 18:37:09 -07:00
Nick Hurley
092371ea1a Bug 637339 - Improve error handling in HttpChannelChild. r=honzab 2011-06-11 18:37:03 -07:00
Daniel Holbert
4eba537fff Bug 662086: Convert recently-added comment in jsval.h to be C-style, to fix build warning. r=mrbkap DONTBUILD 2011-06-11 17:28:48 -07:00
Philipp von Weitershausen
0675a1c1a6 Merge central to inbound 2011-06-12 00:27:08 +02:00
Olli Pettay
5110041744 Bug 643062, more generic null pointer check for ExecuteDetachedHandler, r=sicking
--HG--
extra : rebase_source : f65d5dc9665ac836d1d2fb0c3617dcb9ffc684c5
2011-06-11 23:43:33 +03:00
Masayuki Nakano
f96e0ef619 Bug 663041 layout should use mozilla::Preferences r=roc 2011-06-12 11:30:16 +09:00
Masayuki Nakano
e06d6eb819 Bug 663036 part.3 gfx should use mozilla::Preferences r=roc+joe 2011-06-12 11:30:16 +09:00
Masayuki Nakano
59142e247a Bug 663036 part.2 Implement GetComplex() and SetComplex() in Preferences r=roc 2011-06-12 11:30:15 +09:00
Masayuki Nakano
1388f97eb0 Bug 663036 part.1 Make Preferences instance with service constructor r=roc 2011-06-12 11:30:15 +09:00
Masayuki Nakano
6afe0b59d2 Bug 660768 modules should use mozilla::Preferences r=roc+joe+tglek 2011-06-12 11:30:15 +09:00