Jan de Mooij
f8a1ec2850
Bug 939562 part 2 - Move JIT flags from ContextOptions to RuntimeOptions. r=bent,bholley,luke
2014-02-26 10:25:36 +01:00
Luke Wagner
4c59cb92eb
Bug 976348 - Change DescribeScriptedCaller to not return a JSScript (r=bholley)
...
--HG--
extra : rebase_source : 58387ce3e4c49d3140b92b84bf3577fc6584820e
2014-02-25 09:43:14 -06:00
Boris Zbarsky
d6d5a58892
Bug 972312 part 2. Get rid of InternalScriptErrorEvent and just use mozilla::dom::ErrorEvent for the cases that used to use it. r=smaug,khuey
2014-02-23 00:01:12 -05:00
Andrew McCreight
58fa248662
Bug 972856 - Use PR_Now() for CC timestamp in JSON log. r=smaug
2014-02-18 09:58:40 -05:00
Julian Seward
9ce922e332
Bug 960603 - Uninitialised value use relating to nsJSContext::EndCycleCollection. r=mccr8.
...
--HG--
extra : rebase_source : 06a45cf8a46045bfafb6b95864a3ce6c2d0b04a0
2014-02-17 13:16:23 +01:00
Luke Wagner
f2279744fa
Bug 936236 - Send memory-pressure notification if ArrayBuffer allocation OOMs and retry allocation (r=mccr8)
2014-02-12 22:50:15 -06:00
Phil Ringnalda
2b174ca833
Back out d54433699f2e (bug 936236) for adding 5 rooting hazards
...
CLOSED TREE
2014-02-12 23:26:28 -08:00
Luke Wagner
5845a0c598
Bug 936236 - Notify memory-pressure observers when allocating a large ArrayBuffer fails (r=mccr8)
...
--HG--
extra : rebase_source : 49eadf76ae73e5e4f1c24149839bdc7200e00494
2014-02-12 22:50:15 -06:00
Jon Coppeard
52381adba2
Bug 969812 - Convert JS_NewArrayObject to use HandleValueArray r=terrence r=bz
2014-02-12 10:50:46 +00:00
Jon Coppeard
b6588e8cbf
Bug 965830 - Remove AutoArrayRooter from the public API r=terrence r=smaug
2014-02-11 10:59:15 +00:00
Andrew McCreight
8d7a3da3fe
Bug 965916 - Do an extra GC on memory pressure if it would be productive. r=smaug
2014-02-03 07:31:11 -08:00
Terrence Cole
2e7acf2929
Bug 963738 - Fix some false positives in the Array analysis; r=jonco
2014-01-28 12:05:35 -08:00
Chris Peterson
d942edd370
Bug 960416 - Always use JIT hardening. r=luke
...
--HG--
extra : rebase_source : ae9e635eac09044f05fea9ad27ab52bb888c703e
2013-12-25 00:21:59 -08:00
Terrence Cole
348c21d424
Bug 959787 - Handlify several JSAPI interfaces that can GC, Part 2; r=sfink
...
--HG--
extra : rebase_source : e36c89af9c362e781d9ca9aceee42779258328b5
2014-01-14 17:19:07 -08:00
Tom Schuster
e64b35e141
Bug 939294 - Change xpidl jsval to handles. r=gabor,bz,khuey,bsmedberg,terrence
2014-01-09 18:39:36 +01:00
Boris Zbarsky
b954e9ada8
Bug 959926. Fix some miscellaneous unsafe pointer hazards. r=terrence
2014-01-15 14:39:08 -05:00
Till Schneidereit
52d4723af0
Bug 958726 - Perform shrinking GC if nsJSContext::GarbageCollectNow is called with aShrinking == ShrinkingGC. r=billm
...
--HG--
extra : rebase_source : b590c474fc195e2118de19f4ce9747bb4407d0f0
2014-01-10 23:44:28 +01:00
Andrew McCreight
e776222be7
Bug 957370 - Make 'total time' measure total time actually running the CC. r=smaug
2014-01-07 17:33:47 -08:00
Andrew McCreight
737d0d5fa9
Bug 956455, part 1 - WrapNative's holder argument is unnecessary. r=smaug
2014-01-06 11:54:43 -08:00
Ehsan Akhgari
ebd358dfd7
Bug 927728 - Part 1: Replace PRUnichar with char16_t; r=roc
...
This patch was automatically generated by the following script:
#!/bin/bash
# Command to convert PRUnichar to char16_t
function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
! -wholename "*security/nss*" \
! -wholename "*modules/libmar*" \
! -wholename "*/.hg*" \
! -wholename "obj-ff-dbg*" \
! -name prtypes.h \
! -name Char16.h \
-type f \
\( -iname "*.cpp" \
-o -iname "*.h" \
-o -iname "*.c" \
-o -iname "*.cc" \
-o -iname "*.idl" \
-o -iname "*.ipdl" \
-o -iname "*.ipdlh" \
-o -iname "*.mm" \) | \
xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}
convert PRUnichar char16_t
2014-01-04 10:02:17 -05:00
Andrew McCreight
b6ece55812
Bug 950959 - Rename scheduled cycle collector stuff to slice. r=smaug
2014-01-01 11:00:35 -08:00
Andrew McCreight
5b5e6a9500
Bug 950949 - Run forgetSkippable per CC not per slice. r=smaug
2014-01-01 11:00:35 -08:00
Andrew McCreight
ef5c18438e
Bug 948554, part 3 - Capture max slice time in logs and telemetry. r=smaug
2013-12-31 09:20:21 -08:00
Andrew McCreight
6144a66e4a
Bug 948554, part 2 - Convert some of nsJSEnvironment to TimeStamp for greater precision. r=smaug
2013-12-31 09:20:21 -08:00
Andrew McCreight
1487520354
Bug 948554, part 1 - Rename PrepareForCycleCollection and make it a method. r=smaug
...
This name is more precise, because we must call it once per slice,
not once per CC. Being a method on the CC stats object is more consistent.
2013-12-31 09:20:21 -08:00
Andrew McCreight
36ba686d29
Bug 937960, part 5 - Add pref to activate ICC. r=smaug
2013-12-22 10:14:36 -05:00
Andrew McCreight
01752de733
Bug 937960, part 4 - Reduce time until CC when it is incremental. r=smaug
2013-12-22 09:58:20 -05:00
Andrew McCreight
f83384339e
Bug 937960, part 3 - Pass in a small time budget with ICC. r=smaug
2013-12-22 09:58:19 -05:00
Andrew McCreight
b06340db9a
Bug 937960, part 2 - Add ICC slice timer and scheduling. r=smaug
2013-12-21 09:35:08 -05:00
Andrew McCreight
9452b03ca7
Bug 937960, part 1 - Add static var for incremental CC. r=smaug
2013-12-21 09:35:08 -05:00
Ryan VanderMeulen
383add0e97
Backed out changesets ccdc3d4f4571, 4dcc91e771e3, 0ae14946314b, and 94d22ab0b17f (bug 937960) for Windows 7 debug xpcshell failures.
2013-12-19 16:57:55 -05:00
Andrew McCreight
70407c2c21
Bug 937960, part 4 - Reduce time until CC when it is incremental. r=smaug
2013-12-18 21:22:55 -08:00
Andrew McCreight
380df2f061
Bug 937960, part 3 - Pass in a small time budget with ICC. r=smaug
2013-12-18 21:22:55 -08:00
Andrew McCreight
ba6fd07613
Bug 937960, part 2 - Add ICC slice timer and scheduling. r=smaug
2013-12-18 21:22:55 -08:00
Andrew McCreight
ab385fc578
Bug 937960, part 1 - Add ICC pref to nsJSEnv. r=smaug
2013-12-18 21:22:55 -08:00
Ryan VanderMeulen
75c2b59eb5
Backed out changesets b03bd1170d1c, 419615a1195d, a1b699b80442, and 524c573fd8a6 (bug 937960) for Win7 debug xpcshell orange.
2013-12-18 19:04:11 -05:00
Ryan VanderMeulen
dd8643cc43
Backed out changesets 472a1be79a9f, 2b43b310858b, and adc20d941bd8 (bug 948554) for Win7 debug xpcshell timeouts.
2013-12-18 19:03:28 -05:00
Andrew McCreight
f95d404cd5
Bug 948554, part 3 - Capture max slice time in logs and telemetry. r=smaug
2013-12-18 11:42:16 -08:00
Andrew McCreight
570de35866
Bug 948554, part 2 - Convert some of nsJSEnvironment to TimeStamp for greater precision. r=smaug
2013-12-18 11:42:16 -08:00
Andrew McCreight
d95abb4ad4
Bug 948554, part 1 - Rename PrepareForCycleCollection and make it a method. r=smaug
...
This name is more precise, because we must call it once per slice,
not once per CC. Being a method on the CC stats object is more consistent.
2013-12-18 11:42:16 -08:00
Andrew McCreight
dbbe1738b1
Bug 937960, part 4 - Reduce time until CC when it is incremental. r=smaug
2013-12-18 11:42:16 -08:00
Andrew McCreight
c6cd1b5b90
Bug 937960, part 3 - Pass in a small time budget with ICC. r=smaug
2013-12-18 11:42:16 -08:00
Andrew McCreight
78104dd42d
Bug 937960, part 2 - Add ICC slice timer and scheduling. r=smaug
2013-12-18 11:42:16 -08:00
Andrew McCreight
56a0c5e7b9
Bug 937960, part 1 - Add ICC pref to nsJSEnv. r=smaug
2013-12-18 11:42:15 -08:00
Ehsan Akhgari
d4490ee3c7
Bug 947736 - Build modules/libpref/ in unified mode; r=bsmedberg
2013-12-10 18:10:01 -05:00
Nicholas Nethercote
1e79a74289
Bug 947802 (part 2) - Replace enumerateReporters() with getReportsForThisProcess(). r=mccr8.
...
--HG--
extra : rebase_source : 1c70e838e3600745f69c5772a084398f78d4c477
2013-12-01 16:29:37 -08:00
Luke Wagner
9a1e82e4f9
Bug 941830 - Extend asm.js compiled code caching to Workers (r=bent)
...
--HG--
extra : rebase_source : 4fed947b2fa76e26054d8293cec31433ceb61c8d
2013-12-03 13:31:30 -06:00
Jacek Caban
4be5441848
Bug 944427 - Fixed char16_t/wchar_t mismatch in dom/ r=bsmedberg
2013-12-04 13:19:38 +01:00
Luke Wagner
a1cfb21b89
Bug 929236 - Cache asm.js compiled code in Gecko (r=janv)
...
--HG--
extra : rebase_source : 1c97962da0044858c583fc45e69dd22e519b8066
2013-11-18 15:49:53 -06:00
Boris Zbarsky
4c293cf8e4
Bug 941437 part 2. Remove the unused cx argument from UNWRAP_OBJECT and UNWRAP_WORKER_OBJECT. r=smaug
2013-11-21 07:51:16 -05:00
Andrew McCreight
319fed2c0e
Bug 935721, part 10 - Separate nsCycleCollector_collect and nsCycleCollector_scheduledCollect. r=smaug
2013-11-20 14:35:17 -08:00
Andrew McCreight
8953ed7683
Bug 935721, part 6 - Replace ccResults with aResults in EndCycleCollectionCallback. r=smaug
...
This is done in a separate patch to reduce the size of the previous patch a bit.
2013-11-20 14:35:16 -08:00
Andrew McCreight
3eed280708
Bug 935721, part 5 - Invert the control flow of CycleCollectNow's pre- and post-collection work, add CCResults as a field on the CC. r=smaug
...
nsJSEnvironment::CycleCollectNow does work before and after a CC runs. With ICC, nsJSEnv won't
know where in the CC when a CC is about to begin or end, so this patch reorganizes that work
into two separate callback hooks. This requires adding a new struct, CycleCollectorStats, to
hold data nsJSEnv needs between the two calls.
Rather than trying to pass around a pointer to a results structure, this patch just adds
it to the nsCycleCollector struct, and always stores them. The results are passed back
to the end CC callback.
2013-11-20 14:35:16 -08:00
Tom Schuster
f311064c6e
Bug 933834 - Rename and handlify JS_ValueToString. r=terrence,bz
2013-11-16 13:31:36 +01:00
Ms2ger
6b38d3ca3d
Backout changesets ded0d64f6786:03f041d03f24 and 30cbd1abde1a (bug 935696, bug 933834 and bug 939194) for build bustage.
2013-11-17 16:39:25 +01:00
Tom Schuster
dd485f9336
Bug 933834 - Rename and handlify JS_ValueToString. r=terrence,bz
2013-11-16 13:31:36 +01:00
Bobby Holley
15add0796f
Bug 840488 - Remove per-JSContext script toggling. r=bz
...
Note that the checks in nsJSEnvironment::EvaluateString and EvalInWindow
can safely go away, because we call ssm->ScriptAllowed() in
nsJSUtils::EvaluateString.
2013-11-12 16:43:35 -08:00
Ms2ger
5e1bd894df
No bug - Fix some style issues in DOM code.
2013-11-11 09:04:41 +01:00
Nikhil Marathe
8349e7f288
Bug 933010 - AsyncErrorReporter takes bool isChromeError. r=bz
2013-10-30 16:17:36 -07:00
Birunthan Mohanathas
7a599eb1ae
Bug 784739 - Switch from NULL to nullptr in dom/ (1/2); r=ehsan
2013-10-28 10:04:12 -04:00
Eddy Bruel
850a7bf5fc
Bug 880330 - Refactor dom to use the new options API (2/2); r=khuey
2013-10-28 12:51:05 +01:00
Eddy Bruel
89a41114bc
Bug 880330 - Refactor dom to use the new options API (1/2); r=khuey
2013-10-28 12:48:23 +01:00
Tom Schuster
306cb13efc
Bug 930782 - Handlify JS_WrapValue. r=terrence
2013-10-26 18:19:05 +02:00
Terrence Cole
6300642079
Bug 930101 - Fix an exact rooting hazard in JSObjectFromInterface; r=smaug
2013-10-23 15:33:00 -07:00
Steve Fink
a3274806e4
Bug 925916 - Handlify WrapNative, r=smaug
2013-10-11 22:02:39 -07:00
Masayuki Nakano
c9a07e240e
Bug 920377 part.12 Get rid of nsScriptErrorEvent r=roc
2013-09-27 15:20:56 +09:00
Masayuki Nakano
ad647cc182
Bug 912956 part.17 mozilla/ContentEvents.h should be included directly r=roc
2013-09-25 20:21:20 +09:00
Jon Coppeard
8c99b0611f
Bug 918373 - GC: Handlify various public APIs r=sfink r=bholley r=smaug
2013-09-20 10:22:59 +01:00
Joshua Cranmer
b511ee58c5
Bug 904985 - Use Char16.h in favor of NS_LL, Part 3: kill NS_LL. r=dbaron
...
--HG--
extra : rebase_source : bc105a8cbb87cc9b6b2db0734d9841fe599e794b
2013-09-17 22:43:21 -05:00
Olli Pettay
c7708cd597
Bug 915832, don't trigger a new GC if we're in middle of an iGC, r=billm
2013-09-13 02:07:02 +03:00
Brian Hackett
2e644832a0
Bug 906371 - Use off thread JS parsing when loading async scripts, r=bz,billm.
2013-09-11 17:42:09 -06:00
Dan Gohman
8b7074b6dc
Bug 910823 - Constify static js::Class/JSClass instances. r=waldo
2013-09-11 05:49:05 -07:00
Kyle Huey
abebd382da
Bug 910937: Remove xpc_UnmarkGrayObject and use JSAPI directly. r=mccr8
2013-09-08 20:28:48 -07:00
Ehsan Akhgari
36280b9569
Bug 913531 - Remove the unnecessary #includes from nsIXPConnect.idl; r=bholley
2013-09-06 13:50:24 -04:00
Bobby Holley
8c6eaad72a
Bug 899367 - Followup bustage fix for some functions that were renamed out from under me. r=me CLOSED TREE
2013-09-04 14:58:23 -07:00
Bobby Holley
b8f437054d
Bug 899367 - Make GetNativeGlobal consumers call GetWindowProxy and rm the former. r=mccr8
...
Some of the uses of this are a bit nonsensical now, but that's a problem for
another day.
2013-09-04 14:06:57 -07:00
Bobby Holley
401b0ffa0b
Bug 899367 - Remove xpc_UnmarkGrayContext. r=mccr8
...
Default compartment objects are never gray anymore.
2013-09-04 14:06:56 -07:00
Bobby Holley
6d001e824e
Bug 899367 - Stop storing the window proxy on the JSContext. r=mccr8
...
We need to simultaneously report the new Heap Pointer to the cycle collector,
and remove the old machinery for cycle-collecting the default object via the
JSContext.
2013-09-04 14:06:56 -07:00
Bobby Holley
7932b397fb
Bug 899367 - Have nsGlobalWindow go through nsJSContext to access the outer. r=mccr8
2013-09-04 14:06:55 -07:00
Bobby Holley
9ed5f11e8d
Bug 899367 - Explicitly traverse outer windows, rather than doing it via JSContext iteration. r=mccr8
...
Note that this machinery will go away in further patches. But we want to be
deliberate about each of these steps.
2013-09-04 14:06:54 -07:00
Bobby Holley
8abcb2d562
Bug 899367 - Explicitly trace outer windows, rather than doing it via JSContext iteration. r=mccr8
2013-09-04 14:06:54 -07:00
Bobby Holley
5cfc3855a5
Bug 899367 - Only use JSOPTION_UNROOTED_GLOBAL for DOM JSContexts. r=mccr8
...
We don't cycle collect any other kind, so there's no difference between marking
them gray and letting the JS engine mark them black. This also gets rid of that
nasty code which reset the flag, which billm theorizes has to do with faulty
logic in ContextHolder when creating ephemeral sandbox cxes. The assertion in
this patch should catch us if anything goes wrong.
2013-09-04 14:06:54 -07:00
Andrew McCreight
4723c7c5e3
Bug 883920 - use templates for {Hold,Drop}JSObjects. r=peterv
2013-08-16 13:10:17 -07:00
Boris Zbarsky
ec93636aa6
Bug 903419 part 2. Report unhandled rejections in promises. r=smaug,bholley,luke
2013-08-29 00:30:06 -04:00
Boris Zbarsky
7891c84fba
Bug 903419 part 1. Change js::GetErrorTypeName to take a JSRuntime, not a JSContext. r=luke
2013-08-29 00:30:06 -04:00
Masatoshi Kimura
1df155c4fd
Bug 910291 - Hide TraceMalloc debug functions from content. r=bz
2013-08-29 07:48:43 +09:00
Nicholas Nethercote
3f5d413d90
Bug 909597 (part 2) - Rename jsdbgapi.{h,cpp} as {js,vm}OldDebugAPI.{h,cpp}. r=luke.
...
--HG--
rename : js/src/jsdbgapi.h => js/public/OldDebugAPI.h
rename : js/src/jsdbgapi.cpp => js/src/vm/OldDebugAPI.cpp
extra : rebase_source : 9cd65a698e726c43d88d650f40823367bf98feae
2013-08-26 19:05:20 -07:00
Ryan VanderMeulen
2f3de4dea0
Backed out 12 changesets (bug 899367) for Windows and OSX mochitest failures on a CLOSED TREE.
...
Backed out changeset 46cf4c3eb447 (bug 899367)
Backed out changeset d8a876219fc7 (bug 899367)
Backed out changeset d930333f95a7 (bug 899367)
Backed out changeset efae8cc0fff8 (bug 899367)
Backed out changeset 1dd262d146a6 (bug 899367)
Backed out changeset 4c396b8a51d0 (bug 899367)
Backed out changeset c8c30176639a (bug 899367)
Backed out changeset aaa8fbcf9aaf (bug 899367)
Backed out changeset d1a782044a4b (bug 899367)
Backed out changeset b2672ab55046 (bug 899367)
Backed out changeset fc4deb0b06fa (bug 899367)
Backed out changeset b9f1018a609c (bug 899367)
2013-08-27 21:14:54 -04:00
Nicolas Pierron
5779bb4c77
Bug 908903 - Add testing function to toggle jit compiler options. r=jandem
2013-08-27 16:32:04 -07:00
Bobby Holley
6274710e79
Bug 899367 - Make GetNativeGlobal consumers call GetWindowProxy and rm the former. r=mccr8
...
Some of the uses of this are a bit nonsensical now, but that's a problem for
another day.
2013-08-27 15:21:40 -07:00
Bobby Holley
cff26b12ce
Bug 899367 - Remove xpc_UnmarkGrayContext. r=mccr8
...
Default compartment objects are never gray anymore.
2013-08-27 15:21:39 -07:00
Bobby Holley
05b0b5e0f2
Bug 899367 - Stop storing the window proxy on the JSContext. r=mccr8
...
We need to simultaneously report the new Heap Pointer to the cycle collector,
and remove the old machinery for cycle-collecting the default object via the
JSContext.
2013-08-27 15:21:39 -07:00
Bobby Holley
5fe7a003d5
Bug 899367 - Have nsGlobalWindow go through nsJSContext to access the outer. r=mccr8
2013-08-27 15:21:39 -07:00
Bobby Holley
c93dc7b4a1
Bug 899367 - Explicitly traverse outer windows, rather than doing it via JSContext iteration. r=mccr8
...
Note that this machinery will go away in further patches. But we want to be
deliberate about each of these steps.
2013-08-27 15:21:38 -07:00
Bobby Holley
add3235319
Bug 899367 - Explicitly trace outer windows, rather than doing it via JSContext iteration. r=mccr8
2013-08-27 15:21:37 -07:00
Bobby Holley
b7966edcf1
Bug 899367 - Only use JSOPTION_UNROOTED_GLOBAL for DOM JSContexts. r=mccr8
...
We don't cycle collect any other kind, so there's no difference between marking
them gray and letting the JS engine mark them black. This also gets rid of that
nasty code which reset the flag, which billm theorizes has to do with faulty
logic in ContextHolder when creating ephemeral sandbox cxes. The assertion in
this patch should catch us if anything goes wrong.
2013-08-27 15:21:37 -07:00
Boris Zbarsky
a912d1fc13
Bug 908576 part 3. Get rid of PrototypeIDMap structs. r=smaug
2013-08-23 22:42:41 -04:00
Brian Hackett
930150cc7b
Bug 907777 - Add preference for off thread parsing, coalesce with preference for off thread Ion compilation, r=billm.
2013-08-22 07:22:33 -06:00
Ms2ger
87ae95251c
Merge PGO-green changeset from inbound to m-c.
2013-08-22 10:31:44 +02:00
Ms2ger
98ef73b248
Bug 906503 - Remove nsIExceptionProvider; r=bholley
...
It is replaced by a direct special case in the caller.
2013-08-22 08:56:02 +02:00