Commit Graph

815 Commits

Author SHA1 Message Date
Tom Schuster
4a7dd51a60 Bug 939294 - Change xpidl jsval to handles. r=gabor,bz,khuey,bsmedberg,terrence 2014-01-09 18:39:36 +01:00
Boris Zbarsky
98f529fe13 Bug 959926. Fix some miscellaneous unsafe pointer hazards. r=terrence 2014-01-15 14:39:08 -05:00
Till Schneidereit
d05d57c5f9 Bug 958726 - Perform shrinking GC if nsJSContext::GarbageCollectNow is called with aShrinking == ShrinkingGC. r=billm 2014-01-10 23:44:28 +01:00
Andrew McCreight
d1ca98f1f4 Bug 957370 - Make 'total time' measure total time actually running the CC. r=smaug 2014-01-07 17:33:47 -08:00
Andrew McCreight
d721fa69df Bug 956455, part 1 - WrapNative's holder argument is unnecessary. r=smaug 2014-01-06 11:54:43 -08:00
Ehsan Akhgari
68bfe70f09 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
3af27f9483 Bug 950959 - Rename scheduled cycle collector stuff to slice. r=smaug 2014-01-01 11:00:35 -08:00
Andrew McCreight
b3b5eec196 Bug 950949 - Run forgetSkippable per CC not per slice. r=smaug 2014-01-01 11:00:35 -08:00
Andrew McCreight
bcb3fc886f Bug 948554, part 3 - Capture max slice time in logs and telemetry. r=smaug 2013-12-31 09:20:21 -08:00
Andrew McCreight
35974ba765 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
a9e612e653 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
32e8958781 Bug 937960, part 5 - Add pref to activate ICC. r=smaug 2013-12-22 10:14:36 -05:00
Andrew McCreight
859bd06975 Bug 937960, part 4 - Reduce time until CC when it is incremental. r=smaug 2013-12-22 09:58:20 -05:00
Andrew McCreight
27829b6a48 Bug 937960, part 3 - Pass in a small time budget with ICC. r=smaug 2013-12-22 09:58:19 -05:00
Andrew McCreight
0ff7ed0343 Bug 937960, part 2 - Add ICC slice timer and scheduling. r=smaug 2013-12-21 09:35:08 -05:00
Andrew McCreight
4711d84a71 Bug 937960, part 1 - Add static var for incremental CC. r=smaug 2013-12-21 09:35:08 -05:00
Ryan VanderMeulen
bc4d191fcb 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
6a7d8e00d3 Bug 937960, part 4 - Reduce time until CC when it is incremental. r=smaug 2013-12-18 21:22:55 -08:00
Andrew McCreight
95a44e0019 Bug 937960, part 3 - Pass in a small time budget with ICC. r=smaug 2013-12-18 21:22:55 -08:00
Andrew McCreight
eec3b7433a Bug 937960, part 2 - Add ICC slice timer and scheduling. r=smaug 2013-12-18 21:22:55 -08:00
Andrew McCreight
167c393a3d Bug 937960, part 1 - Add ICC pref to nsJSEnv. r=smaug 2013-12-18 21:22:55 -08:00
Ryan VanderMeulen
8b097825dd 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
424df5d1b8 Backed out changesets 472a1be79a9f, 2b43b310858b, and adc20d941bd8 (bug 948554) for Win7 debug xpcshell timeouts. 2013-12-18 19:03:28 -05:00
Andrew McCreight
ffa8faa847 Bug 948554, part 3 - Capture max slice time in logs and telemetry. r=smaug 2013-12-18 11:42:16 -08:00
Andrew McCreight
f64cccb0fa 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
fa328d2440 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
cf2fea9c56 Bug 937960, part 4 - Reduce time until CC when it is incremental. r=smaug 2013-12-18 11:42:16 -08:00
Andrew McCreight
2d095ccd3c Bug 937960, part 3 - Pass in a small time budget with ICC. r=smaug 2013-12-18 11:42:16 -08:00
Andrew McCreight
49236807d6 Bug 937960, part 2 - Add ICC slice timer and scheduling. r=smaug 2013-12-18 11:42:16 -08:00
Andrew McCreight
65159348f0 Bug 937960, part 1 - Add ICC pref to nsJSEnv. r=smaug 2013-12-18 11:42:15 -08:00
Ehsan Akhgari
3e65edba24 Bug 947736 - Build modules/libpref/ in unified mode; r=bsmedberg 2013-12-10 18:10:01 -05:00
Nicholas Nethercote
d59d2c5af8 Bug 947802 (part 2) - Replace enumerateReporters() with getReportsForThisProcess(). r=mccr8. 2013-12-01 16:29:37 -08:00
Luke Wagner
9a4934a9b1 Bug 941830 - Extend asm.js compiled code caching to Workers (r=bent) 2013-12-03 13:31:30 -06:00
Jacek Caban
62a166fdfc Bug 944427 - Fixed char16_t/wchar_t mismatch in dom/ r=bsmedberg 2013-12-04 13:19:38 +01:00
Luke Wagner
713797d27a Bug 929236 - Cache asm.js compiled code in Gecko (r=janv) 2013-11-18 15:49:53 -06:00
Boris Zbarsky
884da06296 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
1d3a1dc071 Bug 935721, part 10 - Separate nsCycleCollector_collect and nsCycleCollector_scheduledCollect. r=smaug 2013-11-20 14:35:17 -08:00
Andrew McCreight
92146c93e8 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
8a976d93c4 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
581e784f12 Bug 933834 - Rename and handlify JS_ValueToString. r=terrence,bz 2013-11-16 13:31:36 +01:00
Ms2ger
c64c57fcbf 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
ebd0246750 Bug 933834 - Rename and handlify JS_ValueToString. r=terrence,bz 2013-11-16 13:31:36 +01:00
Bobby Holley
8012e2c2c2 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
503d7fdd5e No bug - Fix some style issues in DOM code. 2013-11-11 09:04:41 +01:00
Nikhil Marathe
8bac11b4b4 Bug 933010 - AsyncErrorReporter takes bool isChromeError. r=bz 2013-10-30 16:17:36 -07:00
Birunthan Mohanathas
fd194c1851 Bug 784739 - Switch from NULL to nullptr in dom/ (1/2); r=ehsan 2013-10-28 10:04:12 -04:00
Eddy Bruel
24119313fa Bug 880330 - Refactor dom to use the new options API (2/2); r=khuey 2013-10-28 12:51:05 +01:00
Eddy Bruel
7452cb31e5 Bug 880330 - Refactor dom to use the new options API (1/2); r=khuey 2013-10-28 12:48:23 +01:00
Tom Schuster
faba4d7d1c Bug 930782 - Handlify JS_WrapValue. r=terrence 2013-10-26 18:19:05 +02:00
Terrence Cole
4d527083ba Bug 930101 - Fix an exact rooting hazard in JSObjectFromInterface; r=smaug 2013-10-23 15:33:00 -07:00