Wes Kocher
c3eedd62ae
Merge m-c to inbound, a=merge CLOSED TREE
2015-07-15 16:41:49 -07:00
Wes Kocher
59e6297180
Merge fx-team to central, a=merge
2015-07-15 16:33:58 -07:00
Benoit Girard
819a9fd767
Bug 1182516 - Fix mid-air conflict with 3fd2ab6cb762 on a CLOSED TREE. r=bustage
...
--HG--
extra : commitid : Adcu7H4oTQG
2015-07-15 18:08:25 -04:00
Ryan VanderMeulen
fa5776b708
Merge m-c to fx-team. a=merge
2015-07-15 13:30:09 -04:00
Ryan VanderMeulen
2d600228e7
Merge b2g-inbound to m-c. a=merge
2015-07-15 13:25:56 -04:00
Kan-Ru Chen
c825f41c31
Bug 1181518 - Change the reason for memory-pressure fired during priority change. r=gsvelto
2015-07-15 17:07:39 +08:00
Benoit Girard
fe3dfcf5b2
Bug 1182516 - Add Chaos Mode environment variable MOZ_CHAOSMODE. r=roc
...
--HG--
extra : commitid : qfYBMvxZ7k
extra : rebase_source : 4c7098464712d7e5fa88ba1d8fba7c044772b0d6
2015-07-14 17:29:23 -04:00
Ben Kelly
1d8798cbc9
Bug 1173912 Fail opaque responses for client requests. r=ehsan
2015-07-14 13:11:26 -07:00
Ben Kelly
e2321797dc
Bug 1173934 Show a message if a docshell fails to load due to SW intercept failure. r=ehsan r=jdm
2015-07-14 13:11:26 -07:00
Ryan VanderMeulen
551c0cccfc
Merge m-c to inbound. a=merge
2015-07-15 13:26:44 -04:00
Peter Elmers
f0de749c69
Bug 1183291 - Factor idl-parser into a Python package. r=khuey
...
Move Python code into an xpidl subdirectory, and include a setup.py to allow
inclusion from pip install or requirements files. Change build directory
variables appropriately.
--HG--
rename : xpcom/idl-parser/Makefile.in => xpcom/idl-parser/xpidl/Makefile.in
rename : xpcom/idl-parser/header.py => xpcom/idl-parser/xpidl/header.py
rename : xpcom/idl-parser/moz.build => xpcom/idl-parser/xpidl/moz.build
rename : xpcom/idl-parser/runtests.py => xpcom/idl-parser/xpidl/runtests.py
rename : xpcom/idl-parser/typelib.py => xpcom/idl-parser/xpidl/typelib.py
rename : xpcom/idl-parser/xpidl.py => xpcom/idl-parser/xpidl/xpidl.py
2015-07-13 13:09:11 -07:00
Jeff Muizelaar
7bc6837af6
Bug 1178426. Add GfxInfo to ServicesList.h. r=nfroyd
...
--HG--
extra : rebase_source : b18fb78fa6b7d86fbb9496861938bfde21b3c6e6
2015-07-08 16:51:09 -04:00
Andrew McCreight
807cd2fbe2
Bug 1182318 - Part 2: Remove Closure from CycleCollectedJSRuntime. r=smaug
...
Closure is now just a wrapper around a single boolean, so instead pass a pointer to the boolean.
2015-07-14 08:01:00 -04:00
Andrew McCreight
ee6ab85145
Bug 1182318 - Part 1: Remove Closure::mCb. r=smaug
...
This field no longer needs to be passed in the closure thanks to the iterator.
2015-07-14 08:01:00 -04:00
Olli Pettay
bf12e17af3
Bug 1182277, don't leak when using nsAutoTArray inside nsTArray, r=nfroyd
...
--HG--
extra : rebase_source : f2ef5f9be86461490ad87e4862e1f77f88b33ade
2015-07-14 17:05:10 +03:00
Nicholas Nethercote
4aa7305199
Bug 1180122 - Make Chaos Mode affect PLDHashTable's iterators. r=froydnj.
...
This makes the code less elegant, but that's unavoidable.
--HG--
extra : rebase_source : 585034bcd8383102669caf2378d705234410d8a9
2015-07-03 00:27:27 -07:00
Alexandre Poirot
5fb7a23ea0
Bug 814497 - Cleanup console service cache when a window is destroyed. r=nfroyd
2015-07-09 06:49:00 -04:00
Birunthan Mohanathas
a8939590de
Bug 1182996 - Fix and add missing namespace comments. rs=ehsan
...
The bulk of this commit was generated by running:
run-clang-tidy.py \
-checks='-*,llvm-namespace-comment' \
-header-filter=^/.../mozilla-central/.* \
-fix
2015-07-13 08:25:42 -07:00
Michael Layzell
fafaf07b01
Bug 1028132 - Remove mozilla::HasDangerousPublicDestructor<T>. r=mccr8
2015-07-07 18:45:00 -04:00
Nicholas Nethercote
a122bb402c
Bug 1182926 - Fix "observer-service-suspect" bustage. r=poiru.
...
--HG--
extra : rebase_source : 3bc89688488a8b0f4c22dd10a7c2a24babd07733
2015-07-12 15:55:27 -07:00
Nicholas Nethercote
e1824580b7
Bug 1181411 - Test some expected aborts in PLDHashTable. r=glandium.
2015-07-12 18:50:21 -07:00
Wes Kocher
aec62d3dc0
Backed out changeset adf95d1cd0aa (bug 1173934) for fetch-frame-resource.https.html WPT orange and test_synthesized_response.js S4 orange CLOSED TREE
...
--HG--
extra : amend_source : 82d7af13e11137e614b0b1bd12f5af3108551bfc
2015-07-10 15:59:01 -07:00
Wes Kocher
14b97c87b1
Backed out changeset df6593df027b (bug 1173912)
2015-07-10 15:58:24 -07:00
Ben Kelly
e0d5d6632a
Bug 1173912 Fail opaque responses for client requests. r=ehsan
2015-07-10 14:28:32 -07:00
Ben Kelly
2a31a01e4b
Bug 1173934 Show a message if a docshell fails to load due to SW intercept failure. r=ehsan r=jdm
2015-07-10 14:28:32 -07:00
Wes Kocher
a44c7080e6
Backed out changeset 9814f77d258b (bug 1179924) for frequent random serviceworkers failures CLOSED TREE
2015-07-10 12:48:34 -07:00
Andrew McCreight
3f09fa3f0f
Bug 1179924 - Create a more modern JS object holder for cross-thread references to JS objects. r=smaug
2015-07-10 07:41:33 -07:00
Nicholas Nethercote
3aa4ed90e3
Bug 1181445 (part 13) - Use nsBaseHashTable::Iterator in xpcom/ds/. r=froydnj.
...
--HG--
extra : rebase_source : 0c143d4bb6de75d133984b41400cd612e4d1064e
2015-07-09 16:54:59 -07:00
Nicholas Nethercote
f32a629f7d
Bug 1181445 (part 12) - Use nsBaseHashTable::Iterator in xpcom/threads/. r=froydnj.
...
--HG--
extra : rebase_source : 76f747c7ac22df28cc78a8afea0e25f3b4b2aa07
2015-07-09 16:54:59 -07:00
Nicholas Nethercote
d367971294
Bug 1181445 (part 11) - Use nsBaseHashTable::Iterator in xpcom/glue/. r=froydnj.
...
--HG--
extra : rebase_source : 5b6fe9813c08627f626fa8da66a8e724baa274aa
2015-07-09 16:54:59 -07:00
Nicholas Nethercote
70347ce8c5
Bug 1181445 (part 10) - Use nsBaseHashTable::Iterator in CycleCollectedJSRuntime. r=mccr8.
...
--HG--
extra : rebase_source : 04841562dbe03e48b37c941b540ade0c493ba4e6
2015-07-09 16:54:59 -07:00
Nicholas Nethercote
dbb7aa5cb2
Bug 1181445 (part 9) - Use nsBaseHashTable::Iterator in nsConsoleService. r=froydnj.
...
--HG--
extra : rebase_source : b2093646a4e91e99e901075d19851392696f06ff
2015-07-09 16:54:59 -07:00
Nicholas Nethercote
945ee9edd6
Bug 1181445 (part 8) - Use nsBaseHashTable::Iterator in SystemMemoryReporter. r=froydnj.
...
--HG--
extra : rebase_source : 1629f83406d7997fd8e21f3cb6558ca09adb109c
2015-07-09 16:54:59 -07:00
Nicholas Nethercote
4230c038ed
Bug 1181445 (part 7) - Use nsBaseHashTable::Iterator in xpcom/reflect/. r=froydnj.
...
--HG--
extra : rebase_source : eca5822aff7c334c74a5cabea6cef2fc3b94bf3d
2015-07-09 16:54:59 -07:00
Nicholas Nethercote
d13b0d1848
Bug 1181445 (part 6) - Use nsBaseHashTable::Iterator in xpcom/components/. r=froydnj.
...
Note that enumfunc_pentries and persistent_userstruct are unused, and so could
be removed.
--HG--
extra : rebase_source : 57ae41aa2e7d514dc8f3f3d79d3d1946a407c4ac
2015-07-09 16:54:59 -07:00
Nicholas Nethercote
240d180d7f
Bug 1181445 (part 5) - Use nsTHashTable::Iterator in nsTHashtable.h. r=mccr8.
...
This is a particularly nice example of how iterators can be so much nicer than
Enumerate()-style functions:
1 file changed, 4 insertions(+), 33 deletions(-)
--HG--
extra : rebase_source : 757f75b90cb4c624143c236f9743edf158f72d66
2015-07-09 16:54:59 -07:00
Nicholas Nethercote
35b8916e86
Bug 1181445 (part 4) - Use nsTHashTable::Iterator in nsCategoryManager. r=froydnj.
...
--HG--
extra : rebase_source : dd2ca157bf07f49a25d501986d3338e0f525348f
2015-07-09 16:54:58 -07:00
Nicholas Nethercote
8626fc2a98
Bug 1181445 (part 3) - Use nsTHashTable::Iterator in nsObserverService. r=froydnj.
...
--HG--
extra : rebase_source : 1bbbc86315455a5af29d34c80feac2f206d7d9f2
2015-07-09 16:49:32 -07:00
Nicholas Nethercote
e4c39dc6c4
Bug 1181445 (part 2) - Use nsTHashTable::Iterator in nsMemoryReporterManager. r=froydnj.
...
--HG--
extra : rebase_source : 038b7ee151880d57066024d940fa112ee282a995
2015-07-08 22:32:39 -07:00
Nicholas Nethercote
b37d03af49
Bug 1181445 (part 1) - Implement iterators for nsTHashtable and nsBaseHashtable. r=froydnj.
...
nsBaseHashtable has both EnumerateRead() and Enumerate(). A comment claims that
the latter locks the table, but this is false, so I removed the comment. Other
than that the only notable difference between them is that they have slightly
different types for dealing with values (|UserDataType| vs |DataType&|) so I've
implemented both GetUserData() and GetData(), allowing either type to be used.
--HG--
extra : rebase_source : 9d61cc8f4c14082c9f1939ff3ced2b697e043f42
2015-07-07 20:47:59 -07:00
Jim Mathies
9a5c8328b9
Bug 1128454 - Add crash report annotations for plugin bridge operation failures. r=billm
2015-07-09 19:07:49 -05:00
Randell Jesup
238677c2c0
Bug 1155059: Patch 3&7 - fix leaks in Promise, ConsoleService and JS Finalize r=froydnj
2015-07-09 23:21:46 -04:00
Randell Jesup
f5e826fd1d
Bug 1155059: Patch 4 - invoke NS_ASSERTION if DispatchToMainThread fails to get MainThread ptr r=froydnj
2015-07-09 23:21:46 -04:00
Randell Jesup
c87c478f4f
Bug 1155059: Patch 1&2 - Convert Dispatch() and friends to already_AddRefed<> r=froydnj
...
Modify Dispatch IDL and code to deal with MSVC issues with overloaded templates r=froydnj
2015-07-09 23:21:46 -04:00
Randell Jesup
89e710906c
Bug 1155059: Patch 0 - add do_AddRef() r=froydnj
2015-07-09 23:21:46 -04:00
Mike Hommey
7fdec3adb1
Bug 833117 - Replace g_slice_set_config() with G_SLICE environment variable. r=nfroyd,r=karlt
...
Using g_slice_set_config() fails with newer glib because the slice allocator
now has a static constructor that runs when glib is loaded, consequently
emitting a noisy error message which confuses people into believing it's the
root of their problems.
The only way left to force the slice allocator to use "system" malloc (in
practice, jemalloc) is to set the G_SLICE environment variable to
always-malloc, and that needs to happen before glib is loaded.
Fortunately, the firefox and plugin-container executables don't depend on
glib. Unfortunately, webapprt does, so the problem remains for web apps
running through it. xpcshell and other executables that depend on libxul
directly (as opposed to loading it dynamically) are not covered either.
2015-07-10 09:56:05 +09:00
Randell Jesup
78f6d80fa0
Bug 1178890: Update timer arrays after sleep to account for time sleeping r=bwc,froydnj
2015-07-09 20:18:34 -04:00
Nathan Froyd
0e1fa707ed
Bug 1151506 - move nsIInterfaceInfo::isMainProcessScriptable to the end of the interface's vtable; r=dbaron
...
Adding isMainProcessScriptable() into the middle of nsIInterfaceInfo
caused problems with some binary addons that relied on the ordering of
the methods in nsIInterfaceInfo. In an attempt to placate those addons,
move isMainProcessScriptable() to the end of the vtable. This change is
a no-op for normal libxul usage.
2015-06-29 10:28:14 -04:00
Nicholas Nethercote
f976bf5495
Bug 1179071 - Merge RemovingIterator into Iterator. r=froydnj.
...
The original motivation for the Iterator/RemovingIterator split was that
PLDHashTable Checker class would treat them differently. But that didn't end up
happening (see bug 1131308). So this patch merges them. This is a small code
size win now but it will become bigger when I add iterators to nsTHashTable and
nsBaseHashtable.
The only complication is that PLDHashTable::Iter() is now non-const, which is
a problem if you use it in a const method. So I added PLDHashTable::ConstIter()
which is used in just two places. It's a bit of a hack -- effectively a
const_cast -- but I don't think it's too bad.
2015-07-06 22:02:26 -07:00
Nicholas Nethercote
dcf64eb59b
Bug 1180084 - Convert TestPLDHash.cpp to a gtest. r=froydnj.
...
The switch to unsigned integer constants (e.g. "0u") are necessary to avoid
compiler warnings about signed/unsigned comparisons.
--HG--
rename : xpcom/tests/TestPLDHash.cpp => xpcom/tests/gtest/TestPLDHash.cpp
extra : rebase_source : e159d6444581fd0063c5274419ac2126a94607bf
2015-07-07 17:54:03 -07:00
Birunthan Mohanathas
30fedff9e1
Bug 968520 - Add nsTArray::Assign. r=froydnj
2015-07-07 11:27:03 -07:00
Dragana Damjanovic
7987d2203e
Bug 905127 - Part 2 - remove unnecessary nsNetUtil.h includes r=jduell
2015-07-06 07:55:00 +02:00
Robert O'Callahan
4ac8503958
Bug 1143575. Avoid use of COMPARE macro which can clash with Android headers. r=bent
...
--HG--
extra : commitid : G02N9VidCk7
extra : rebase_source : a2a3bba44ef2b8765432e06d32ee4a811c9954fd
2015-06-07 12:26:40 +03:00
Nicholas Nethercote
b6a6d26147
Bug 1180072 - Remove PL_DHashTableEnumerate(). r=froydnj.
...
It's no longer used, and the Iterator classes are much nicer. Yay.
2015-06-18 22:19:10 -07:00
Bill McCloskey
43786e09b5
Bug 1177013 - Use CancelCurrentTransaction to avoid crashes (r=dvander)
2015-07-06 19:58:44 -07:00
Nicholas Nethercote
bdb164e9fd
Bug 1131308 (part 1) - Improve PLDHashTable's internal checking. r=froydnj.
...
--HG--
extra : rebase_source : 7801b437c2b9a82de90914a67e80acabba81570b
2015-05-20 23:11:35 -07:00
Nicholas Nethercote
4a9000e192
Bug 1131308 (part 0) - Fix minor problems with RemovingIterator. r=froydnj.
...
- Its move constructor was moving |aOther.mTable| instead of |aOther|. This
meant that |aOther| wasn't being zeroed out appropriately.
- test_pldhash_RemovingIterator() was testing Iterator's move constructor
instead of RemovingIterator's move constructor, due to a copy/paste
mistake.
--HG--
extra : rebase_source : 1f4880893875218ddb155c76d329e84d884c0432
2015-07-05 17:49:44 -07:00
Gabriele Svelto
17358b10b8
Bug 858928 - Switch XRE_StartupTimelineRecord() from PRTime to TimeStamp. r=froydnj
...
--HG--
extra : rebase_source : b39bf19f68a124cefaf5ceac2adccb20e05bf279
2015-07-06 18:01:09 +02:00
Andrea Marchesini
b6e7f5efcf
Bug 1171603 - Better size check in nsTSubstring::ReplacePrep. r=ehsan
...
--HG--
extra : rebase_source : a42342c8f82cb00e1e1b9b9673fc1e290fb9cf23
2015-07-06 14:27:35 -04:00
Fabrice Desré
6929a81516
Bug 1180533 - Disable BackgroundHangMonitor on gonk
2015-07-05 18:30:51 -07:00
Juan Gomez
258ad59e3f
Bug 1171931 - Refactor duplicated code using XRE_IsParent/ContentProcess. r=froydnj
2015-07-03 18:29:00 -07:00
Phil Ringnalda
166cfe8460
Back out 12 changesets (bug 1177013) on suspicion of causing b2g emulator debug test bustage
...
CLOSED TREE
Backed out changeset 912aae0815f8 (bug 1177013)
Backed out changeset 3b6448172e50 (bug 1177013)
Backed out changeset 2af18bef5703 (bug 1177013)
Backed out changeset e6bf35115c11 (bug 1177013)
Backed out changeset 4d7f5205b60b (bug 1177013)
Backed out changeset f7de893911bc (bug 1177013)
Backed out changeset de79eba232f0 (bug 1177013)
Backed out changeset 978a77b60f2a (bug 1177013)
Backed out changeset f5b52fa19511 (bug 1177013)
Backed out changeset e14a7b70b6fa (bug 1177013)
Backed out changeset d0f5a3474659 (bug 1177013)
Backed out changeset bff9f07dad52 (bug 1177013)
2015-07-02 22:08:54 -07:00
Bill McCloskey
72a845c0e6
Bug 1177013 - Use CancelCurrentTransaction to avoid crashes (r=dvander)
2015-07-02 17:18:10 -07:00
Nicholas Nethercote
059c658d95
Bug 1179657 - Remove PL_DHASHMETER. r=froydnj.
...
Because it's totally busted and not a very good way of getting that kind of
statistics.
2015-07-01 22:59:53 -07:00
Hamzata Diallo
3f61ec7708
Bug 1178513
- Export libxul symbols needed by ACL. r=mattwoodrow
...
--HG--
extra : rebase_source : 77ebb8e1195c0e2570dbf5dbee54edfa5ecdab28
2015-07-02 15:19:35 -07:00
Ryan VanderMeulen
3b445a4a38
Backed out changeset 97c7e83acb6b (bug 1171603) for Windows Werror bustage.
...
CLOSED TREE
2015-07-02 15:33:10 -04:00
Andrea Marchesini
9368a3d589
Bug 1171603 - Better size check in nsTSubstring::ReplacePrep. r=ehsan
...
--HG--
extra : rebase_source : 608ecb648abaebc7e8c78870e14c406027f1d2cb
2015-07-02 14:51:42 -04:00
Boris Kudryavtsev
027e60563e
Bug 1155968 - Fix variable use before initialization. r=khuey
2015-06-02 12:17:00 +02:00
Boris Kudryavtsev
50bd38bd38
Bug 1155968 - Fix correct number of empty lines between objects to comply with PEP8. r=khuey
2015-05-20 21:56:00 +02:00
Boris Kudryavtsev
f75453e666
Bug 1155968 - Fix indentation warnings to comply with PEP8. r=khuey
2015-05-20 21:55:00 +02:00
Boris Kudryavtsev
13d9229e12
Bug 1155968 - Whitespace fixes in xpidl.py to comply with PEP8. r=khuey
2015-05-16 12:18:00 +02:00
Boris Kudryavtsev
fa8c2b1b78
Bug 1155968 - Change '==' and '!=' to 'is' and 'is not' to comply with PEP8. r=khuey
2015-05-14 19:50:00 +02:00
Boris Kudryavtsev
baaa8b054e
Bug 1155968 - Correct indent not multiple of 4. r=khuey
2015-05-12 18:41:00 +02:00
Boris Kudryavtsev
26a5f1e8dc
Bug 1155968 - Remove semicolons at ends of statements (PEP8). r=khuey
2015-05-09 12:38:00 +02:00
Boris Kudryavtsev
b24932ea8e
Bug 1155968 - Move statements to their own lines. r=khuey
2015-05-05 17:24:00 +02:00
Boris Kudryavtsev
dc76fa3749
Bug 1155968 - Whitespace changes in header.py and runtests.py. r=khuey
2015-05-04 22:45:00 +02:00
Boris Kudryavtsev
8f40bd3325
Bug 1155968 - Remove trailing whitespace in header.py. r=khuey
2015-05-04 22:41:00 +02:00
Boris Kudryavtsev
5562b1dcb8
Bug 1155968 - Add blank lines where needed in xpcom/idl-parser. r=khuey
2015-05-04 22:35:00 +02:00
Boris Kudryavtsev
ec7138788a
Bug 1155968 - Place imports on separate lines. r=khuey
2015-05-04 22:34:00 +02:00
William Chen
e2a8b6bfa3
Bug 1178513
- Add <extapp> element and interfaces to be used by ACL. r=khuey
...
--HG--
extra : rebase_source : 988379e48f84c04bcac181a6fc4c71325e3f0b02
2015-06-30 11:27:57 -07:00
Nathan Froyd
8b000ee8d1
Bug 1174344 - make error message for mismatched leak log entries more helpful; r=mccr8
2015-06-29 16:36:32 -04:00
Mike Hommey
f2057d31b4
Backout changeset f70b74488807 (bug 833117) for gtest bustage on Linux
2015-07-01 16:41:20 +09:00
Mike Hommey
6535b630b6
Bug 833117 - Replace g_slice_set_config() with G_SLICE environment variable. r=nfroyd,r=karlt
...
Using g_slice_set_config() fails with newer glib because the slice allocator
now has a static constructor that runs when glib is loaded, consequently
emitting a noisy error message which confuses people into believing it's the
root of their problems.
The only way left to force the slice allocator to use "system" malloc (in
practice, jemalloc) is to set the G_SLICE environment variable to
always-malloc, and that needs to happen before glib is loaded.
Fortunately, the firefox and plugin-container executables don't depend on
glib. Unfortunately, webapprt does, so the problem remains for web apps
running through it. xpcshell and other executables that depend on libxul
directly (as opposed to loading it dynamically) are not covered either.
2015-07-01 15:29:46 +09:00
Ryan VanderMeulen
faaac1a61d
Backed out changeset 37bee149c935 (bug 968520) for checktest failures.
2015-06-30 15:47:18 -04:00
Birunthan Mohanathas
ebd21e20f1
Bug 968520 - Add nsTArray::Assign. r=froydnj
2015-06-30 11:16:03 -07:00
Jan de Mooij
976586cb5f
Bug 1177825 - Remove JSVAL_* constants. r=evilpie
2015-06-29 18:36:44 -07:00
Wes Kocher
b4ebe3c719
Merge m-c to inbound, a=merge
2015-06-29 17:28:20 -07:00
ffxbld
264ecae3ce
Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release
2015-06-29 13:34:04 -07:00
Ryan VanderMeulen
872107fe72
Backed out changeset a1089f3645fc (bug 1151506) because it didn't fix the crashes it was intended to. a=lizzard
2015-06-29 14:53:55 -04:00
Nicholas Nethercote
459a5b589b
Bug 1176163 - Remove remaining uses of PL_DHashTableEnumerate() from xpcom/. r=froydnj.
...
--HG--
extra : rebase_source : 5e79d10647c138a28370d36d28a1c1227af8167b
2015-06-18 18:09:37 -07:00
David Major
d15cf4043f
Bug 1151506: Work around broken binary callers of xptiInterfaceInfo. r=froydnj
...
--HG--
extra : rebase_source : 7a27a2da649ab44113525dec7f2ea365688c1c81
2015-06-26 10:33:44 -07:00
Nathan Froyd
2c8aa84236
Bug 1178317 - eliminate large static constructor from ShimInterfaceInfo.cpp; r=poiru
...
Constructing kComponentsInterfaceShimMap required a static constructor
on some compilers, due to a non-constexpr constructor and the necessity
of copying non-constexpr things like nsIID. This static constructor is
large (several kilobytes of object code on x86-64) and completely
unnecessary.
To fix this, let's add a constexpr (well, MOZ_CONSTEXPR) constructor to
ComponentsInterfaceShimEntry. This change alone doesn't completely
solve our problem, because the nsIID member still needs to be copied.
But doing that copying is silly: we only use the IID for constructing a
ShimInterfaceInfo in ShimInterfaceInfo::MaybeConstruct, and the
ShimInterfaceInfo constructor takes a const reference. So let's store a
const reference in ComponentsInterfaceShimEntry, too, and make that
structure significantly smaller in the process.
2015-06-29 10:59:59 -04:00
Nathan Froyd
4d01d51096
Bug 1178363 - make nsTimerImpl::GetGeneration a private method; r=poiru
...
Since GetGeneration() is only called by nsTimerEvent, it doesn't need to
be public.
2015-06-29 13:09:11 -04:00
Nathan Froyd
ed7e987ecb
Bug 1178363 - make nsTimerImpl::PostTimerEvent a private method; r=poiru
...
PostTimerEvent is only called by the timer thread, which is already able
to access private members of nsTimerImpl; there's no reason for
PostTimerEvent to be public.
2015-06-29 10:33:30 -04:00
Nathan Froyd
889fc1ad61
Bug 1178363 - make MOZ_TASK_TRACER-dependent bits of nsTimerImpl private; r=poiru
...
GetTracedTask() is only called from nsTimerImpl itself, so it doesn't
need to be public. GetTLSTraceInfo() is called from the timer thread,
which has access to our private members already.
2015-06-18 12:02:23 -04:00
Nathan Froyd
4fea06a3a3
Bug 1178363 - make nsTimerImpl::Fire a private method; r=poiru
...
This method is only called by nsTimerEvent, which is an implementation
detail of nsTimerImpl.
2015-06-18 12:00:56 -04:00
Nathan Froyd
22b75ae28f
Bug 1178363 - make nsTimerImpl::SetDelayInternal a private method; r=poiru
...
Nothing outside nsTimerImpl uses it, and with a name like
"SetDelayInternal", nothing should.
2015-06-17 21:40:18 -04:00
Ryan VanderMeulen
5f5c327690
Backed out changeset 8b4e4083639e (bug 1171931) for B2G debug emulator bustage.
2015-06-25 19:48:42 -04:00
Juan Gomez
702a59d135
Bug 1171931 - Refactor duplicated code using XRE_IsParent/ContentProcess. r=froydnj
...
--HG--
extra : rebase_source : 2ecbe6c1dd8a7ad8dc529b53349ad431cf1116c9
2015-06-24 14:11:00 -04:00
David Major
17a51c4514
Bug 1151506 - Null-check the count parameter in GetConstantCount. r=froydnj
2015-06-24 09:07:11 -07:00