Boris Zbarsky
3fcb5cd488
Bug 1300834. GC slice logging should say what process the slice is for. r=smaug
2016-09-07 14:21:36 -04:00
Nicholas Nethercote
62b6b0fce6
Bug 1297961 (part 1) - Introduce nsURI::GetSpecOrDefault(). r=hurley.
...
This function is an infallible alternative to nsIURI::GetSpec(). It's useful
when it's appropriate to handle a GetSpec() failure with a failure string, e.g.
for log/warning/error messages. It allows code like this:
nsAutoCString spec;
uri->GetSpec(spec);
printf("uri: %s", spec.get());
to be changed to this:
printf("uri: %s", uri->GetSpecOrDefault().get());
This introduces a slight behavioural change. Previously, if GetSpec() failed,
an empty string would be used here. Now, "[nsIURI::GetSpec failed]" will be
produced instead. In most cases this failure string will make for a clearer
log/warning/error message than the empty string.
* * *
Bug 1297961 (part 1b) - More GetSpecOrDefault() additions. r=hurley.
I will fold this into part 1 before landing.
2016-08-26 16:02:31 +10:00
Ryan VanderMeulen
a7796fef36
Merge m-c to inbound. a=merge CLOSED TREE
2016-08-25 09:00:49 -04:00
Ryan VanderMeulen
9400093a44
Backed out changeset 649c62d13b57 (bug 1297367) for causing talos regressions.
...
CLOSED TREE
2016-08-25 08:41:52 -04:00
Jon Coppeard
ce1b5fc84b
Bug 1297026 - Replace outdated references to 'compartment GC' with 'zone GC' r=terrence
2016-08-25 12:00:56 +01:00
Olli Pettay
ab97380727
Bug 1297367 - Call iCC slice and forgetSkippable right after paint, r=mccr8
2016-08-24 02:50:50 +03:00
Terrence Cole
7b3133d78c
Bug 1297067 - Remove unused decommit threshold r=jonco
2016-08-22 15:01:40 -07:00
James Cheng
26fe3ded58
Bug 1296998 - Fix Wmaybe-uninitialized warning in nsJSEnvironment.cpp. r=smaug
...
MozReview-Commit-ID: J21IuAo8Udu
2016-08-21 22:38:00 -04:00
Sebastian Hengst
bae9babb22
Backed out changeset 721fabf360ff (bug 1110928) for frequent failures to load onload scripts in reftests on Winodws XP and Windows 7 VM. r=backout
2016-08-21 12:29:01 +02:00
Sebastian Hengst
d798737bea
Backed out changeset 31b56ae647c8 (bug 1110928)
2016-08-21 12:27:47 +02:00
Andrew McCreight
e2bdd91026
Bug 1110928, part 4 - Try to pass a relevant zone to PokeGC. r=smaug
...
This means the browser will do less full GCs.
MozReview-Commit-ID: BXf4GGhmbMx
2016-08-19 15:26:56 -07:00
Andrew McCreight
a4b93b107d
Bug 1110928, part 1 - Hoist the LOAD_END PokeGC out of nsJSContext::LoadEnd. r=smaug
...
nsDocumentViewer knows which document is involved which will help us later.
Also, fix a typo in the comment.
MozReview-Commit-ID: L6AyRUV7Y3x
2016-08-19 15:26:56 -07:00
Luke Wagner
503bcf3584
Bug 1283924 - Implement AsyncTask hooks for main thread JSContext (r=bkelly)
...
MozReview-Commit-ID: DCrbDDgbUYd
2016-08-19 13:41:55 -05:00
Terrence Cole
760924f133
Bug 1293360 - Implement MOZ_CCTIMER environment variable; r=mccr8
2016-08-11 11:05:24 -07:00
Jan de Mooij
bfe36450fc
Bug 1292892 part 5 - Replace most nsContentUtils::RootingCx calls with dom::RootingCx. r=bz,terrence
2016-08-11 14:39:23 +02:00
Jan de Mooij
acea709a0a
Bug 1292892 part 3 - Pass RootingContext to ScriptErrorEvent, DispatchScriptErrorEvent. r=bz
2016-08-11 14:39:22 +02:00
Jan de Mooij
7aaedf17ba
Bug 1292892 part 2 - Some RootingContext cleanup. r=bz,terrence
2016-08-11 14:39:22 +02:00
Jan de Mooij
bd0f1c9018
Bug 1292892 part 1 - Stop using JSRuntime outside SpiderMonkey. r=bz,terrence,fitzgen,kanru
2016-08-11 14:39:22 +02:00
Nicholas Nethercote
1f65390cc9
Bug 1293603 (part 2) - Make Run() declarations consistent. r=erahm.
...
This patch makes most Run() declarations in subclasses of nsIRunnable have the
same form: |NS_IMETHOD Run() override|.
As a result of these changes, I had to add |override| to a couple of other
functions to satisfy clang's -Winconsistent-missing-override warning.
2016-08-08 12:18:10 +10:00
Jan de Mooij
705fa31f27
Bug 1286795 part 4 - Change some callbacks to take JSContext instead of JSRuntime. r=terrence
2016-07-23 19:52:47 +02:00
Terrence Cole
1a00fe7507
Bug 1251463 - Remove ShrinkGCBuffers; r=jonco,r=mccr8
2016-02-25 15:52:59 -08:00
Chris Peterson
6c0f810682
Bug 1277106 - Part 2: Expand MOZ_UTF16() strings to u"" string literals. r=Waldo
2016-07-20 22:03:25 -07:00
Chris Peterson
c35faf4632
Bug 1277775 - Replace MOZ_CONSTEXPR{_VAR,_TMPL} with constexpr. r=froydnj
2016-07-08 14:39:53 -07:00
Boris Zbarsky
218b278258
Bug 1282150 part 3. Add a way to get the JSRuntime for the thread, and use it in various places for rooting. r=bholley
2016-07-07 20:08:26 -04:00
Jan de Mooij
a3ac62d76c
Bug 1283855 part 27 - Make more GC APIs take JSContext instead of JSRuntime. r=jonco
2016-07-07 09:55:45 +02:00
Jan de Mooij
43c0eb9efc
Bug 1283855 part 26 - Make more GC APIs take JSContext instead of JSRuntime. r=terrence,mccr8
2016-07-07 09:55:41 +02:00
Jan de Mooij
22f78cde9e
Bug 1283855 part 12 - Make some GC APIs take JSContext instead of JSRuntime. r=sfink
2016-07-05 14:35:21 +02:00
Jan de Mooij
70b39b7234
Bug 1283855 part 9 - Make asm.js/buildId op setters take JSContext instead of JSRuntime. r=bbouvier
2016-07-05 11:06:06 +02:00
Boris Zbarsky
bc375ece53
Bug 1276276 part 6. Get rid of nsJSContext::mContext. r=smaug
2016-06-02 10:34:40 -04:00
Boris Zbarsky
348edefc4b
Bug 1276276 part 4. Eliminate the specialness of nsJSContext::GetCCRefcnt, since we're never using its mContext for anything now. r=peterv
2016-06-02 10:34:40 -04:00
Boris Zbarsky
162370f033
Bug 1276276 part 3. Eliminate nsIScriptContext::GetNativeContext. r=smaug
2016-06-02 10:34:39 -04:00
Boris Zbarsky
1d2ee53764
Bug 1276317 part 3. Move handling of the mem log prefs from being per-nsJSContext to just happening once in nsJSContext::EnsureStatics. r=peterv
2016-06-02 10:34:39 -04:00
Boris Zbarsky
68974d6bed
Bug 1276317 part 2. Move GC zeal handling from nsJSContext to XPCJSRuntime. r=peterv
2016-06-02 10:34:38 -04:00
Boris Zbarsky
dd0c0086a9
Bug 1276317 part 1. Change JS_SetGCZeal to take a JSRuntime, not a JSContext. r=jandem
2016-06-02 10:34:38 -04:00
Boris Zbarsky
3486975032
Bug 1275704 part 3. Remove the nsXPConnect::ReportAllJSExceptions mechanism, since it's dead code now. r=bholley
2016-05-26 19:39:03 -04:00
Kyle Huey
a9cf047227
Bug 1265927: Move nsRunnable to mozilla::Runnable, CancelableRunnable to mozilla::CancelableRunnable. r=froydnj
2016-04-25 17:23:21 -07:00
Emanuel Hoogeveen
d90868f10f
Bug 1260475 - Add an option to disable GC slices triggered by painting. r=terrence a=kwierso
...
MozReview-Commit-ID: B81ZHm0EgZB
2016-03-31 14:26:30 -07:00
Boris Zbarsky
ebe61998ad
Bug 1255817 part 5. Remove the now-unused xpc::SystemErrorReporter. r=bholley
2016-03-23 11:44:54 -04:00
Boris Zbarsky
a50c6aa31a
Bug 1255817 part 2. Get rid of AutoJSAPI::OwnsErrorReporting and AutoJSAPI::TakeOwnershipOfErrorReporting. r=bholley
2016-03-23 11:44:54 -04:00
Tooru Fujisawa
a844923cae
Bug 1153978 - Part 1: Separate buildIdOp from AsmJSCacheOps. r=jandem,bz
2016-01-01 14:19:20 +09:00
Boris Zbarsky
840ce8ebbd
Bug 1255192 part 2. Clean up the JSContext usage around xpc::FindExceptionStackForConsoleReport now that it just needs a JSContext for rooting. r=bholley
2016-03-09 22:27:14 -05:00
Boris Zbarsky
d279274cd3
Bug 1255192 part 1. Remove the JSContext argument of JS::ExceptionStackOrNull. r=bholley
2016-03-09 22:27:13 -05:00
Boris Zbarsky
2a02551283
Bug 1255181. Remove AutoJSAPI::InitWithLegacyErrorReporting. r=bholley
2016-03-09 19:02:25 -05:00
Boris Zbarsky
43973730c3
Bug 1254230 kinda-fix. Make sure to never send script errors with stacks attached to the console service if the associated windows have already had FreeInnerObjects called on them. r=bholley
2016-03-08 17:21:40 -05:00
Boris Zbarsky
bfc4e6d316
Bug 1254380 part 2. Go ahead and log the stack from our exception in AutoJSAPI::ReportException even if we don't have a window. r=bholley
2016-03-08 17:21:40 -05:00
Trevor Saunders
5d79030f94
bug 1252687 - make the ctor for CycleCollectorStats constexpr r=mccr8
2016-03-02 13:37:01 -05:00
Peter Van der Beken
456149fc8d
Bug 1251655 - Remove support for JavaScript-DOM-class and JavaScript-DOM-interface. r=bz.
2016-02-14 15:59:48 +01:00
Wei-Cheng Pan
0929ee73ec
Bug 1208641 - Extract stack from DOM/XPC exception. r=bholley
2016-02-24 02:06:42 -08:00
Andrew McCreight
9f6b653800
Bug 1247679, part 3 - Replace NS_IMPL_CYCLE_COLLECTION_TRACE_JSVAL_MEMBER_CALLBACK with JS_MEMBER. r=smaug
2016-02-22 10:11:02 -08:00
Olli Pettay
76904e224f
Bug 1249932 - indicate in the GC and CC log (browser console) whether it is about default or content process, r=mccr8
2016-02-22 19:37:50 +02:00