Commit Graph

18795 Commits

Author SHA1 Message Date
Nicholas Nethercote
8b058f774b Bug 739512: fix Mac and Windows bustage caused by patch 3. r=me. 2012-05-07 10:53:56 +10:00
Nicholas Nethercote
9ea7b3074c Bug 739512: Patch 3: shrink the representation of optional arrays in JSScript. r=luke.
--HG--
extra : rebase_source : df3e7190d8afbff1dfe95c44b838d6460b2c11b6
2012-04-11 17:19:00 -07:00
Nicholas Nethercote
f6997a3aff Bug 752374 - Fix GCC integer overflow warnings in jsatominlines.h. r=bhackett.
--HG--
extra : rebase_source : aea8276518c71af6817abf096309585d1c8f1d05
2012-05-06 16:43:15 -07:00
Bill McCloskey
37146cc0a7 Bug 749698 - Setup compartment to collect when gcPoke set (r=igor) 2012-05-06 16:36:21 -07:00
Bill McCloskey
7c52eac860 Bug 752081 - Add more cases to IncrementalReferenceBarrier (r=sfink) 2012-05-06 16:33:50 -07:00
Nicholas Nethercote
16972fac2e Bug 739512: Patch 11: change JSScript::useCount to uint32_t. r=dvander.
--HG--
extra : rebase_source : 408dd77b28b697140f6ba08680b24cb69c046390
2012-04-11 16:37:57 -07:00
Brian Hackett
3e6dfb0349 Disallow non-canonical jsids, bug 751331. r=luke 2012-05-06 13:45:19 -07:00
Andrew Paprocki
5d846bbd8f Bug 736792 - Add JSOPTION_STRICT_MODE for embedders to force ES5 strict mode for all code without requiring "use strict" annotations. r=njn 2012-05-05 15:26:16 -04:00
Bobby Holley
17aaa24bab Bug 749173 - Remove AutoPreserveCompartment. r=luke 2012-05-06 13:09:49 +02:00
Phil Ringnalda
86ac0f4449 Back out 4ef39e03c9d9 (bug 736792) for jsreftest failures 2012-05-05 21:43:44 -07:00
Andrew Paprocki
5469fb621c Bug 736792 - Add JSOPTION_STRICT_MODE for embedders to force ES5 strict mode for all code without requiring "use strict" annotations. r=njn 2012-05-05 15:26:16 -04:00
Bobby Holley
9939525174 Bug 743961 - Null-check context pushing callbacks. r=mrbkap 2012-05-05 18:33:40 +02:00
Jan de Mooij
15264c39e7 Bug 752015 - Remove MethodJIT-inl.h. r=bhackett 2012-05-05 18:23:40 +02:00
Ryan VanderMeulen
40cfe78d6d Merge m-c to m-i 2012-05-05 11:50:54 -04:00
Olli Pettay
0067bf7bb3 Backout Bug 716014, a=bustage 2012-05-05 18:20:09 +03:00
Brian Hackett
0a23a4159f Check that double variables have the correct representation when changing types at switch targets, bug 751320. r=dvander 2012-05-05 07:18:55 -07:00
Ed Morley
ea1cca8a21 Merge mozilla-central to mozilla-inbound 2012-05-05 12:57:25 +01:00
wmccloskey@mozilla.com
3857c0f744 Bug 716014, use compartment gc more often, JS API part, r=terrence
--HG--
extra : rebase_source : c61a7552611cfbb0ce39bfee7787da57bec5a637
2012-05-05 11:56:58 +03:00
Olli Pettay
9d18ecc72d Bug 716014, use compartment gc more often, r=billm
--HG--
extra : rebase_source : cf20b7aca16349e4007da24cfb5b19ab7a16cad8
2012-05-05 11:55:30 +03:00
Ms2ger
3b04c7d79e Bug 741245 - Remove nsresult return value from nsXPConnect::GetSafeJSContext(); r=bholley 2012-05-05 11:00:05 +02:00
Ms2ger
3a093c7580 Bug 745427 - Fix XPCWrappedNativeScope::SetContext; r=gal 2012-05-05 11:00:04 +02:00
Christian Holler
5c46c7d23b Bug 751195 - Mark GC function unsafe for AddressSanitizer, r=billm 2012-05-05 02:08:32 -04:00
Ryan VanderMeulen
a3a125f0c1 Backout 2c8ae0c81d32 (bug 742391) due to bustage. r=FAIL 2012-05-04 23:03:31 -04:00
Joey Armstrong
4562b3524a Bug 742391 - Split config/rules.mk - file batch #1. r=ted 2012-05-04 22:46:35 -04:00
Terrence Cole
83449f6079 Bug 750547 - Remove unused dead branch in js_AtomizeString; r=Waldo
--HG--
extra : rebase_source : e063dae5c05d8da3687e7ce73465e74a49067ccb
2012-04-30 16:20:10 -07:00
Terrence Cole
a14beaf2df Bug 750577 - Use self rooters as needed; r=bhackett
These rooters were introduced in 745742, but not used throughout the method.
2012-04-30 18:08:19 -07:00
Jason Orendorff
a22ef01d98 Bug 738479 - Debugger.Script objects whose referents are non-compile-and-go are crashy. Also fixes bug 746973. r=jimb.
--HG--
extra : rebase_source : 406065559a1e26485503b6d1e4d7eeea9070321f
2012-05-04 10:49:13 -05:00
Jason Orendorff
85d1454321 Bug 725733 - Fix crash in ScriptAnalysis::addTypeBarrier with Debugger. r=billm.
--HG--
extra : rebase_source : eb7726d3857bb4e0f89a7f669fb2791415979e86
2012-05-03 14:37:35 -05:00
Jason Orendorff
13f5b11204 Only run jit-tests under valgrind if we built the JS engine with valgrind.h. Bug 725733, r=jimb.
--HG--
extra : rebase_source : 06d41845a5f16a05e2483cbfaa254fda5d343c98
2012-05-03 14:36:11 -05:00
Adam
aea645da31 Bug 727331 - JS OOM Testing: Assertion failure: !rt->gcRunning, at js/src/jsgc.cpp:2990. r=billm.
--HG--
extra : rebase_source : 5ce0763977c233adeb8a97402a936e3226991671
2012-05-01 10:37:00 -05:00
Jason Orendorff
68ca935eed Bug 749316 - Put Debugger object into chrome scratchpad. r=dcamp,bholley.
--HG--
extra : rebase_source : 12ab275ac9cdfa0e9890c507e30e0b56e4086816
2012-05-01 10:17:32 -05:00
Jason Orendorff
f103f34e07 Bug 745802 - JS OOM Testing: Crash [@ js::HeapId::operator jsid]. r=bhackett.
--HG--
extra : rebase_source : ef4e762c3e63cbcc09247f861c4d7c030b389b10
2012-04-26 15:57:29 -04:00
Jason Orendorff
fb673ebaff Bug 749693 - JS shell global doesn't need JSCLASS_HAS_PRIVATE or its_finalizer. r=jandem.
--HG--
extra : rebase_source : cd46a6909564fb1f3a4e557df17cae3deed2e458
2012-04-27 14:42:55 -04:00
Tom Schuster
f98222b4a5 Bug 648526 - Constant folding in array and object literals. r=bhackett 2012-05-02 16:12:07 +02:00
Tom Schuster
de678b547a Bug 749620 - Add missing power of 10 for edge case. r=luke 2012-05-02 16:11:00 +02:00
Nathan Froyd
2153c0cc8f Bug 746238 - pack TypeCallsite and TypeCompartment better; r=bhackett 2012-04-17 14:00:20 -04:00
Doug Turner
68e34b4226 Bug 738465 - implement device light sensor. r=smaug 2012-05-02 09:43:45 -07:00
Doug Turner
63408865d2 Bug 738131 - implement device proximity. r=smaug
* * *
Bug 738131 - implement device proximity. gonk implementation. r=mwu
2012-05-02 09:43:45 -07:00
Jeff Walden
6c0b5b116e Disable a small bit of debug code when compiling with MSVC as a temporary workaround for a compiler bug. Hopefully a semantically-equivalent workaround can be found in the longer term, but in the short term this at least makes debug Windows shell builds compile again, in a way dmandelin thinks is at least not unreasonable. Another followup to bug 745472, split out for clarity, r=themaid
--HG--
extra : rebase_source : 3f211be919bbc567167859daabb4c41ef2677fbe
2012-05-03 19:17:19 -07:00
Jeff Walden
86d0005dc0 Fix Windows build warnings, followup to bug 745742. r=themaid
--HG--
extra : rebase_source : e660c857ebbd1f8592bb04a1da5cc542cf3e0098
2012-05-03 19:03:13 -07:00
Ryan VanderMeulen
801656068b Bug 575688 - Follow-up so that new test only runs in shell. r=orange 2012-05-03 20:58:28 -04:00
Luke Wagner
b6994d3f36 Bug 690135 - remove some bits of jsdbgapi and shell (r=jorendorff)
--HG--
extra : rebase_source : 6741e97b5279c41ec1b9a08fbf5e693b17820106
2012-04-25 18:19:06 -07:00
Luke Wagner
71816740dc Bug 746839 - rm FunctionBox::methods and CleanFunctionList (r=jimb)
--HG--
extra : rebase_source : 710be6cb5a9cb7684bb0e6310a7715edb3a713f3
2012-04-18 17:10:41 -07:00
Luke Wagner
aa93de78f3 Bug 747554 - Parsing destructuring short-hand should note name use like normal identifiers (r=waldo)
--HG--
extra : rebase_source : 8ed0f8e4228b6704c064703707760abb017ed346
2012-05-02 09:36:55 -07:00
Steve Fink
2c59d5586c Bug 730208 - UnmarkGray fixups for globals and contexts. r=billm
A common source of potential black -> gray edges is JSAPI calls made on objects with gray globals or contexts holding gray globals. (The call could potentially update a black object with a pointer to that global.) This patch mostly traps places where contexts are used, and unmarks their globals. It also includes some more global unmarking.

--HG--
extra : rebase_source : 835c1d6b4a7f7a11571412075ae8847475079edd
2012-03-14 09:32:58 -07:00
Steve Fink
d62b8ed0a7 Bug 730208 - Root JSD's pet global so it can't participate in CC cycles. r=billm
--HG--
extra : rebase_source : 9bf6a12faedab111efee048af0e543b2c1881782
2012-03-20 21:29:47 -07:00
Steve Fink
80175b16ed Bug 730208 - XPConnect changes to UnmarkGray some more objects and return them for convenience. r=mccr8
--HG--
extra : rebase_source : ddbfd05ec43868d39c26b1c37cac7e81522df29f
2012-03-20 21:22:40 -07:00
Steve Fink
ce400592c2 Bug 730208 - Implement js::IsIncrementalBarrierNeededOnScript. r=billm
--HG--
extra : rebase_source : c5ee6063a72e251b1b4ef08aa2d97b6d8364a0e1
2012-04-27 10:53:07 -07:00
Steve Fink
cb33167c33 Bug 575688 - Implement DataView from Typed Arrays spec. r=Waldo
--HG--
extra : rebase_source : b351000320c910c905be386cf71a9933cfe01a0f
2012-03-25 19:14:27 -07:00
Steve Fink
7aee790f0d Bug 741039 - Modify TypedArrays and ArrayBuffers to comply with the WebIDL spec. r=Waldo
WebIDL 4.4.6 says Float32Array.prototype is not a platform object and should throw TypeErrors when any of the Float32Array attributes is accessed. This patch makes obj->isTypedArray only succeed for actual TypedArray instances, and adds TypeErrors when special properties are retrieved from the prototypes.

This patch also eliminates some lingering uses of TypedArray::getTypedArray and makes it and getArrayBuffer static within jstypedarray.cpp. (Both are used for objects whose prototypes are typed arrays or array buffers.)

--HG--
extra : rebase_source : 93032b5c8dc98c4e18eec4fa438f6a9a4173487d
2012-04-23 15:13:02 -07:00