Commit Graph

484056 Commits

Author SHA1 Message Date
Andrew McCreight
9f3f1c7a9b Bug 1288823, part 4 - Mark things delete in XPConnect. r=mrbkap 2016-07-25 16:32:56 -07:00
Andrew McCreight
f8d74765b2 Bug 1288823, part 3 - Mark more classes final in xpcprivate.h. r=mrbkap 2016-07-25 16:32:56 -07:00
Andrew McCreight
192238e71d Bug 1288823, part 2 - Remove unused #defines from xpcprivate.h. r=mrbkap 2016-07-25 16:32:56 -07:00
Andrew McCreight
7e800a8998 Bug 1288823, part 1 - Use doSweep more consistently in XPCJSRuntime::FinalizeCallback. r=mrbkap 2016-07-25 16:32:55 -07:00
Matthew Gregan
5e5637e77f Bug 1288980 - Add libcubeb backend to about:support. r=felipc 2016-07-26 10:50:14 +12:00
Nick Fitzgerald
4e81593ca0 Bug 1289073 - Convert from double to unsigned before checking that the max frames is greater than zero; r=jimb 2016-07-25 15:07:22 -07:00
Nick Fitzgerald
57f0aea91b Bug 1289058 - Null check principals before holding them in JS::FirstSubsumedFrame; r=jimb 2016-07-25 15:07:22 -07:00
Jeff Gilbert
6790ba91a7 Bug 1288649 - Remove NextPowerOfTwo. - r=jrmuizel
MozReview-Commit-ID: 9CR6lscs3d2
2016-07-25 14:46:28 -07:00
Jeff Gilbert
c6bdac40c5 Bug 1288649 - 2-arg ctors shouldn't be explicit.
MozReview-Commit-ID: 8yZeVcOj3Et
2016-07-25 14:46:25 -07:00
Jeff Gilbert
017f27acce Bug 1288649 - Use mfbt IsPowerOfTwo funcs in gfx/. - r=jrmuizel
While fixing non-unified-build errors in dom/canvas, I started hitting a
static_assert that we were calling IsPowerOfTwo with a signed type. It
turns out we have at least three copies of IsPowerOfTwo() in the tree.
Let's drop the non-mfbt ones.

MozReview-Commit-ID: 1fwQw0CrgiE
2016-07-25 14:46:23 -07:00
Jeff Gilbert
407bc3c38c Bug 1288649 - Fix non-unified-build errors. - r=ethlin
MozReview-Commit-ID: EI7FtmuEBl7
2016-07-25 14:46:20 -07:00
Jeff Gilbert
a4dadbacbe Bug 1280499 - Mark tests.
MozReview-Commit-ID: DnVgcJvZ9NM
2016-07-25 13:55:24 -07:00
Jeff Gilbert
ff9844ee32 Bug 1280499 - Allow SKIP_ROWS+height>IMAGE_HEIGHT and fix paranoid uploading. - r=jrmuizel
Top-of-tree test is green now.

MozReview-Commit-ID: IbCTHK62qGT
2016-07-25 13:52:41 -07:00
Jeff Gilbert
3740e5150b Bug 1280499 - Support paranoid uploading for nVidia. - r=jrmuizel
MozReview-Commit-ID: 3CMNoHiBACT
2016-07-25 13:52:41 -07:00
Jeff Gilbert
e4c382d96e Bug 1280499 - Unlock UNPACK_BUFFER. - r=ethlin
MozReview-Commit-ID: 5RbFNeKsvqF
2016-07-25 13:52:41 -07:00
Jeff Gilbert
41c0b57871 Bug 1280499 - Implement PBOs for textures. - r=jrmuizel
MozReview-Commit-ID: 3FCinT9hS8j
2016-07-25 13:52:41 -07:00
Jeff Gilbert
3b7adaea8f Bug 1280499 - Add stubs and forwards. - r=ethlin
MozReview-Commit-ID: BZUAGCjnINM
2016-07-25 13:52:41 -07:00
Jeff Gilbert
4d20164c66 Bug 1280499 - Add webidl. - r=khuey
MozReview-Commit-ID: 3RE378JZoxq
2016-07-25 13:52:41 -07:00
Andrea Marchesini
78ccb9fb63 Bug 1289010 - Correct ErrorType message for File CTOR., r=bz 2016-07-25 22:42:31 +02:00
Botond Ballo
be99d4ba83 Bug 1214151 - If a sticky element does not consume all of the un-adjustment for an async transform, allow a descendant fixed or sticky element to consume it. r=mstange
MozReview-Commit-ID: HHGjs4GZGNX

--HG--
extra : rebase_source : 9e31e1135e7be90006529ce205d575b2dcd67c27
2016-06-29 18:25:31 -04:00
Botond Ballo
da66438e7c Bug 1214151 - Reftest for the common case. r=mstange
MozReview-Commit-ID: 5zeuFwsx0l6

--HG--
extra : rebase_source : 9eb23dc209e903298d0c3636ba2665de7d2ab8c1
2016-06-29 18:23:28 -04:00
Valentin Gosu
59fdb38682 Bug 1288301 - Convert TestStandardURL to gtest r=mcmanus
MozReview-Commit-ID: FscilBXGhI2

--HG--
rename : netwerk/test/TestStandardURL.cpp => netwerk/test/gtest/TestStandardURL.cpp
2016-07-25 21:48:05 +02:00
Lee Salzman
1e8ad08b0b Bug 1287552 - only set FC_PIXEL_SIZE in pattern if not already supplied. r=me
MozReview-Commit-ID: 9IVzZA4oohZ
2016-07-25 15:00:06 -04:00
Benjamin Bouvier
feab551c2f Bug 1289080: Don't allow call_indirect without a table and memory accesses without memory; r=luke
MozReview-Commit-ID: DkuyBiGsaxs

--HG--
extra : rebase_source : d051b7e8c9e7c32ba60a6e37bb4c6dc98dc36ef9
2016-07-25 14:54:50 +02:00
Geoff Brown
185149d31c Bug 1287831 - Split TC Android debug mochitest-chrome into 2 chunks and specify chunks explicitly; r=dustin 2016-07-25 11:11:15 -06:00
Wes Kocher
1feda59958 Backed out changeset 9c839b1d1397 (bug 1283395) for static build bustage CLOSED TREE 2016-07-25 08:54:47 -07:00
Sebastian Hengst
4bcb37cd63 Backed out changeset 6acbad99a3ff (bug 1284914) for not updated expected results. r=backout 2016-07-25 16:59:41 +02:00
Jakob Stoklund Olesen
8525095859 Bug 1279312 - Remove SymbolicAddress::StackLimit. r=luke
This symbolic address is not used any longer. It has been replaced by the
stackLimit entry in the TlsData struct.
2016-07-25 07:57:36 -07:00
Jakob Stoklund Olesen
fa3211efd0 Bug 1279312 - Use WasmTlsReg in baseline Wasm compiler. r=lth
Allocate an additional slot in localInfo_ and use it to save the incoming TLS
pointer. When setting up arguments for a function call, get the TLS pointer from
that local slot. Also preserve the TLS pointer register by reloading it before
returning.

This makes the Baseline ABI compatible with the Ion ABI.
2016-07-25 07:57:36 -07:00
Jakob Stoklund Olesen
ee4080cea7 Bug 1279312 - Handle call-preserved registers in register allocator. r=bhackett
- Add a virtual isCallPreserved() method to LNode which allows a call
  instruction to indicate that it preserves the values of some registers. Use
  this hook in BacktrackingAllocator when processing a call instruction.

- Add a preservesTlsReg() property to MAsmJSCall and use this to implement the
  LAsmJSCall::isCallPreserved() method.

- Mark intra-module WebAssembly calls as preserving the TLS pointer register.

This change allows the backtracking register allocator to leave the TLS pointer
register alone in small functions that don't need it for something else. There
are probably more improvements to be done if we need to split the live range of
the TLS pointer register. For example, BacktrackingAllocator::splitAcrossCalls()
will still split that live range at all calls.
2016-07-25 07:57:36 -07:00
Jakob Stoklund Olesen
31633a4c4d Bug 1279312 - Preserve TLS pointer register across calls. r=bbouvier
WebAssembly functions take a TLS pointer argument and now ensure that the
WasmTlsReg register has the same value when they return.

This is not yet exploited by the register allocator which still thinks that all
registers are clobbered by function calls.
2016-07-25 07:57:36 -07:00
Jakob Stoklund Olesen
b600088345 Bug 1279312 - Use TLS pointer for the stack limit check. r=luke
Get the stack limit from TlsData::stackLimit instead of
SymbolicAddress::StackLimit. Since the TLS pointer register is available at
every function prologue, the over-recursion check is the same cost as using the
statically linked address.
2016-07-25 07:57:36 -07:00
Jakob Stoklund Olesen
6b0c6f166b Bug 1279312 - Pass a TLS pointer hidden argument to WebAssembly functions. r=luke
WebAssembly functions now expect to be passed a hidden argument in WasmTlsReg
which is a pointer to a TlsData struct.

Temporarily allocate a TlsData instance in the wasm::Instance itself. When wasm
supports multithreading, we will need to allocate a TlsData instance per thread
per module instance.

This patch generates code to pass the TLS pointer to WebAssembly functions,
preserving it through intra-module calls. The pointer is not used for anything
yet, and the the TLS pointer register is not currently preserved across function
calls.
2016-07-25 07:57:35 -07:00
Joel Maher
65771e9829 Bug 1281179 - Create a docker image for Ubuntu 16.04 for use in tests. r=dustin
MozReview-Commit-ID: ApHhev5J21x

--HG--
rename : taskcluster/scripts/tester/test-linux.sh => taskcluster/scripts/tester/test-ubuntu1204.sh
2016-07-25 10:44:37 -04:00
Andi-Bogdan Postelnicu
440264fed8 Bug 1283395 - add markup functions for static analysis builds. r=froydnj
MozReview-Commit-ID: 6dFygYzTYfN
2016-07-25 17:43:14 +03:00
Andrew McCreight
b5c9f59859 Bug 1286005 - Don't include the PID in the NS_DebugBreak crash annotation. r=froydnj
Including the PID makes it impossible to aggregate crash reports on
crash-stats.

This also reduces buffer size to ensure that having two buffers does
not increase total stack size, though that is unlikely to matter. 1000
characters is likely excessive in any event.
2016-07-25 07:29:13 -07:00
Nathan Froyd
6dad001d7f Bug 1238661 - fix mozilla::SignalTrampoline to work properly with clang; r=darchons
mozilla::SignalTrampoline is designed to work around a bug in older ARM
kernels; it constructs a trampoline function with a NOP slide and then
calls a specified function.  This feat is accomplished using inline
assembly and naked functions, which is a GCC extension where you get to
write the entire body of your function using GCC inline assembly.

Unfortunately, the particular implementation that it uses requires the
specified function's address to be loaded into a register.  GCC permits
this and we use input arguments to the assembly statement to ensure that
GCC knows it shouldn't clobber the incoming argument registers when
trying to load the function's address.

clang, however, complains about the use of input parameters in naked
functions.  So we need to find something that will work on both GCC and
clang.

The trick is to realize that we're a) tail-calling the specified
function and b) we don't have to worry about calling a fully-general
function.  We just have to worry about calling a function inside libxul,
and we can therefore "assume" that the offset between the branch and the
called function fits into the immediate field of a Thumb (or ARM) branch
instruction.  (This assumption is not strictly true; the branch range is
+/-16MB or so and libxul is actually quite a bit bigger than that.  But
it works in practice, and the linker will insert branch stubs if
necessary to make things work out OK.)

The upshot is that we can use a "b" instruction instead of a "bx"
instruction, and this makes clang much happier.  As a small bonus, the
stub gets ever-so-much-more efficient, which is probably the
least-significant micro-optimization ever.
2016-07-25 18:16:06 -04:00
Carsten "Tomcat" Book
a3904e8a8a Merge mozilla-central to mozilla-inbound 2016-07-25 15:59:01 +02:00
Carsten "Tomcat" Book
b9a6c687fa merge mozilla-inbound to mozilla-central a=merge 2016-07-25 15:50:41 +02:00
Carsten "Tomcat" Book
42933ba381 merge fx-team to mozilla-central a=merge
--HG--
rename : devtools/client/shared/css-color.js => devtools/shared/css-color.js
2016-07-25 15:49:05 +02:00
Carsten "Tomcat" Book
f3cbadf7c4 merge autoland to mozilla-central a=merge 2016-07-25 15:46:37 +02:00
Carsten "Tomcat" Book
2c684e6c97 Backed out changeset 13df5d72d373 (bug 1058438) for rc2 failures 2016-07-25 12:20:52 +02:00
Carsten "Tomcat" Book
08889aeff5 Backed out changeset d15abe37a931 (bug 1058438) 2016-07-25 12:20:36 +02:00
Carsten "Tomcat" Book
a2744dec29 Backed out changeset f0ef54ffcec1 (bug 1058438) 2016-07-25 12:20:35 +02:00
Carsten "Tomcat" Book
b013edac57 Backed out changeset 5d761723a899 (bug 1058438) 2016-07-25 12:20:34 +02:00
Carsten "Tomcat" Book
9b2e9abd21 Backed out changeset 34e32a1c5cef (bug 1058438) 2016-07-25 12:20:33 +02:00
Carsten "Tomcat" Book
c1c3140a2f Backed out changeset d93b95e192e9 (bug 1287723) on request from whimboo 2016-07-25 11:42:10 +02:00
Chris Peterson
1408fa9074 Bug 1288925 - Replace JS_ALIGNAS() polyfill with alignas(). r=sfink 2016-07-25 01:14:04 -07:00
Chris Peterson
6674411c75 Bug 1288924 - Remove __func__ polyfill for VS2013. r=froydnj 2016-07-25 01:14:31 -07:00
Makoto Kato
034db5a8b2 Bug 1094729 - Fix bustage. r=me
MozReview-Commit-ID: ExUWhdl6Z3Y

--HG--
extra : rebase_source : 07d7ce5a1c8126065ad48eafc7a8f7ab301d12ee
2016-07-25 16:32:24 +09:00