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
Carsten "Tomcat" Book
e8bc59a87a
Backed out changeset 684888aeee81 (bug 1287946)
2016-07-21 08:07:12 +02:00
Jim Chen
78f67d1f6f
Bug 1287946 - Update existing code to use mozilla::java; r=me
2016-07-21 00:42:26 -04:00
Wes Kocher
3bba9b339e
Backed out 5 changesets (bug 1287623) for static build bustage CLOSED TREE
...
Backed out changeset a48daec87ec9 (bug 1287623)
Backed out changeset 248153344e15 (bug 1287623)
Backed out changeset 8aa409c9b1ce (bug 1287623)
Backed out changeset 602d4d88e806 (bug 1287623)
Backed out changeset 114da8bdc0b0 (bug 1287623)
2016-07-20 15:40:33 -07:00
Andrew McCreight
155e619376
Bug 1287623, part 3 - Add more methods involving StaticRefPtr. r=froydnj
...
This patch adds a number of standard conversions to and from RefPtr<>
and already_AddRefed<>.
2016-07-20 15:19:00 -07:00
Andrew McCreight
07f2ce5ee2
Bug 1287623, part 2 - Use StaticRefPtr for nsDirectoryService::gService. r=froydnj
2016-07-20 15:19:00 -07:00
Thomas Zimmermann
16e1b1c5eb
Bug 1288077: Merge implementations of |nsTArrayFallibleAllocator|, r=froydnj
...
The two implemenations of |nsTArrayFallibleAllocator| in 'nsTArray' are
equivalent. This patch merges both.
MozReview-Commit-ID: 3G9pHSQRzKz
2016-07-20 17:29:36 +02:00
Thomas Zimmermann
5528947546
Bug 1288077: Cleanup forward declarations of array types, r=froydnj
...
MozReview-Commit-ID: 59XzOnREb6I
2016-07-20 17:29:36 +02:00
Thomas Zimmermann
4bee1b2945
Bug 1288077: Forward declare arrays by including 'nsTArrayForwardDeclare.h', r=froydnj
...
MozReview-Commit-ID: 4RBeHDyhQgr
2016-07-20 17:29:36 +02:00
Thomas Zimmermann
c9844397ea
Bug 1288077: Whitespace fixes, r=froydnj
...
MozReview-Commit-ID: DpKAsid5O3k
2016-07-20 17:29:36 +02:00
Xidorn Quan
76db18facb
Bug 1284406 part 3 - Export ICU headers in include/unicode. r=glandium
...
MozReview-Commit-ID: FuwAgEGjhxm
--HG--
extra : source : c07ceab42b47b18a1e8d436e7c888bdd113575fa
2016-07-20 15:00:13 +10:00
Nicholas Nethercote
79b0d684fb
Bug 1287361 - Add a missing XPT_CALLOC8 null check. r=khuey.
...
--HG--
extra : rebase_source : 9a9f938ab7499ddcc18a1bce549e651a07829716
2016-07-18 14:18:19 +10:00
Nicholas Nethercote
aef07a5172
Bug 1287361 - Remove XPT_NEW. r=khuey.
...
--HG--
extra : rebase_source : 8e7b86713136b3872aa33ca4a9a69df441df3c38
2016-07-18 14:17:20 +10:00
Carsten "Tomcat" Book
7c0644d587
Merge mozilla-central to mozilla-inbound
2016-07-14 11:56:37 +02:00
Michael Kaply
a3203be2b0
Bug 1284921- Hardcode Android version for non-numeric releases. r=nfroyd
...
--HG--
extra : rebase_source : b9627b902df8ae0a1e32fa608067455c9ef8aa82
2016-07-13 10:31:26 -05:00
Julian Seward
6968f9a027
Bug 1283852 - TSan: data race on nsThreadStartupEvent::mInitialized. r=nfroyd.
2016-07-11 14:14:44 +02:00
Yoshi Huang
e24cc195d9
Bug 1274893 - remove -forbid- list from SafeBrowsing. r=francois
2016-07-11 16:11:32 +08:00
Chris Peterson
43c2748f66
Bug 1277775 - Replace MOZ_CONSTEXPR{_VAR,_TMPL} with constexpr. r=froydnj
2016-07-08 14:39:53 -07:00
Nathan Froyd
5dba0130cc
Bug 1271751 - part 8 - fix bug in nsTArray_CopyWithConstructors; r=erahm
...
The backwards copying case in MoveOverlappingRegion had a bug: rather
than destroying each element from the source range as we moved it, we
would always destroy the element at the beginning of the source range.
Fortunately, none of the existing types that were copied via
constructors seem to trigger the problematic code.
2016-07-08 16:59:04 -04:00
Nathan Froyd
229ede80e2
Bug 1271751 - part 7 - remove nsTArray_CopyWith*::Copy*; r=erahm
...
After all the previous patches, we never call these functions. Any
copying required by nsTArray is taken care of by other means.
2016-07-08 16:59:05 -04:00
Nathan Froyd
3d1192cadc
Bug 1271751 - part 6 - make ShiftData actually move its elements rather than copying; r=erahm
...
This change eliminates the last use of the Copy* family of functions.
2016-07-08 16:59:05 -04:00
Nathan Froyd
0dc761e84b
Bug 1271751 - part 5 - use MoveNonOverlappingRegion instead of CopyNonOverlappingRegion; r=erahm
...
In all of the calls to CopyNonOverlappingRegion from within nsTArray, we
don't care about the contents of the source afterwards. So we can use
moves instead of copies to potentially make things more efficient.
2016-07-08 16:59:05 -04:00
Nathan Froyd
315612a443
Bug 1271751 - part 4 - rename CopyNonOverlappingRegionWithHeader to MoveNonOverlappingRegionWithHeader; r=erahm
...
Whenever we're copying the header, we can be guaranteed that we're never
going to use the elements from the old array afterward, so can move (in
the C++ sense) the elements rather than copying them.
2016-07-08 16:59:05 -04:00
Nathan Froyd
5dd30fe964
Bug 1271751 - part 3 - add Move{Non,}OverlappingRegion; r=erahm
...
We'll need these for future patches as we transition nsTArray to use
moves for most of its operations rather than copies. The implementation
of these functions are essentially cut-and-paste versions of the Copy*
functions, but using moves.
2016-07-08 16:59:05 -04:00
Nathan Froyd
6e9fa45637
Bug 1271751 - part 2 - rename {Copy,Move}Elements to something more accurate; r=erahm
...
The names {Copy,Move}Elements are based on the use of mem{cpy,move},
respectively. However, I submit that we really want the names to
reflect the C++ operations being done, rather than the underlying
implementation details. So let's rename these to reflect that we are
always copying the elements, and discriminate between the two cases
based on whether the regions being copied overlap or not.
Bring CopyHeaderAndElements along for the ride, as well.
2016-07-08 16:59:05 -04:00
Nathan Froyd
e458be747b
Bug 1271751 - part 1 - provide out-of-class definitions for some nsTArray functions; r=erahm
...
This change enables some of the methods in nsTArray to be lazily
instantiated, particularly the ones that care about whether the element
type is copyable. Since we have a number of places where nsTArray is
used with move-only types, we need to ensure that unless methods
requiring copyability are actually called, those methods are not
instantiated.
2016-07-08 16:59:05 -04:00
Nathan Froyd
09a852e8b4
Bug 1271751 - part 0 - remove heap functions from nsTArray; r=erahm
...
They are unused, except for tests.
2016-07-08 16:59:05 -04:00
Haik Aftandilian
844a01c384
Bug 1270018 - NS_APP_CONTENT_PROCESS_TEMP_DIR should only return the sandbox writeable temp. r=bobowen, r=bsmedberg
...
MozReview-Commit-ID: 5L9zCR4ExWD
--HG--
extra : transplant_source : %B8%90%A3%1C%A4G%A5%95%0C%B7J%B6%A4%FAC%1A%9B%FA0%EE
2016-07-05 14:48:25 -07:00
Boris Zbarsky
eb139d85bf
Bug 1279313 part 1. Simplify AutoEntryScript to not make callers pass in a JSContext. r=bholley
2016-07-07 20:08:25 -04:00
Carsten "Tomcat" Book
486d248cca
Merge mozilla-central to mozilla-inbound
2016-07-07 11:44:06 +02:00
Carsten "Tomcat" Book
1e5237c994
merge mozilla-inbound to mozilla-central a=merge
2016-07-07 11:41:27 +02:00
Jan de Mooij
900af968f3
Bug 1283855
part 28 - Make more GC APIs take JSContext instead of JSRuntime. r=terrence
...
--HG--
extra : rebase_source : c2d35b5d45cad074b9a9a144bc25ea4a32b8b246
2016-07-07 09:56:09 +02: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 Beich
06c382c7df
Bug 1284167 - /proc is unreliable on non-Linux. r=milan
...
MozReview-Commit-ID: 1B9bxjuRj6k
--HG--
extra : transplant_source : %DF%D8J%3A%1DY%23%FDW%A9%FB%2A%7C%92%29%FC%3F%84-%03
2016-07-04 00:30:22 +00:00
Nathan Froyd
2c2b9296bc
Bug 1283616 - part 2 - micro-optimize inserting microtask runnables into the queue; r=khuey
...
We can save an AddRef/Release pair by passing in the reference to the queue.
2016-07-05 18:49:06 -04:00
Jan de Mooij
4ca08a4466
Bug 1283855
part 15 - Make {Get,Set}DOMCallbacks, SetWindowProxyClass take JSContext instead of JSRuntime. r=h4writer
2016-07-05 14:35:28 +02:00
Jan de Mooij
fb15cb143c
Bug 1283855
part 14 - Make more callback setters take JSContext instead of JSRuntime. r=shu
2016-07-05 14:35:26 +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
4ba1239131
Bug 1283855
part 11 - Make some GC callback APIs take JSContext instead of JSRuntime. r=terrence,mccr8
2016-07-05 14:35:19 +02:00
Jan de Mooij
185fef3784
Bug 1283855
part 10 - Make some GC callback APIs take JSContext instead of JSRuntime. r=jonco
2016-07-05 14:35:16 +02:00
Chris Peterson
2b3b60f7b1
Bug 1277155 - Part 1: Remove snprintf() polyfills for VS2013 in Sprintf.h and #defines. r=froydnj r=mhowell
2016-06-27 20:45:03 -07:00
Manish Goregaokar
4d3c9798eb
Bug 1285235 - Add bindings for growing nsTArrays; r=bholley
2016-07-14 14:29:37 +05:30
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
Jan de Mooij
31f7512e9f
Bug 1283855
part 5 - Make warning reporter APIs take JSContext instead of JSRuntime. r=arai
2016-07-05 11:06:05 +02:00
Jan de Mooij
7c1a1cec44
Bug 1283855
part 2 - Make some callback setters take JSContext instead of JSRuntime. r=luke
2016-07-05 11:06:05 +02:00
Jan de Mooij
96da4695c8
Bug 1283855
part 25 - Make JS_GC take JSContext instead of JSRuntime. r=terrence
2016-07-06 11:40:20 +02:00
Jan de Mooij
cd41339786
Bug 1283855
part 24 - Make js::DumpHeap take JSContext instead of JSRuntime. r=sfink
2016-07-06 11:40:20 +02:00
Jan de Mooij
28662f4214
Bug 1283855
part 23 - Make more callback setters take JSContext instead of JSRuntime. r=evilpie
2016-07-06 11:40:20 +02:00
Jan de Mooij
79865aba2a
Bug 1283855
part 17 - Make {Get,Set}DebuggerMallocSizeOf take JSContext instead of JSRuntime. r=jimb
2016-07-06 11:40:20 +02:00