Граф коммитов

1273 Коммитов

Автор SHA1 Сообщение Дата
Markus Stange 730b4fc829 Bug 1339897 - Rename PROFILER_LABEL_PRINTF to PROFILER_LABEL_DYNAMIC and make it really cheap. r=Ehsan,njn
Instead of copying and concatenating strings into an mDest buffer in
SamplerStackFramePrintfRAII, require callers to keep the string buffer alive
for the duration of the current scope, and store the pointer to the annotation
string in the ProfileEntry. During stackwalking, concatenate the label and the
annotation (separated by a space) and store the resulting string in the
profile buffer.

MozReview-Commit-ID: GEjcLrhhdvb

--HG--
extra : rebase_source : 683749421ee2122805a249cf413e882ee5f33331
2017-03-22 19:37:33 -04:00
David Major dc67bfc9a3 Bug 1344629 - Part 6: Rewrite unnecessary uses of nsLiteralString. r=dbaron
There's an antipattern where nsLiteralString is used as an unnecessary intermediary in converting from CharT* to CharT*,
e.g. CallAFunctionThatTakesACharPointer(NS_LITERAL_CSTRING("foo").get());
or
NS_NAMED_LITERAL_STRING(foo, "abc");
CallAFunctionThatTakesACharPointer(foo.get());

This patch rewrites the callsites that can be trivially changed to use char*/char16_t*.

I'd somewhat like to remove nsTLiteralString::get() altogether, but in code that's less straightforward than these examples, get() is useful enough to keep.

MozReview-Commit-ID: Kh1rUziVllo

--HG--
extra : rebase_source : c21a65694d6e1c42fd88f73632f7ac8f38d005ae
2017-03-14 15:26:27 +13:00
Iris Hsiao 5cece96e1c Backed out 12 changesets (bug 1344629) for stylo build bustage
Backed out changeset cf4273d3ac30 (bug 1344629)
Backed out changeset a96390e044e0 (bug 1344629)
Backed out changeset d9b330f9bc24 (bug 1344629)
Backed out changeset 2b460fe020af (bug 1344629)
Backed out changeset 0ada91b0452e (bug 1344629)
Backed out changeset 083304fcd6bd (bug 1344629)
Backed out changeset 53d7d1ce2c97 (bug 1344629)
Backed out changeset 55eee7078ae4 (bug 1344629)
Backed out changeset 7d3c06b3eca9 (bug 1344629)
Backed out changeset e5df14c3db61 (bug 1344629)
Backed out changeset 636095ff2815 (bug 1344629)
Backed out changeset 0be052ad24c1 (bug 1344629)
2017-03-14 11:52:24 +08:00
David Major 40f4821701 Bug 1344629 - Part 6: Rewrite unnecessary uses of nsLiteralString. r=dbaron
There's an antipattern where nsLiteralString is used as an unnecessary intermediary in converting from CharT* to CharT*,
e.g. CallAFunctionThatTakesACharPointer(NS_LITERAL_CSTRING("foo").get());
or
NS_NAMED_LITERAL_STRING(foo, "abc");
CallAFunctionThatTakesACharPointer(foo.get());

This patch rewrites the callsites that can be trivially changed to use char*/char16_t*.

I'd somewhat like to remove nsTLiteralString::get() altogether, but in code that's less straightforward than these examples, get() is useful enough to keep.

MozReview-Commit-ID: Kh1rUziVllo

--HG--
extra : rebase_source : c21a65694d6e1c42fd88f73632f7ac8f38d005ae
2017-03-14 15:26:27 +13:00
JerryShih 93438255d9 Bug 1270056 - skip the GC in nsGlobalWindow::SetNewDocument() r=smaug 2017-03-06 17:47:27 +00:00
Jan Varga e161ee742d Bug 1311057 - Part 1: Remove support for packaged apps from asmjscache; r=luke 2017-03-06 18:38:40 +01:00
David Major 6feec2967a Bug 1339968 - Remove NS_MULTILINE_LITERAL_STRING. r=froydnj 2017-02-17 15:24:11 +13:00
Bill McCloskey c6b9c4a0bf Bug 1337575 - Use SystemGroup for GC/CC (r=mccr8)
MozReview-Commit-ID: 9vLuFnuHS9U
2017-02-13 17:02:59 -08:00
cykesiopka.bmo@gmail.com e21da906a4 Bug 1338518, add missing {}, r=smaug 2017-02-12 18:40:09 +02:00
Olli Pettay dd8879be51 Bug 1338518, make parent process to use 10ms gc slices when user is active, r=jonco
--HG--
extra : rebase_source : a502261ecfceb72ebcd030ace2ddd92e09618708
2017-02-11 14:01:26 +02:00
Olli Pettay 4999914c19 Bug 1334432 - Improve GC/CC logging in multi-e10s, r=bustage, CLOSED TREE 2017-02-03 00:11:00 +02:00
Olli Pettay 01dc764f79 Bug 1334432 - Improve GC/CC logging in multi-e10s, r=bustage, CLOSED TREE 2017-02-03 00:07:07 +02:00
Olli Pettay 9cd6e244e9 Bug 1334432 - Improve GC/CC logging in multi-e10s, r=mccr8
--HG--
extra : rebase_source : ed3294efccdcd35f7da5f1b4c59a7d8a30fc491f
2017-02-02 23:32:17 +02:00
Olli Pettay b003a7de36 Bug 1110928, first request GC should be a full GC, r=jonco
--HG--
extra : rebase_source : 6949e66d52d5ab4f75bf2a1875e50c49465f5818
2017-02-01 23:55:38 +02:00
continuation@gmail.com 3c54dab20c Bug 1110928, part 4 - Try to pass a relevant zone to PokeGC. r=smaug
--HG--
extra : rebase_source : 839ac8ef6e0de1a69240f2986c07e1793e750b21
2017-01-23 19:22:26 +02:00
Andrew McCreight c77b68df2f 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.

--HG--
extra : rebase_source : 2d78ae196882d056bdf03e014ff928d7769ba81a
2017-01-23 19:20:54 +02:00
Nathan Froyd ec503a0996 Bug 1329718 - remove nsISupportsVoid and associated machinery; r=erahm
Nothing uses it, it's virtually impossible to use from script, and there
are better ways to pass a |void*| around in C++.
2017-01-10 16:31:48 -05:00
Olli Pettay 0364dbc792 Bug 1326507, remove NS_IMPL_CYCLE_COLLECTION_TRAVERSE_SCRIPT_OBJECTS, r=mccr8
--HG--
extra : rebase_source : 3ae1207308de120b7299b13ecaa95dd1612b3459
2017-01-03 21:47:55 +02:00
Bill McCloskey 34a3f7d50e Bug 1308040 - Notify JSON if extended telemetry enabled (r=jonco,gfritzsche) 2016-10-31 14:01:46 -07:00
Jon Coppeard 556585c65f Bug 1297558 - Remove explicit calls to Expose*ToActiveJS r=mccr8 2016-10-18 17:58:19 +01:00
Jan de Mooij a53986bf29 Bug 1302448 part 1 - Rename CycleCollectedJSRuntime to CycleCollectedJSContext. r=mccr8
--HG--
rename : xpcom/base/CycleCollectedJSRuntime.cpp => xpcom/base/CycleCollectedJSContext.cpp
rename : xpcom/base/CycleCollectedJSRuntime.h => xpcom/base/CycleCollectedJSContext.h
extra : rebase_source : 075214b5057f151520926715b6154e99ae80a0b3
2016-09-14 15:47:32 +02:00
Olli Pettay 9d40047b30 Bug 1297367 - Call iCC slice and forgetSkippable right after paint, r=mccr8 2016-09-12 14:00:15 -07:00
Olli Pettay d449074dfe backout Bug 1297367 because of tart regression, r=backout 2016-09-13 08:47:20 -07:00
Olli Pettay 20092042b7 Bug 1297367 - Call iCC slice and forgetSkippable right after paint, r=mccr8
--HG--
extra : rebase_source : ba695c6da7112da932b5b03577929ffaa94b7116
2016-09-12 14:00:15 -07:00
Boris Zbarsky 4e2656ef99 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 742fc7eb48 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.

--HG--
extra : rebase_source : ddc19a5624354ac098be019ca13cc24b99b80ddc
2016-08-26 16:02:31 +10:00
Ryan VanderMeulen bb47ee1c15 Merge m-c to inbound. a=merge CLOSED TREE 2016-08-25 09:00:49 -04:00
Ryan VanderMeulen 9e5c46d9bc Backed out changeset 649c62d13b57 (bug 1297367) for causing talos regressions.
CLOSED TREE
2016-08-25 08:41:52 -04:00
Jon Coppeard a30843aba8 Bug 1297026 - Replace outdated references to 'compartment GC' with 'zone GC' r=terrence 2016-08-25 12:00:56 +01:00
Olli Pettay 213b519c21 Bug 1297367 - Call iCC slice and forgetSkippable right after paint, r=mccr8
--HG--
extra : rebase_source : c0613da305fc8a2292a9dcb67a0d26a6c74fc69b
2016-08-24 02:50:50 +03:00
Terrence Cole 2d06bc1282 Bug 1297067 - Remove unused decommit threshold r=jonco
--HG--
extra : rebase_source : 83c4d2b86bdda4912c8213d60a8a3789c87e0c61
2016-08-22 15:01:40 -07:00
James Cheng 1b45836b44 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 2f30199523 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 7422ce2634 Backed out changeset 31b56ae647c8 (bug 1110928) 2016-08-21 12:27:47 +02:00
Andrew McCreight a0ddf20ce7 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 9bed765b2e 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 78e6c55df9 Bug 1283924 - Implement AsyncTask hooks for main thread JSContext (r=bkelly)
MozReview-Commit-ID: DCrbDDgbUYd

--HG--
extra : rebase_source : 2d85b7eb5635740ba8a34b6deeb0c76bf96376e7
2016-08-19 13:41:55 -05:00
Terrence Cole a7d2e09c9e Bug 1293360 - Implement MOZ_CCTIMER environment variable; r=mccr8 2016-08-11 11:05:24 -07:00
Jan de Mooij c33bac8363 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 da9820d563 Bug 1292892 part 3 - Pass RootingContext to ScriptErrorEvent, DispatchScriptErrorEvent. r=bz 2016-08-11 14:39:22 +02:00
Jan de Mooij 5a6befce76 Bug 1292892 part 2 - Some RootingContext cleanup. r=bz,terrence 2016-08-11 14:39:22 +02:00
Jan de Mooij 0ad12515f4 Bug 1292892 part 1 - Stop using JSRuntime outside SpiderMonkey. r=bz,terrence,fitzgen,kanru 2016-08-11 14:39:22 +02:00
Nicholas Nethercote e7f10a07fd 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.

--HG--
extra : rebase_source : 815d0018b0b13329bb5698c410f500dddcc3ee12
2016-08-08 12:18:10 +10:00
Jan de Mooij fd0edec3bf 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 7cf17460c7 Bug 1251463 - Remove ShrinkGCBuffers; r=jonco,r=mccr8
--HG--
extra : rebase_source : e185ec4d3a043bb7227fdc0a296a14811741cf17
2016-02-25 15:52:59 -08:00
Chris Peterson b175c9fdd5 Bug 1277106 - Part 2: Expand MOZ_UTF16() strings to u"" string literals. r=Waldo 2016-07-20 22:03:25 -07:00
Chris Peterson 43c2748f66 Bug 1277775 - Replace MOZ_CONSTEXPR{_VAR,_TMPL} with constexpr. r=froydnj 2016-07-08 14:39:53 -07:00
Boris Zbarsky d208b0de7a 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 7ec38687c8 Bug 1283855 part 27 - Make more GC APIs take JSContext instead of JSRuntime. r=jonco
--HG--
extra : rebase_source : b666bd88d0247b58f7311f81e5116199779cc806
2016-07-07 09:55:45 +02:00
Jan de Mooij 1ffe7cc891 Bug 1283855 part 26 - Make more GC APIs take JSContext instead of JSRuntime. r=terrence,mccr8
--HG--
extra : rebase_source : 68e6c63b179094f2441f01df58e0bdd68620ed09
2016-07-07 09:55:41 +02:00
Jan de Mooij c8334f438a 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 b6c8bdd67a 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 b97284ce16 Bug 1276276 part 6. Get rid of nsJSContext::mContext. r=smaug 2016-06-02 10:34:40 -04:00
Boris Zbarsky 30b1d353e7 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 f02f5d431d Bug 1276276 part 3. Eliminate nsIScriptContext::GetNativeContext. r=smaug 2016-06-02 10:34:39 -04:00
Boris Zbarsky 0ddbab28c8 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 145992b47d Bug 1276317 part 2. Move GC zeal handling from nsJSContext to XPCJSRuntime. r=peterv 2016-06-02 10:34:38 -04:00
Boris Zbarsky f86c21cecc 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 98aa24ddc7 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 c73656947b Bug 1265927: Move nsRunnable to mozilla::Runnable, CancelableRunnable to mozilla::CancelableRunnable. r=froydnj 2016-04-25 17:23:21 -07:00
Emanuel Hoogeveen 1efa5deaf7 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 9d00c4004b Bug 1255817 part 5. Remove the now-unused xpc::SystemErrorReporter. r=bholley 2016-03-23 11:44:54 -04:00
Boris Zbarsky e3b2de6aa9 Bug 1255817 part 2. Get rid of AutoJSAPI::OwnsErrorReporting and AutoJSAPI::TakeOwnershipOfErrorReporting. r=bholley 2016-03-23 11:44:54 -04:00
Tooru Fujisawa e2a8d2a6b4 Bug 1153978 - Part 1: Separate buildIdOp from AsmJSCacheOps. r=jandem,bz 2016-01-01 14:19:20 +09:00
Boris Zbarsky 692754b232 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 891b63eeba Bug 1255192 part 1. Remove the JSContext argument of JS::ExceptionStackOrNull. r=bholley 2016-03-09 22:27:13 -05:00
Boris Zbarsky c1e007e11b Bug 1255181. Remove AutoJSAPI::InitWithLegacyErrorReporting. r=bholley 2016-03-09 19:02:25 -05:00
Boris Zbarsky 3e5ab54341 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 81b9b7ac71 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 9dff1fcf58 bug 1252687 - make the ctor for CycleCollectorStats constexpr r=mccr8 2016-03-02 13:37:01 -05:00
Peter Van der Beken 946ac27409 Bug 1251655 - Remove support for JavaScript-DOM-class and JavaScript-DOM-interface. r=bz.
--HG--
extra : rebase_source : 88c93e93905e20d2f6755d67d86902fdfc923eb4
2016-02-14 15:59:48 +01:00
Wei-Cheng Pan 601dc81eb0 Bug 1208641 - Extract stack from DOM/XPC exception. r=bholley 2016-02-24 02:06:42 -08:00
Andrew McCreight b80e656e9e 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 c244a5179d Bug 1249932 - indicate in the GC and CC log (browser console) whether it is about default or content process, r=mccr8
--HG--
extra : rebase_source : 94554d4651face04b90c6b9f1458d08f67be4a0b
2016-02-22 19:37:50 +02:00
Andrew McCreight 1575a306bd Bug 1052793, part 2 - Shrink GC buffers during compartmental GCs. r=terrence
With part 1, many more GCs are compartmental, so it is no longer a
good indication that there is heavy activity. If we don't regularly
try to shrink GC buffers, we don't decommit arenas enough, causing a
large regression in memory usage.
2016-02-18 15:21:48 -08:00
Andrew McCreight 8705772a81 Bug 1052793, part 1 - Do per-zone GC for CC_WAITING triggers. r=smaug 2016-02-18 15:21:48 -08:00
Kyle Huey 91efc5a86c Bug 1241764: Replace nsPIDOMWindow with nsPIDOMWindowInner/Outer. r=mrbkap,smaug 2016-01-30 09:05:36 -08:00
David Rajchenbach-Teller 42b6a4145f Bug 1224374 - Profiler labels for the 25 top chrome hangs;r=BenWa,MarcoZ
Experience shows that we do not have enough profiler labels to make
BHR hang reports meaningful. This patch adds enough labels to let us
exploit hang reports matching the 25 topmost chrome hangs.

--HG--
extra : rebase_source : b9ec379c58255a250db1020377147c95c82df712
2016-01-14 23:03:11 +01:00
Sebastian Hengst d8d4a2d1a5 Backed out 2 changesets (bug 1224374) for Windows bustage. r=bustage on a CLOSED TREE
Backed out changeset 5f458e6e4997 (bug 1224374)
Backed out changeset 0dc02cb0b604 (bug 1224374)
2016-01-19 21:30:41 +01:00
David Rajchenbach-Teller f5531f5260 Bug 1224374 - Profiler labels for the 25 top chrome hangs;r=BenWa,MarcoZ
Experience shows that we do not have enough profiler labels to make
BHR hang reports meaningful. This patch adds enough labels to let us
exploit hang reports matching the 25 topmost chrome hangs.

--HG--
extra : rebase_source : b9ec379c58255a250db1020377147c95c82df712
2016-01-14 23:03:11 +01:00
Nathan Froyd 01583602a9 Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout.  The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.

CLOSED TREE makes big refactorings like this a piece of cake.

 # The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    xargs perl -p -i -e '
 s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
 s/nsRefPtr ?</RefPtr</g;   # handle declarations and variables
'

 # Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h

 # Handle nsRefPtr.h itself, a couple places that define constructors
 # from nsRefPtr, and code generators specially.  We do this here, rather
 # than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
 # things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
     mfbt/nsRefPtr.h \
     xpcom/glue/nsCOMPtr.h \
     xpcom/base/OwningNonNull.h \
     ipc/ipdl/ipdl/lower.py \
     ipc/ipdl/ipdl/builtin.py \
     dom/bindings/Codegen.py \
     python/lldbutils/lldbutils/utils.py

 # In our indiscriminate substitution above, we renamed
 # nsRefPtrGetterAddRefs, the class behind getter_AddRefs.  Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
    xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'

if [ -d .git ]; then
    git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
    hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi

--HG--
rename : mfbt/nsRefPtr.h => mfbt/RefPtr.h
2015-10-18 01:24:48 -04:00
Andrew McCreight 2e00ba83cd Bug 1207752 - Increase how long we let incremental GC run before forcing it to finish. r=smaug
Some users with many tabs have reported extremely long GC pauses
triggered by the CC forcing the GC to finish. Increasing the limit may
cause memory to be somewhat higher for these users, but that is better
than 30 second pauses.
2015-09-23 12:12:00 +02:00
Nicholas Nethercote f429eae6a5 Bug 1203427 (part 5) - Add logging of timer firings. r=froydnj. 2015-09-10 00:50:51 -07:00
Andrea Marchesini 26d2b33735 Bug 1203916 - Get rid of NS_DOMReadStructuredClone and NS_DOMWriteStructuredClone, r=smaug 2015-09-15 01:05:44 +08:00
Terrence Cole 2c05aff66d Bug 1193032 - Part 2: Make unlimited SliceBudget initialization explicit; r=ehoogeveen,r=mccr8 2015-08-11 08:42:24 -07:00
Birunthan Mohanathas 7315345693 Bug 1191100 - Remove XPIDL signature comments in .cpp files. r=ehsan
Comment-only so DONTBUILD.
2015-08-04 16:17:36 -07:00
Jon Coppeard b113657091 Bug 1188834 - Make compacting GC when inactive less frequent except on nightly r=smaug 2015-07-30 11:03:06 +01:00
Andrea Marchesini c5964a1705 Bug 1186544 - A better test suite for StructuredCloneAlgorithm, r=smaug
--HG--
rename : dom/base/test/iframe_cloning_fileList.html => dom/base/test/iframe_postMessages.html
rename : dom/base/test/script_cloning_fileList.js => dom/base/test/script_postmessages_fileList.js
2015-07-28 08:37:37 +01:00
Alexandre Poirot 18efabed2b Bug 814497 - Pass SavedFrame from JS::ErrorObject to nsIScriptError. r=bholley 2015-07-09 07:02:00 -04:00
Martin Thomson 30fc9b669e Bug 1181262 - Disabling more code under --disable-webrtc, r=dholbert,bwc
--HG--
rename : dom/media/RTCIdentityProviderRegistrar.cpp => dom/media/webrtc/RTCIdentityProviderRegistrar.cpp
rename : dom/media/RTCIdentityProviderRegistrar.h => dom/media/webrtc/RTCIdentityProviderRegistrar.h
extra : commitid : 1wyjSLjnSs8
extra : rebase_source : b7777f20ed69324e8572f34f4cb1246d704b2c65
2015-07-08 12:27:45 -07:00
Dragana Damjanovic 7987d2203e Bug 905127 - Part 2 - remove unnecessary nsNetUtil.h includes r=jduell 2015-07-06 07:55:00 +02:00
Martin Thomson 93f1797507 Bug 1172785 - RTCCertificate implementation, r=rbarnes
--HG--
extra : commitid : CBco7h85lO6
extra : rebase_source : 9cec281dd07e6d503a19a0ea57e5d4ceee98197c
2015-07-06 10:40:04 -07:00
Jan de Mooij 2c2b7af49c Bug 1177892 part 4 - Remove INT_TO_JSVAL. r=evilpie 2015-06-30 21:10:04 -07:00
Jan de Mooij 155b1afd35 Bug 1177892 part 1 - Remove BOOLEAN_TO_JSVAL and STRING_TO_JSVAL. r=evilpie 2015-06-30 11:20:56 -07:00
Ryan VanderMeulen 7483c0563e Backed out changesets ad58c270ce87 and 849151330d60 (bug 1177892) for B2G bustage.
CLOSED TREE
2015-06-30 15:48:11 -04:00
Jan de Mooij 731f441d6e Bug 1177892 part 1 - Remove BOOLEAN_TO_JSVAL and STRING_TO_JSVAL. r=evilpie
--HG--
extra : rebase_source : f7ae63c351c82516e7db48a12c4cfb2048a81805
2015-06-30 11:20:56 -07:00
Jan de Mooij 976586cb5f Bug 1177825 - Remove JSVAL_* constants. r=evilpie 2015-06-29 18:36:44 -07:00
Andrew McCreight 10dd21a3ef Bug 886459, part 3 - Remove simple uses of nsIJSRuntimeService to get the JSRuntime. r=bholley 2015-06-26 18:44:14 -07:00
Ms2ger eb254e80bd Bug 1171451 - Use the correct type for the argv argument to NS_CreateJSArgv and the nsJSArgArray constructor; r=jst
--HG--
extra : commitid : Lkj3L0VTJ3b
2015-06-05 11:23:00 +02:00
Terrence Cole 6580e192db Bug 1166789 - Cleanup javascript.options.mem.log formatting; r=sfink, r=mccr8
--HG--
extra : rebase_source : 23f05745a2bfffbebab21fdcba4f7adf47616e8a
2015-05-20 09:14:29 -07:00
Eric Rahm 4879ae86f4 Bug 1165518 - Part 2: Replace prlog.h with Logging.h. rs=froydnj 2015-05-19 11:15:34 -07:00
Terrence Cole 161a4c26ba Bug 1164602 - Replace js::NullPtr and JS::NullPtr with nullptr_t; r=sfink 2015-05-13 14:07:34 -07:00
Boris Zbarsky 864f723c0c Bug 1155946 part 2. Add mayResolve methods to DOM classes with resolve hooks. r=peterv 2015-04-28 12:25:55 -04:00
Jon Coppeard d68d8d5ba3 Bug 1149752 - Cancel GC caused by user inactivity if the user becomes active again r=terrence r=smaug 2015-04-13 16:42:41 +01:00
Mike Hommey b077d9624d Bug 1134920 - Use moz_xmalloc/moz_xrealloc/free instead of nsMemory::Alloc/Realloc/Free. r=nfroyd 2015-04-01 13:51:45 +09:00
Andrew McCreight 2e05cdb78d Bug 1147951, part 2 - Remove unused JAVASCRIPT definition from nsJSEnvironment.cpp. r=baku 2015-03-30 10:45:39 -07:00
Ehsan Akhgari 883849ee32 Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj
This patch was automatically generated using the following script:

function convert() {
echo "Converting $1 to $2..."
find . \
       ! -wholename "*/.git*" \
       ! -wholename "obj-ff-dbg*" \
         -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 MOZ_OVERRIDE override
convert MOZ_FINAL final
2015-03-21 12:28:04 -04:00
Boris Zbarsky dc24477d79 Bug 1117172 part 3. Change the wrappercached WrapObject methods to allow passing in aGivenProto. r=peterv
The only manual changes here are to BindingUtils.h, BindingUtils.cpp,
Codegen.py, Element.cpp, IDBFileRequest.cpp, IDBObjectStore.cpp,
dom/workers/Navigator.cpp, WorkerPrivate.cpp, DeviceStorageRequestChild.cpp,
Notification.cpp, nsGlobalWindow.cpp, MessagePort.cpp, nsJSEnvironment.cpp,
Sandbox.cpp, XPCConvert.cpp, ExportHelpers.cpp, and DataStoreService.cpp.  The
rest of this diff was generated by running the following commands:

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObjectInternal\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObjectInternal\((?:aCx|cx|aContext|aCtx|js))\)/\1, aGivenProto)/g'

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapNode\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapNode\((?:aCx|cx|aContext|aCtx|js))\)/\1, aGivenProto)/g'

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObject\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(Binding(?:_workers)?::Wrap\((?:aCx|cx|aContext|aCtx|js), [^,)]+)\)/\1, aGivenProto)/g'
2015-03-19 10:13:33 -04:00
Yoshi Huang 38c3210ae5 Bug 1138886 - Structured Clone for MozNDEFRecord. r=smaug
From 9b1bdef0b25b41d0448662ec689a961ae4e8fcd2 Mon Sep 17 00:00:00 2001
---
 dom/base/StructuredCloneTags.h     |   2 +
 dom/base/nsJSEnvironment.cpp       |  29 +++++++++
 dom/nfc/MozNDEFRecord.cpp          | 122 ++++++++++++++++++++++++++++++++++---
 dom/nfc/MozNDEFRecord.h            |  20 ++++--
 js/xpconnect/src/ExportHelpers.cpp |  36 ++++++++++-
 5 files changed, 193 insertions(+), 16 deletions(-)
2015-01-30 15:36:42 +08:00
Jon Coppeard 2b3e9874b8 Bug 1130439 - Trigger compacting GCs after the user becomes inactive r=smaug r=terrence 2015-02-24 09:40:02 +00:00
Ryan VanderMeulen b8ac223995 Backed out changeset cd6461410a7a (bug 1130439) for frequent SM test timeouts/failures.
CLOSED TREE
2015-02-24 15:11:08 -05:00
Jon Coppeard d6e694292c Bug 1130439 - Trigger compacting GCs after the user becomes inactive r=smaug r=terrence 2015-02-24 09:40:02 +00:00
Jon Coppeard 5e9b465d18 Bug 1133759 - Always shrink GC buffers at the end of a shrinking GC r=terrence 2015-02-18 12:35:05 +00:00
Jon Coppeard 6136d65f9b Bug 1127792 - Add a pref to globally disable compacting GC r=terrence r=mccr8 r=bent 2015-02-02 14:39:34 +00:00
Mike Hommey a35dbaeebf Bug 1126593 - Add a global fallible instance, so that using fallible works directly, everywhere. r=njn
--HG--
rename : memory/mozalloc/fallible.h => memory/fallible/fallible.h
2015-02-02 09:56:13 +09:00
Andrew McCreight c9b9054838 Backout bug 1052793 for exposing bad decommitting behavior for compartmental GCs. 2015-01-08 09:54:13 -08:00
Jon Coppeard 0b1dcc49a2 Bug 1099152 - Make external GC APIs take invocation kind as a parameter r=terrence r=mccr8 2015-01-02 17:19:43 +00:00
Jon Coppeard e004c7d3a2 Bug 1099152 - Separate out external APIs to start and continute an incremental GC r=terrence r=mccr8 2015-01-02 17:19:43 +00:00
Nicholas Nethercote 97b5d348cc Bug 1014341 (part 1) - Remove trace-malloc. r=dbaron,glandium.
--HG--
extra : rebase_source : 771710c5427141d738eef112fab00951eb8e20e3
2015-01-07 16:13:03 -08:00
Ehsan Akhgari 961f45f728 Bug 1117264 - Mark virtual overridden functions as MOZ_OVERRIDE in dom/base code; r=baku 2015-01-06 11:52:45 -05:00
Phil Ringnalda e75fcfb043 Backed out 4 changesets (bug 1116821, bug 1110928) for Windows OOMs
CLOSED TREE

Backed out changeset 9d593597df5f (bug 1110928)
Backed out changeset d68c75986335 (bug 1110928)
Backed out changeset 21d807074550 (bug 1110928)
Backed out changeset ca77252e50dd (bug 1116821)
2015-01-04 21:12:19 -08:00
Andrew McCreight f65b00d7c0 Bug 1110928, part 3 - Try to pass a relevant zone to PokeGC. r=smaug
This means the browser will do less full GCs.
2015-01-04 17:46:50 -08:00
Andrew McCreight 9316f22371 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.
2015-01-04 17:46:50 -08:00
Andrew McCreight a308cb0dfc Bug 1088268 - Use a switch statement in DOMGCSliceCallback. r=smaug 2015-01-04 17:46:49 -08:00
Wes Kocher 6d40130fd9 Backed out 5 changesets (bug 1099152) for hazard build failures on a CLOSED TREE
Backed out changeset 3d195c54dcf1 (bug 1099152)
Backed out changeset e5a903979b5f (bug 1099152)
Backed out changeset 969965f4c893 (bug 1099152)
Backed out changeset 1e4e3b85c620 (bug 1099152)
Backed out changeset 501a22044336 (bug 1099152)
2015-01-02 12:43:48 -08:00
Jon Coppeard 706b85bf8f Bug 1099152 - Make external GC APIs take invocation kind as a parameter r=terrence r=mccr8 2015-01-02 17:19:43 +00:00
Jon Coppeard 4113634f8c Bug 1099152 - Separate out external APIs to start and continute an incremental GC r=terrence r=mccr8 2015-01-02 17:19:43 +00:00
Dan Gohman 8bacfeb968 Bug 1054671 - Constify static callback arrays r=ehsan 2014-12-16 16:30:39 -08:00
Andrew McCreight 13f89f6e49 Bug 1111076 - Get rid of nsIScriptContext::GC(). r=smaug 2014-12-16 08:02:27 -08:00
Nigel Babu b91168c141 Backed out changeset 6a3a0e3bfaf6 (bug 1054671) for B2G emulator build bustage on CLOSED TREE 2014-12-16 11:24:15 +05:30
Dan Gohman d791adb2b0 Bug 1054671 - Constify static callback arrays r=ehsan 2014-12-15 20:53:58 -08:00
Andrew McCreight 9d83b26756 Bug 1052793 - Do per-zone GC for CC_WAITING triggers. r=smaug 2014-12-13 21:17:35 -08:00
Olli Pettay bed81b1fde Bug 1105089, try to have shorter ICC slices during animations, r=mccr8
--HG--
extra : rebase_source : bfe8cc2825b7cb2ec86f6e8f5ba590593e1c378b
2014-11-27 13:47:51 +02:00
Terrence Cole df4c5ce286 Bug 1099287 - Remove the unused nsJSContext::ReportPendingException; r=bholley
--HG--
extra : rebase_source : 5bd2dd41b5687632af5380a241ab683e1de8bc41
2014-11-14 14:58:58 -08:00
Olli Pettay f82ed0c20b Bug 1097302, increase the number of major forget skippables, r=mccr8
--HG--
extra : rebase_source : b465ff26006f688cb76d0f3bfe0ed1a564081992
2014-11-12 21:33:50 +02:00
Andrew McCreight c8382f50c3 Bug 1018397 - Start an ICC timer even if ICC is globally disabled. r=smaug 2014-11-13 07:11:55 -08:00
Olli Pettay a668b2bafc Bug 1097240 - 5ms iCC slice, r=mccr8
--HG--
extra : rebase_source : ed97d58be65d21954d675f65e46ed45d151bb6a0
2014-11-12 19:28:51 +02:00
Luke Wagner 176eac56f4 Bug 1087178 - OdinMonkey: explain why 'not stored in cache' (r=bbouvier,janv)
--HG--
extra : rebase_source : d37893913a09d5a5b339e4ae4ee42f873d449d1e
2014-10-22 17:28:07 -05:00
Emanuel Hoogeveen fbc3e91445 Bug 1084651 - Part 5: Simplify Cycle Collector logic now that SliceBudget makes more sense. r=mccr8 2014-11-06 10:14:00 +01:00
Carsten "Tomcat" Book d87e8af66c Backed out changeset 77959236fb15 (bug 1084651) 2014-11-07 15:30:16 +01:00
Emanuel Hoogeveen 0d92fda72d Bug 1084651 - Part 5: Simplify Cycle Collector logic now that SliceBudget makes more sense. r=mccr8 2014-11-06 10:14:00 +01:00
Carsten "Tomcat" Book 13de0f42c9 Backed out 7 changesets (bug 1084651) for ASAN Bustage on a CLOSED TREE
Backed out changeset dd2b3e78b425 (bug 1084651)
Backed out changeset 2711fbd91819 (bug 1084651)
Backed out changeset 59a163addd79 (bug 1084651)
Backed out changeset d36f6dbbf925 (bug 1084651)
Backed out changeset 78102b62a4a0 (bug 1084651)
Backed out changeset 06387a2343a0 (bug 1084651)
Backed out changeset 2f8e7c39573e (bug 1084651)
2014-11-05 15:20:25 +01:00
Emanuel Hoogeveen dd0cdda357 Bug 1084651 - Part 5: Simplify Cycle Collector logic now that SliceBudget makes more sense. r=mccr8 2014-10-21 11:54:00 +02:00
Andrew McCreight fc4741440b Bug 1085626 - FullGCTimerFired doesn't need to pass around a reason. r=smaug 2014-10-23 09:59:36 -07:00
Olli Pettay 63a24cde86 Bug 935846, nsJSEnvironment should get a shutdown notification also in child processes, r=romaxa
--HG--
extra : rebase_source : 782bc88e47ecb750b4220fe01e3f74ebcfa05493
2014-10-22 18:57:32 +03:00
Andrew McCreight cc506c4751 Bug 727965 - Trigger CC_WAITING GCs based on number of freed JS objects and zones. r=smaug 2014-10-20 10:07:52 -07:00
Tom Schuster bf9324688d Bug 1069694 - Remove OldDebugAPI from the browser. r=shu 2014-10-12 19:37:41 +02:00
Eric Rahm 8d715a7fe4 Bug 806819 - Part 3: Remove redundant FORCE_PR_LOG entries. r=ehsan 2014-10-08 13:17:32 -07:00
Wes Kocher 445e1466e9 Backed out 5 changesets (bug 806819) for WinXP test failures on a CLOSED TREE
Backed out changeset 009ae35b0c67 (bug 806819)
Backed out changeset 5a57f87f5061 (bug 806819)
Backed out changeset f06cd735b5b3 (bug 806819)
Backed out changeset e25a2a8d4af4 (bug 806819)
Backed out changeset 70a167982c3f (bug 806819)
2014-10-06 16:32:50 -07:00
Eric Rahm 80d2b8bba6 Bug 806819 - Part 3: Remove redundant FORCE_PR_LOG entries. r=ehsan
--HG--
extra : rebase_source : c96eea1c12ea8c19314393f0e8b4b57a4316a61d
2014-10-06 13:08:20 -07:00
Bobby Holley 8b421a48d3 Bug 1070842 - Factor script error event dispatch into a separate function. r=bz 2014-09-29 15:34:21 +02:00
Bobby Holley 94bd419133 Bug 1070842 - Remove ambiguous globals from xpc::ErrorReporter and make meanings explicit. r=bz 2014-09-29 15:34:20 +02:00
Bobby Holley a24c29adc9 Bug 1070131 - Switch originPrincipals to a mutedError flags. r=luke,r=bz
--HG--
rename : js/src/jsapi-tests/testOriginPrincipals.cpp => js/src/jsapi-tests/testMutedErrors.cpp
2014-09-29 10:44:30 +02:00
Bobby Holley c4922ac2f8 Bug 1070131 - Reduce the cases where we dispatch nsScriptErrorEvent. r=bz 2014-09-29 10:44:29 +02:00
Bobby Holley e3eca2660e Bug 1070696 - Rename xpc::GetNativeForGlobal to xpc::NativeGlobal and make it accept non-global JSObjects. r=smaug
The method is infallible, and making the callers invoke
js::GetGlobalForObjectCrossCompartment manually is dumb.
2014-09-21 21:31:53 +02:00
Bobby Holley 04cf67421e Bug 1065452 - Re-route exceptions directed at addon globals to their associated DOMWindow. r=bz 2014-09-15 14:12:13 +02:00
Bobby Holley 7c712dca7b Bug 981198 - Make JS_{Get,Set}ErrorReporter take a JSRuntime. r=terrence,r=bz 2014-09-09 16:02:10 -07:00
Chris Peterson d126c3c24f Bug 1063962 - Replace jschar typedef with C++11 char16_t type. r=jandem 2014-07-21 21:43:21 -07:00
Bobby Holley 9ff6cd212d Bug 1062077 - Merge NS_ScriptErrorReporter and xpc::SystemErrorReporter. r=bz
We keep the latter name because it's referenced in more places. Error reporters
will go away entirely in bug 981187.
2014-09-08 16:30:11 -07:00
Bobby Holley 48bda833a2 Bug 1062077 - Report exceptions immediately for non-window globals, and assert that we have a window in ScriptErrorEvent. r=bz
Note that this is a no-op right now, because NS_ScriptErrorReporter currently
relies on nsIScriptContext to get its global, and thus will only ever operate
on window globals. But that will change once we merge this code with that in
xpc::SystemErrorReporter.
2014-09-08 16:30:11 -07:00
Bobby Holley 7ba663f3ec Bug 1062077 - Hoist console logging duties into xpc::ErrorReport. r=bz 2014-09-08 16:30:11 -07:00
Bobby Holley e85bd78d5d Bug 1062077 - Introduce xpc::ErrorReport. r=bz
I've got it! Let's just wrap the JS thing in an XPCOM thing that duplicates
its fields with a different ownership model! We totally need another one of
those, right? And we could even stick it in XPConnect! </sarcasm>

In seriousness - the code to own, format, and display error reports is
currently spread between the JS engine, JSErrorReporters, an async Runnable
abstraction, and elsewhere. We need to condense it somewhere to start chipping
away at this mess.
2014-09-08 16:30:10 -07:00
Bobby Holley 06cc2ae3c2 Bug 1062631 - Remove exception swallowing code in NS_ScriptErrorReporter. r=bz
See bug 1062631 comment 0.
2014-09-08 13:36:22 -07:00
Bobby Holley 409b2e58bf Bug 1063271 - Undo bug 796938 part 10. r=smaug 2014-09-05 08:54:13 -07:00
Nicholas Nethercote 94f8ec5cee Bug 1061066 - Make DMD work properly with e10s. r=mccr8.
--HG--
extra : rebase_source : 35ff4f1b3c7d4af91cbc5f813030136ffc3b70e4
2014-09-01 17:22:53 -07:00
Ehsan Akhgari 0653303071 Bug 1060987 - Fix more bad implicit constructors in DOM; r=baku
--HG--
extra : rebase_source : 01709017e97fdc96d1d53eb881efc1792118edc4
2014-09-01 20:49:25 -04:00
Phil Ringnalda 117bb1a341 Backed out 6 changesets (bug 1060982, bug 1061058, bug 1060987, bug 1061060, bug 1060930) for build bustage
CLOSED TREE

Backed out changeset c23b8418e6be (bug 1060987)
Backed out changeset a8cddc6bdffc (bug 1061060)
Backed out changeset b5af5cbdac3f (bug 1060982)
Backed out changeset 4912d451011a (bug 1060930)
Backed out changeset bdacbf453238 (bug 1061058)
Backed out changeset da6c71a8f5ae (bug 1060987)
2014-09-01 16:48:51 -07:00
Ehsan Akhgari 6c932dea6c Bug 1060987 - Fix more bad implicit constructors in DOM; r=baku 2014-09-01 18:00:53 -04:00
Bobby Holley e9fb2caf27 Bug 981218 - Remove default compartment objects. r=luke
\o/
2014-08-21 17:13:51 -07:00
Bobby Holley 21082e49e4 Bug 796938 - Use GetEntryGlobal in NS_ScriptErrorReporter. r=smaug 2014-08-19 12:02:07 -07:00
Bobby Holley e70ddb7476 Bug 1052052 - Hoist Auto*JSContext into nsContentUtils and kill nsCxPusher.{cpp,h}. r=gabor 2014-08-14 18:47:15 -07:00
Ryan VanderMeulen 30ae466592 Backed out changesets 5b1a3161f614, 17a9673ed782, and a9b8c346d295 (bug 1052052) for B2G non-unified bustage. 2014-08-14 17:23:10 -04:00
Bobby Holley 3e4d70a655 Bug 1052052 - Hoist Auto*JSContext into nsContentUtils and kill nsCxPusher.{cpp,h}. r=gabor 2014-08-14 12:54:34 -07:00
Bill McCloskey 280e8c74a5 Bug 1032592 - Allow principals to be sent with the message manager (r=bent)
--HG--
rename : content/base/test/test_messagemanager_principal.html => content/base/test/test_messagemanager_send_principal.html
2014-08-05 21:46:01 -07:00
Ms2ger 5da7619768 Bug 1043853 - Share the code for structured cloning of ImageData objects across main-thread and workers implementations; r=jst 2014-08-01 22:47:47 +02:00
Wes Kocher 7a4f0b4c18 Backed out changeset a668ab2d8dd3 (bug 1043853) for bustage 2014-08-01 14:25:10 -07:00
Ms2ger 92e6aaee17 Bug 1043853 - Share the code for structured cloning of ImageData objects across main-thread and workers implementations; r=jst 2014-08-01 22:47:47 +02:00
Bobby Holley 6807884378 Bug 940305 - Move extraWarnings to RuntimeOptions with a per-compartment override. r=jandem,r=khuey 2014-07-29 21:00:37 -07:00
Nicholas Nethercote c07ebda3e2 Bug 1035570 (part 3) - DMD: Add DMDAnalyzeHeap(), a heap snapshot function. r=erahm,mccr8.
The patch also adds DMDAnalyzeReports() as a synonym for DMDReportAndDump(),
and deprecates the latter.

--HG--
extra : rebase_source : 651246aa7a0a301f804c124f25beb0e8ed6cd67f
2014-05-29 23:46:09 -07:00
Bob Owen abc64bfaad Bug 1037564 Part 4: Replace nsCxPusher in nsJSContext::SetProperty. r=bholley 2014-07-18 12:58:10 +01:00
Jon Coppeard 8b4f6eb2b3 Bug 1017141 - Add prefs for setting min/max empty chunk counts r=bent 2014-07-16 10:01:20 +01:00
Jan de Mooij d26a13e060 Bug 1037869 - Fix remaining Latin1 string issues. r=terrence
--HG--
extra : rebase_source : b6fc9024f1a6c7eb9169b6c8c906916b4b1c197e
2014-07-14 22:19:36 +02:00
Shashank Sabniveesu 7b2e2048f8 Bug 1034910 - Make the dtor of nsJSArgArray protected. r=smaug 2014-07-11 13:19:00 -04:00
Bobby Holley d204a01c8f Bug 940316 - Move werror to RuntimeOptions. r=jandem 2014-07-11 08:30:47 -07:00
Tim Taubert 3f882a20a0 Bug 1026314 - Rename Key to CryptoKey in WebCrypto r=rbarnes,bz
From 9beed249a4d08ccc945bc573a0c71d295cb1b222 Mon Sep 17 00:00:00 2001

--HG--
rename : dom/crypto/Key.cpp => dom/crypto/CryptoKey.cpp
rename : dom/crypto/Key.h => dom/crypto/CryptoKey.h
rename : dom/crypto/KeyPair.cpp => dom/crypto/CryptoKeyPair.cpp
rename : dom/crypto/KeyPair.h => dom/crypto/CryptoKeyPair.h
2014-06-23 23:25:13 +02:00
Ed Morley 1148a891c7 Backed out changeset 38831e922852 (bug 1026314) for test_interfaces.html failures
--HG--
rename : dom/crypto/CryptoKey.cpp => dom/crypto/Key.cpp
rename : dom/crypto/CryptoKey.h => dom/crypto/Key.h
rename : dom/crypto/CryptoKeyPair.cpp => dom/crypto/KeyPair.cpp
rename : dom/crypto/CryptoKeyPair.h => dom/crypto/KeyPair.h
2014-07-04 16:17:51 +01:00
Tim Taubert 02d0c6d693 Bug 1026314 - Rename Key to CryptoKey in WebCrypto r=rbarnes,bz
--HG--
rename : dom/crypto/Key.cpp => dom/crypto/CryptoKey.cpp
rename : dom/crypto/Key.h => dom/crypto/CryptoKey.h
rename : dom/crypto/KeyPair.cpp => dom/crypto/CryptoKeyPair.cpp
rename : dom/crypto/KeyPair.h => dom/crypto/CryptoKeyPair.h
2014-06-23 23:25:13 +02:00
Boris Zbarsky 799cac3554 Bug 1033157. Move the setup of the JSRuntime DOM callbacks into the CycleCollectedJSRuntime constructor, so we don't have to separatedly do it for workers, windows, and xpcshell. r=khuey 2014-07-02 15:16:42 -04:00
Steve Fink 3cdc378cd8 Bug 1022773 - Return value rooting for dom/, r=bz
--HG--
extra : rebase_source : 24732cd3aff732c5c3d3eb8e19ee8a95f588ebd7
2014-06-25 15:35:36 -07:00
Jim Blandy e07aaa8185 Bug 800200: Remove references to JSD from outside js/jsd. r=mccr8,bholley,ted,smaug 2014-06-27 11:05:08 -07:00
Benoit Jacob ec742680c8 Bug 1028588 - Fix dangerous public destructors in the rest of dom/ - r=ehsan 2014-06-23 15:56:07 -04:00
Bob Owen 30816b5c06 Bug 1025476 - Part 1: Add compulsory Init functions to AutoJSAPI. r=bholley 2014-06-19 08:21:14 +01:00
Ms2ger 3796687d26 Bug 974327 - Cleanup nsJSContext::GetGlobalObject(); r=bholley
The removed code is never reached, as GetWindowProxy() returns a JSObject
with OuterWindowProxyClass as its JSClass, and this will test false for
IsDOMClass and
(~c->flags) & (JSCLASS_HAS_PRIVATE | JSCLASS_PRIVATE_IS_NSISUPPORTS).
2014-06-20 12:32:50 +02:00
Andrew McCreight 50648bc638 Bug 1019101 - Add a way to get the max CC pause during a given period of time. r=smaug 2014-06-14 16:43:45 -07:00
Bob Owen 6d990c090f Bug 1017030 - Part 4: Replace AutoPushJSContext in nsJSContext::InitClasses. r=bholley 2014-06-11 17:31:24 +01:00
Ms2ger 6558df9772 Bug 1018103 - Remove support for the "JavaScript-global-static-nameset" category; r=bholley
The only in-tree consumer was removed in bug 1012320; the addons MXR and a web
search suggest that it is unused outside the tree as well.
2014-06-06 10:06:26 +02:00
Victor Porof 9ce7e9c089 Bug 1007203 - Always add categories when pushing to the pseudostack, r=djvj 2014-05-23 17:12:29 -04:00
Nicholas Nethercote 846089876a Bug 1018039 - Enable DMD on TBPL debug builds. r=glandium.
--HG--
extra : rebase_source : 90b11d0a42d9a3f41630fedd4af0e60d34e67d7f
2014-05-19 18:17:07 -07:00
Nicholas Nethercote d71b0cc308 Bug 1014249 - Beef up the "is DMD enabled?" and "is DMD running?" checks. r=mccr8.
--HG--
extra : rebase_source : 868ce1a1e470e45f51447f5126982aaeb51905f1
2014-05-22 19:45:14 -07:00
Jason Orendorff 6f2b5025bf Bug 987995, part 3 - Move memory pressure callbacks from nsJSEnvironment/XPCJSRuntime to CycleCollectedJSRuntime. r=mccr8. 2014-05-22 08:18:02 -05:00
Jason Orendorff 9f145037d7 Bug 987995, part 2 - Add a data parameter to two memory-pressure-related callbacks. r=luke. 2014-05-22 08:18:01 -05:00
Birunthan Mohanathas aea8617b92 Bug 869836 - Part 7: Use AppendLiteral instead of Append where possible. r=ehsan 2014-05-22 06:48:51 +03:00
Birunthan Mohanathas f65339b9ff Bug 869836 - Part 5: Use AssignLiteral instead of Assign where possible. r=ehsan 2014-05-22 06:48:51 +03:00
Richard Barnes 513ac90185 Bug 995385 - Add WebCrypto WebIDL interfaces. r=bz, r=cviecco, r=dkeeler 2014-05-15 06:20:00 -04:00
Boris Zbarsky c75678d212 Bug 1000175. Make sure error events on window only fire if the active document has not changed from when the exception was thrown. r=smaug 2014-05-20 16:07:17 -04:00
Ms2ger 5dfc16607b Bug 1007243 - Remove nsJSContext::GarbageCollectNow's unused IsCompartment argument; r=bholley
It has been unused since changeset 82f8c3925056 in bug 903212.
2014-05-20 21:50:59 +02:00
Andrew McCreight e66e6b22ea Bug 1011137 - Reduce GC delay rather than CC delay with ICC. r=smaug 2014-05-16 10:11:40 -07:00
Andrew McCreight 9173bb89f1 Bug 1011132 - Fix CYCLE_COLLECTOR_TIME_BETWEEN telemetry. r=smaug 2014-05-16 10:11:40 -07:00
Ryan VanderMeulen 9e342ce37a Revert to revision 63dfac3c9c87 due to mass bustage pile-ups that landed after it on a CLOSED TREE. 2014-05-16 12:29:37 -04:00
Andrew McCreight cd9b2208fa Bug 1011137 - Reduce GC delay rather than CC delay with ICC. r=smaug 2014-05-16 08:09:17 -07:00
Andrew McCreight 7289b60b08 Bug 1011132 - Fix CYCLE_COLLECTOR_TIME_BETWEEN telemetry. r=smaug 2014-05-16 08:09:16 -07:00
Nick Lebedev c49e263d0f Bug 998002 - Rename nsContentUtils::Get{Subject,Object}Principal to nsContentUtils::{Subject,Object}Principal. r=bholley 2014-05-13 11:58:00 +02:00
Andrew McCreight 4f600d1b82 Bug 958353, part 3 - Finish any IGC in progress when manually triggering an ICC slice. r=smaug 2014-05-13 11:58:39 -07:00
Andrew McCreight f5a7b92cdc Bug 1005232 - Log number of incremental cycle collector slices. r=smaug 2014-05-06 17:25:26 -07:00
Michael Shuen e76fd87034 Bug 972385 - Make JS::AutoValueVector subscript operator return handles. r=jonco, smaug 2014-04-28 16:53:00 +02:00
Birunthan Mohanathas 5f1fde8824 Bug 900908 - Part 3: Change uses of numbered macros in nsIClassInfoImpl.h/nsISupportsImpl.h to the variadic variants. r=froydnj 2014-04-27 03:06:00 -04:00
Andrew McCreight fd34a4955e Bug 949607, part 2 - Add and use runNextCollectorTimer. r=smaug 2014-04-25 13:21:04 -07:00
Andrew McCreight f19bffb17f Bug 949607, part 1 - Make the GC timers more robust. r=smaug 2014-04-25 13:21:04 -07:00
Aryeh Gregor 9e083a5d8a Bug 990725 - Rename ErrorEvent.column to .colno to match spec change; r=smaug 2014-04-23 14:55:58 +03:00
Terrence Cole 581c606391 Bug 959787 - Handlify JS_DefineProperty; r=Waldo, r=bz
--HG--
extra : rebase_source : 87991ed47ed071550af4e4125eea54a66fdb0071
2014-01-21 18:11:17 -08:00
Boris Zbarsky a0bb95a823 Bug 993889 part 1. Remove "scope" argument from nsContentUtils::WrapNative. r=bholley 2014-04-10 00:58:41 -04:00
Boris Zbarsky 79dab91ff6 Bug 991742 part 8. Remove the "aScope" argument of WebIDL/nsWrapperCache WrapObject() methods. r=bholley
This patch was mostly generated with the following command:

find . -name "*.h" -o -name "*.cpp" | xargs sed -e '/WrapObject(JSContext/ {; N; s/\(WrapObject(JSContext *\* *a\{0,1\}[Cc]x\),\n\{0,1\} *JS::Handle<JSObject\*> a\{0,1\}[sS]cope/\1/ ; }' -i ""

and then reverting the changes that made to
dom/bindings/BindingUtils.h, since those WrapObject methods are not
the ones we're trying to change here, plus a bunch of manual fixups
for cases that this command did not catch (including all the callsites
of WrapObject()).
2014-04-08 18:27:18 -04:00
Steve Fink 12001268c0 Bug 912456 - transferable MessagePorts, r=jorendorff
--HG--
extra : rebase_source : 5b8a2a9b261c53f0ff5a860e1dc2e7ede711105f
2013-11-14 20:42:34 -08:00
Jon Coppeard 92f0d66be8 Bug 959787 - Handlify remaining JS APIs r=sfink r=bholley r=smaug 2014-04-02 15:28:03 +01:00
Ms2ger 862563be61 Bug 973950 - Remove sContextList from nsJSEnvironment; r=bholley 2014-03-27 21:05:15 +01:00
Bobby Holley 917d0952c8 Bug 986304 - Stop using (and kill) BindCompileEventHandler. r=bz 2014-03-21 23:31:02 -03:00
Tom Schuster e9d2f3e9ee Bug 355430 - Add the column to the error event. r=bz 2014-03-20 16:46:28 +01:00
Tom Schuster 3f0943f577 Bug 355430 - Add the thrown error object to the dom error event. r=bz 2014-01-03 01:04:15 +00:00
Bob Owen 1b7c64aef6 Bug 978042 - Part 8: AutoPushJSContext in nsXBLProtoImplField::InstallField. r=bholley 2014-03-19 12:09:33 +00:00
Jon Coppeard e6fbcd2690 Bug 959787 - Handlify some more GCing APIs r=sfink 2014-03-20 09:32:37 +00:00
Birunthan Mohanathas e5a1edbddc Bug 984112 - Part 1: Use JS::CallArgs instead of JS_{ARGV,SET_RVAL,...}, `argc` in dom/. r=bz 2014-03-19 13:05:04 -04:00
Masayuki Nakano 3234ceea19 Bug 983049 part.5 Rename nsEventDispatcher to mozilla::EventDispatcher r=smaug
--HG--
rename : dom/events/nsEventDispatcher.cpp => dom/events/EventDispatcher.cpp
rename : dom/events/nsEventDispatcher.h => dom/events/EventDispatcher.h
2014-03-18 13:48:21 +09:00
Peter Van der Beken 7c1dc6f40a Bug 982114 - Deal with new DOM binding objects for Window in more places. r=bz. 2014-01-30 15:31:16 +01:00
Jan de Mooij 4c9d5d418c Bug 939562 part 3 - Move JIT flags from ContextOptions to RuntimeOptions. r=bent,bholley,luke
--HG--
extra : rebase_source : cea8b4ab3024ed49e8be688f7cf4819bba0f5d29
2014-02-26 10:25:36 +01:00
Andrew McCreight ede4f0c88d Bug 963844 - Scale ICC budget by time between slices. r=smaug
If we exceed the desired length of time between ICC slices, proportionally scale up the slice budget to try to ensure a constant amount of collection work is done per unit of time, even when the browser is under heavy load.

As part of this, track the time the last slice from the current ICC ended.
2014-03-06 10:54:37 -08:00
Luke Wagner b7edb7cae1 Bug 963588 - asmjscache: place cache entries apps that request AOT compilation in persistent storage (r=janv)
--HG--
extra : rebase_source : 95bc3d02cb1a7f2728d2615e8b992e0a2b2397f1
2014-03-05 14:47:10 -06:00
Andrew McCreight a4b7a6cc6a Bug 979047, part 5 - Make sure we have at least one early forgetSkippable timer fire. r=smaug
With ICC, ccDelay can get close to NS_CC_SKIPPABLE_DELAY, but we want to always want to run at least one forgetSkippable before the actual CC.
2014-03-04 16:21:48 -08:00
Andrew McCreight ccea4e7f95 Bug 979047, part 4 - Run ICCSliceTime() after PrepareForCollectionSlice. r=smaug
This way we take into account time spent finishing off a GC, or something.
2014-03-04 16:21:48 -08:00
Andrew McCreight 4fa61d549b Bug 979047, part 3 - Make sure we trigger a GC after a current ICC when we poke the GC. r=smaug 2014-03-04 16:21:48 -08:00
Andrew McCreight 6246ff9e19 Bug 979047, part 2 - Remove unused endGCTime assignments. r=smaug 2014-03-04 16:21:48 -08:00
Andrew McCreight 4ee753c914 Bug 979047, part 1 - Only clear mBeginSliceTime in EndCycleCollectionCallback. r=smaug
Run FinishCycleCollectionSlice only once per slice, and only if we've previously run PrepareForCycleCollectionSlice.
2014-03-04 16:21:48 -08:00
Ed Morley cbfe2d6c71 Backed out changeset 508848ad378a (bug 939562) for causing bug 978450 2014-03-03 16:54:26 +00:00
Jan de Mooij f3ddd05d72 Bug 939562 part 3 - Move JIT flags from ContextOptions to RuntimeOptions. r=bent,bholley,luke
--HG--
extra : rebase_source : e25c6f5f381a972c472fb8a845c737fb31617682
2014-02-26 10:25:36 +01:00
Carsten "Tomcat" Book 6c50fbdfed Backed out changeset 802aa43ae8cc (bug 939562) for PGO mochitest regression on a CLOSED TREE 2014-02-26 16:02:15 +01:00
Jan de Mooij 46b31338d1 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 dfb0b68df3 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 2ab672042c 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 cdbc5eaefa Bug 972856 - Use PR_Now() for CC timestamp in JSON log. r=smaug 2014-02-18 09:58:40 -05:00
Julian Seward 9768078c50 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 6f81973871 Bug 936236 - Send memory-pressure notification if ArrayBuffer allocation OOMs and retry allocation (r=mccr8) 2014-02-12 22:50:15 -06:00