Commit Graph

284790 Commits

Author SHA1 Message Date
bsilverberg
f29e1e96ca Bug 1246748 - Complete the implementation of chrome.i18n.getUILanguage, r=kmag
Implement chrome.i18n.getUILanguage including tests

Add API to content scripts

MozReview-Commit-ID: IcDlLj8Et73
2016-02-18 07:50:17 -05:00
Jeff Gilbert
6d5f0a8b9e Bug 1247764 - Disable STENCIL_TEST on mac+intel when not needed. - r=jrmuizel 2016-02-18 17:59:24 -08:00
Lee Salzman
ba30bddd22 Bug 1019856 - avoid double-buffering in BasicCompositor when window allows it. r=mattwoodrow 2016-02-18 20:57:29 -05:00
Kyle Huey
acacadfda1 Bug 1241634: Use is instead of ok in tests. r=me 2016-02-18 17:32:34 -08:00
Sambuddha Basu
9234bc33fd Bug 952564 - Disallow empty lists in moz.build variables r=gps 2016-02-18 17:26:09 -08:00
Jean-Yves Avenard
e427c208ac Bug 1248909: [MSE] P2. Simplify diagnostic. r=gerald
Also, an assert could have been incorrectly triggered, if eviction occurred on a source buffer while data was also being appended to it.

MozReview-Commit-ID: 6gVHZdbL07B
2016-02-19 12:19:08 +11:00
Thinker K.F. Li
ccf12f990a Bug 1244943 - Make PostProcessLayers aware of preserve-3d. r=mattwoodrow 2016-02-18 17:12:40 -08:00
Wes Kocher
b2110a394a Backed out changeset 40f18aee119c (bug 1232685) for xpcshell crashes in test_framebindings-03.js 2016-02-18 16:57:32 -08:00
Brian Birtles
2455f8e0cc Bug 1249212 part 7 - Calculate the endTime in GetComputedTimingAt; r=boris
Currently endTime is calculated when getComputedTiming() is called. As a
result, the value returned there doesn't necessarily reflect what we are using
in the model. It would be more simple, consistent and useful if we simply
calculate this as part of GetComputedTimingAt and use it both internally and in
the result to getComputedTiming().
2016-02-19 08:37:32 +09:00
Brian Birtles
3b61738ad0 Bug 1249212 part 6 - Add tests for endTime calculation; r=boris 2016-02-19 08:37:32 +09:00
Brian Birtles
ab4f42928a Bug 1249212 part 5 - Remove max() clamping from endTime calculation; r=boris
Based on discussion at: https://github.com/w3c/web-animations/issues/86
2016-02-19 08:37:32 +09:00
Brian Birtles
b78e012eb4 Bug 1249212 part 4 - Add tests for activeDuration; r=boris
Before we go fixing endTime, we should add tests that activeDuration (which
endTime builds on) is being calculated correctly. (Spoiler: it wasn't, hence
parts 2 and 3 in this patch series.)
2016-02-19 08:37:32 +09:00
Brian Birtles
be6b653854 Bug 1249212 part 3 - Fix active duration calculation when iteration duration is infinity; r=boris
With the added tests in part 4 we crash without this change because we end up
trying to multiply an infinite iteration duration by a zero iteration count
which trips an assertion in StickyTimeDuration. Hence we fix this behavior
before adding the tests.
2016-02-19 08:37:31 +09:00
Brian Birtles
bc7586045e Bug 1249212 part 2 - Fix infinity handling in StickyTimeDurationValueCalculator::Multiply; r=froydnj
This patch brings the behavior of this method into line with the comment that
describes it and other methods in this class that have a similar test.

I discovered this bug while exercising this code from animation code and was
getting test failures due to returning -Infinity instead of the expected
Infinity.
2016-02-19 08:37:31 +09:00
Brian Birtles
ca5d66e903 Bug 1249212 part 1 - Simplify various keyframe-effect tests; r=boris
This patch just simplifies the keyframe-effect tests so that we don't have to
repeat default values. This makes the tests shorter, easier to scan, and
easier to understand what is being tested.

In some cases we still repeat the default values in order to indicate that
we're testing that we get a particular default value.
2016-02-19 08:37:31 +09:00
Jakob Olesen
a0c44c06b0 Bug 1201934 - Remove SIMD shiftRight***ByScalar. r=sunfish
These functions have been replaced by the shiftRightByScalar function which
behaves differently on signed and unsigned SIMD types.

Add some Uint32x4 tests to make up for the reduced test coverage.

MozReview-Commit-ID: 6BKSMR07zDa
2016-02-18 15:37:10 -08:00
Andrew McCreight
a300094147 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
4098d0b694 Bug 1052793, part 1 - Do per-zone GC for CC_WAITING triggers. r=smaug 2016-02-18 15:21:48 -08:00
Jordan Lund
479689dd15 Bug 1246074 - add partials mozharness beetmover, custom tc artifact location, DONTBUILD NPOTB r=rail 2016-02-18 15:17:32 -08:00
Boris Zbarsky
91cf3278af Bug 1249102. Make overrides of WorkerRunnable::PostRun a bit more consistent. r=khuey
Specifically we make the following changes:

1)  Remove WorkerSameThreadRunnable::PostRun, because it does exactly the same
things as WorkerRunnable::PostRun.

2)  Always treat ModifyBusyCountFromWorker as infallible in terms of throwing
JS exceptions.

3)  Change ExtendableFunctionalEventWorkerRunnable::PostRun to properly call
its superclass PostRun so we will correctly decrement the busy count our
PreDispatch incremented.

4)  Document why some overrides of PreDispatch/PostDispatch are needed and
don't call into the superclass
2016-02-18 18:02:51 -05:00
Boris Zbarsky
1ac0bf2b79 Bug 1248737. Improve documentation for WorkerRunnable and associated classes. r=khuey 2016-02-18 18:02:51 -05:00
Alexander Surkov
1f22c9eeb2 Bug 1248840 - rename TreeWalker::NextChild, r=yzen 2016-02-18 17:57:17 -05:00
Ben Kelly
ce114f7675 Bug 1246319 P3 Fix service worker registry value update. r=bz 2016-02-18 14:48:49 -08:00
Eric Faust
52032c14f3 Bug 1232685 - Prevent forcing illegal return values in derived class constructors. (r=shu) 2016-02-18 14:10:35 -08:00
Wes Kocher
c23c026ab3 Backed out changeset 15485839d79f (bug 1248909) for frequent wpt crashes during mediasource-append-buffer.html a=backout 2016-02-18 14:05:00 -08:00
Mike Hommey
bed0e35451 Bug 1249167 - Fix dependencies involving stdc++compat and clang-plugin. r=mshal 2016-02-19 07:00:03 +09:00
Nathan Froyd
798482b96e Bug 1249369 - use UniquePtr instead of nsAutoArrayPtr in MediaPipeline.cpp; r=jesup 2016-02-18 14:09:23 -05:00
Paul Kerr [:pkerr]
9936e427b2 Bug 1240790: Add newlines to WEBRTC_TRACE_FILE. r=rjesup 2016-02-18 13:16:26 -08:00
Nathan Froyd
c7e9ede331 Bug 1249368 - use UniquePtr instead of nsAutoArrayPtr in gfxAlphaBoxBlur; r=jrmuizel 2016-02-18 14:10:00 -05:00
Hannes Verschore
f8d6701b3a Bug 1249252: SharedStubs - Add typebarrier to getprop shared stub, r=jandem 2016-02-18 15:17:38 -05:00
Justin Dolske
d705564ffa Backout 44f79bbe2b51 (bug 1219788), not working as intended. 2016-02-18 12:16:52 -08:00
Dustin J. Mitchell
02bd80c11c Bug 1231618: set MOZ_SOURCE_{REPO,CHANGESET}; r=ted.mielczarek
MozReview-Commit-ID: CSaXjrWmZtN
2016-02-09 17:39:57 +00:00
Armen Zambrano Gasparnian
d365733b9e Bug 1209932 - Enable Marionette normal and e10s modes. r=jmaher
MozReview-Commit-ID: 675sLap4Hrc
2016-02-18 12:27:42 -05:00
kearwood
ac3ed9c41a Bug 1237689 - Enable Oculus hardware latency tester r=daoshengmu
- Generate and pass sequential frame indexes into the ovr_GetTrackingState call and the corresponding call to ovr_SubmitFrame

MozReview-Commit-ID: 5tJl5YJt7Eo
2016-01-08 18:50:10 -08:00
Jakob Stoklund Olesen
2893f42cb0 Bug 1244889 - Disallow unsigned SIMD types for global variables. r=luke
Treat global variables the same as function arguments and return values: No
unsigned SIMD types allowed. This simplifies interoperation with WebAssembly.

Add a Type::isGloblVarType() which can be used to check for valid types.

Fold CheckGlobalVariableImportExpr into its single caller.

Remove Type::var(ValType) and Type::ret(ExprType). These backwards conversions
were only used for diagnostics, and we can use the existing ToCString() function
for that. Move this function form Wasm.cpp to WasmTypes.h so it can be used
everywhere.

MozReview-Commit-ID: FolGlCTVmgZ
2016-02-18 11:38:15 -08:00
Jakob Olesen
87c9fc2c6b Bug 1244889 - Fix Float32x4toUint32x4 for asm.js. r=bbouvier
The machine code needs to branch to wasm::JumpTarget::ConversionError instead of
bailing out.

MozReview-Commit-ID: 63vyHt2eJj
2016-02-18 11:38:15 -08:00
Jakob Stoklund Olesen
13f8e8d232 Bug 1244889 - Add support for Uint32x4 as an asm.js type. r=luke
Add Uint32x4 to NumLit and Type classes.

Reject unsigned SIMD types in function signatures to avoid confusion when
interoperating with WebAssembly.

MozReview-Commit-ID: 7FvQKKITVKR
2016-02-18 11:38:15 -08:00
Jakob Stoklund Olesen
5f60edfe40 Bug 1244889 - Handle all SIMD types in js::SimdTypeToName. r=bbouvier
Also move IsSimdTypeName() into builtin/SIMD.cpp and handle all SIMD type names
there too.

Use IsSimdValidOperationType(simdType, SimdOperation::Constructor) to check for
supported SIMD types in asm.js instead of depending on IsSimdTypeName() to only
return true on supported types.

MozReview-Commit-ID: FZrnPZc8zmJ
2016-02-18 11:38:15 -08:00
Jakob Stoklund Olesen
ff68f75365 Bug 1244889 - Amend wasm opcodes for unsigned I32x4 operations. r=bbouvier
The wasm types don't have signed/unsigned SIMD integers. Add enumerators for
those unsigned simd operations that behave differently than their signed I32x4
counterparts.

Implement wasm code generation for unsigned SIMD types.

Split the convertSimd() function into two variants for conversions and bitcasts
respectively. Add a SimdSign argument to the conversion variants.

Add a SimdSign argument to the extractSimdElement() function. This is not
strictly needed for I32x4 since wasm uses I32 for both signed and unsigned ints.
It will be required for the I8x16 and I16x8 types, though, because the lane
value needs to be extended to an I32.

Split out the binarySimdComp function for binary comparisons, and thread
through a SimdSign argument.

Add a SimdSign to EmitSimdOp() and thread it through where needed.

MozReview-Commit-ID: B8FHOHzjbBX
2016-02-18 11:38:15 -08:00
Jakob Stoklund Olesen
f84dc980e8 Bug 1244889 - Remove trivial SIMD NewAsmJS factories. r=bbouvier
The MSimd*::NewAsmJS() factory functions are not longer needed since the normal
MSimd*::New() functions also require the SIMD arguments to be unboxed since
bug 1244254.

Remove the trivial NewAsmJS functions here. The remaining SIMD NewAsmJS
functions will be removed in the next commit.

MozReview-Commit-ID: JtgRKZTmrzS
2016-02-18 11:38:15 -08:00
Jakob Olesen
41040ba472 Bug 1244889 - Remove SimdTypeToLength(). r=bbouvier
Use the existing GetSimdLanes() defined in SIMD.h.

MozReview-Commit-ID: 5vQhY2XFdDC
2016-02-18 11:38:14 -08:00
Jakob Olesen
adafbb7afc Bug 1244889 - Fix CheckCoercionArg and CheckReturnType. r=luke
These two functions can also take a Type argument instead of ValType/ExprType.

This makes it possible to avoid some explicit SIMD type enumerations, and the
Type <= ValType subtyping test is no longer needed.

MozReview-Commit-ID: 1nkMDUdgLkE
2016-02-18 11:38:14 -08:00
Jakob Olesen
7a16c268f9 Bug 1244889 - Reduce dependency on wasm::ExprType. r=luke
When validating function calls and coercions, use a canonical Type instead of a
wasm::ExprType to express the desired return type.

This will make it possible to distinguish signed/unsigned SIMD types during
validation.

MozReview-Commit-ID: 4S0SuRRgCzm
2016-02-18 11:38:14 -08:00
Jakob Stoklund Olesen
4ceae4dfe1 Bug 1244889 - Reduce dependency on wasm::ValType. r=luke
The WebAssembly and the asm.js type systems are diverging. In particular,
WebAssembly will not distinguish signed/unsigned SIMD types, while asm.js must
since it is compatible with SIMD.js. The wasm::ValType enum also has an I64
which is not supported by asm.js

Reduce OdinMonkey's dependency on wasm::ValType by returning a canonical 'class
Type' instead from these functions:

- IsCoercionCall()
- CheckTypeAnnotation()
- CheckArgumentType()

Avoid wasm::ValType for asm.js locals. We want to allow signed/unsigned SIMD
locals.

Remove NumLit::type().

MozReview-Commit-ID: Eutj6QKqn02
2016-02-18 11:38:14 -08:00
Jakob Olesen
f01d096a6e Bug 1244889 - Define a canonical subset of Type::Which. r=luke
This subset of the asm.js types corresponds to the Void type and all the
coercion targets. It corresponds to wasm::ExprType, except:

- asm.js does not support I64.
- asm.js distinguishes signed/unsigned SIMD types, wasm does not.

The function Type::canonicalize() maps a type into the canonical set.
Type::isCanonical() checks for membership.

This subset of Type::Which will be used to replace wasm::ValType and
wasm::ExprType in the asm.js type checking code. This makes it possible to
type-check unsigned SIMD types correctly.

Eliminate Type:checkedValueType(). Use Type::canonicalToValType() instead.

MozReview-Commit-ID: EBrCiPVYzh8
2016-02-18 11:38:14 -08:00
Jakob Stoklund Olesen
77d74cd545 Bug 1244889 - Rename Type:isVarType() out of the way. r=luke
This function is only used by CheckIsVarType which is actually used for
checking function arguments.

Rename isVarType -> isArgType and CheckIsVarType -> CheckIsArgType to better
match the usage.

This frees up the concept of a "var type" for the following patch.

MozReview-Commit-ID: 4J63ammf3zS
2016-02-18 11:38:14 -08:00
Jakob Stoklund Olesen
87399acc27 Bug 1244889 - Remove toMIRType() and simdType() methods. r=bbouvier
These methods on the asm.js Type class were unused.

MozReview-Commit-ID: 3JG3UxKR4nm
2016-02-18 11:38:14 -08:00
Dave Townsend
e5fd70477e Bug 1249074: Don't offer existing sideloaded add-ons to users when creating a new profile. r=rhelmer
MozReview-Commit-ID: 7pnZhEvGRfj
2016-02-17 11:06:00 -08:00
Milan Sreckovic
718c1f90fb Bug 1240160: Add the TimeStamp based uptime value to crash reports, tagging it as UptimeTS, to differentiate from an existing Uptime value. A bit of additional code, avoiding the usage of C libraries to format some strings and a way to gtest these. r=BenWa,ted.mielczarek carrying ted.mielczarek review for the exception handler changes.
MozReview-Commit-ID: 12pRuD7agIG
2016-02-17 17:44:21 -05:00
Byron Campen [:bwc]
3b10fb7a89 Bug 1241153: Stop blocking addTrack on GMP init, and update codecs on existing tracks when GMP init finishes. r=jesup
MozReview-Commit-ID: GqUBh0O5Dpk
2016-02-12 14:21:33 -06:00