Commit Graph

277513 Commits

Author SHA1 Message Date
Andrew McCreight
2122638888 Backed out changeset 18eec0849a1f (Bug 1195295) for leaking.
This changeset is causing shutdown leaks (bug 1234697 and bug 1220517).
2015-12-23 15:59:15 -05:00
Jakob Stoklund Olesen
f1dc9b1ee0 Bug 1233111 - Implement saturating arithmetic for SIMD. r=bbouvier
The functions addSaturate() and subSaturate() are defined on the 8x16 and 16x8
integer SIMD types only.

Theee are no 32x4 variants defined in SIMD.js because current hardware doesn't
support it directly.
2015-12-23 09:52:39 -08:00
Jakob Stoklund Olesen
3ac0c72748 Bug 1233111 - Implement SIMD shiftRightByScalar(). r=bbouvier
This is the right shift function that the SIMD.js spec requires. The old
shiftRightArithmeticByScalar() and shiftRightLogicalByScalar() functions will go
away.

These functions perform an arithmetic shift for signed types and a logical
shift for unsigned types.

Add support to Odin and Ion too, at least for the Int32x4 variant.
2015-12-23 09:52:39 -08:00
Jakob Stoklund Olesen
c5eebf245c Bug 1233111 - Add ecma_7 shift tests. r=bbouvier
Fix a bug in ShiftRightArithmetic when the underlying Elem type is unsigned.
Need to cast to a signed type to so it sign-extends to int when shifting.

Implement both logical and arithmetic right shift implementations for both
signed and unsigned integers. This is needed to test our current implementation
where both signed and unsigned SIMD types have the two
shiftRightArithmeticByScalar() and shiftRightLogicalByScalar() functions.

Soon, shiftRightArithmeticByScalar() and shiftRightLogicalByScalar() will be
replaced by a single shiftRightByScalar() function whose behavior is dependent
on the signedness of the underlying type.
2015-12-23 09:52:39 -08:00
Jakob Stoklund Olesen
1e79c8729d Bug 1233111 - Add unsigned SIMD types to interpreter. r=bbouvier
- Add new types UInt8x16, UInt16x8, UInt32x4 with all the boilerplate.
- Add corresponding conversion and bitcast functions to existing types.
- Add tests/ecma_7/SIMD tests for all new functions. Mostly boilerplate.
- Add full type coverage in ToSource.js. Fix existing SIMD types that were
  broken.
- Use shared test vectors for all the 32x4 integer binary-op test cases.
- Fix a bug in the 32-bit multiplication reference implementation for Int32x4
  and Uint32x4. A simple 'a*b' double multiplication loses precision to rounding
  for some inputs.
2015-12-23 09:52:39 -08:00
Jakob Stoklund Olesen
bcf126fcf0 Bug 1233111 - Share method lists for SIMD types. r=bbouvier
The lists TypeDescriptorMethods and TypedObjectMethods are identical for all
SIMD types, so save a bit of memory and source code by sharing a single list.
2015-12-23 09:52:39 -08:00
Jakob Stoklund Olesen
04d0d4e5a2 Bug 1233111 - Remove geometry altering SIMD conversions. r=bbouvier
In the current SIMD.js spec, value conversions are only defined between types
with the same number of lanes:

  Float32x4.fromInt32x4()
  Float32x4.fromUInt32x4()
  Int32x4.fromFloat32x4()
  UInt32x4.fromFloat32x4()

Remove existing conversion operators between vectors with different numbers of
lanes:

  Int32x4.fromFloat64x2()
  Float32x4.fromFloat64x2()
  Float64x2.fromInt32x4()
  Float64x2.fromFloat32x4()

Add a static assertion to FuncConvert.
2015-12-23 09:52:39 -08:00
Jakob Stoklund Olesen
ab18c2cd6b Bug 1233111 - Add a new ToUint8() function. r=efaust
This is needed for casting values into a SIMD.Uint8x16 lane.
2015-12-23 09:52:39 -08:00
Bill McCloskey
b1eab920e0 Bug 1205886 - [webext] Allow content scripts to do cross-origin XHRs if they have permission (r=kmag) 2015-12-23 12:29:39 -08:00
Bill McCloskey
927a14f259 Bug 1229552 - [webext] Add test for unregistration (r=kmag) 2015-12-23 12:29:39 -08:00
Bill McCloskey
157f94759c Bug 1228044 - [webext] Filter messages between extensions (r=kmag) 2015-12-23 12:29:39 -08:00
Bill McCloskey
dc30f5f3e3 Bug 1223240 - Make it easier to set up top-level protocols (r=jld) 2015-12-23 12:29:39 -08:00
Bill McCloskey
e663718745 Bug 1213680 - Stop using picker by default when opening inspector (r=pbrosset) 2015-12-23 12:29:39 -08:00
Bill McCloskey
8f6b897011 Bug 1224105 - [webext] Use <browser> element for background page (r=kmag) 2015-12-23 12:29:39 -08:00
Bill McCloskey
0af6b552b3 Bug 1224105 - Allow windowless chrome docshells containing content docshells (r=smaug) 2015-12-23 12:29:39 -08:00
Bill McCloskey
fea3317e12 Bug 1211401 - Use global message manager as parent of <iframe mozbrowser> MM (r=smaug,ahal) 2015-12-23 12:29:39 -08:00
Ben Kelly
0dd12e741b Bug 1220681 P6 Use clients.claim() in browser_download.js to avoid worker unregister race. r=jdm 2015-12-23 12:20:53 -08:00
Ben Kelly
bbbb4dd4fa Bug 1220681 P5 Don't double suspend parent channel during synthesized divert to parent. r=jdm 2015-12-23 12:20:53 -08:00
Ben Kelly
d6efdcc1b2 Bug 1220681 P4 Automatically suspend the parent channel after synthesizing the response for diverison. r=jdm 2015-12-23 12:20:53 -08:00
Ben Kelly
d8a0508b5d Bug 1220681 P3 Delay diversion on parent side until response head has been synthesized. r=jdm 2015-12-23 12:20:53 -08:00
Ben Kelly
0069a52282 Bug 1220681 P2 Test synthetic responses that trigger downloads. r=ehsan 2015-12-23 12:20:53 -08:00
Ben Kelly
3b5a98c999 Bug 1220681 P1 Make HttpChannelChild::DivertToParent() work with synthetic responses. r=jdm 2015-12-23 12:20:53 -08:00
Patrick McManus
a045ede9aa Bug 1218297 - eventtokenbucket shutdown leak r=valentin 2015-12-23 10:47:13 -05:00
Patrick McManus
3f8074f84e Bug 1234896 - refptrs for httphandler.cpp r=valentin.gosu 2015-12-23 11:43:41 -05:00
Luke Wagner
003a1235f2 Bug 1229642 - Factor out StringToNewUTF8CharsZ (r=jandem) 2015-12-23 14:02:48 -06:00
Benoit Girard
b2a35f377c No bug - Don't update 'webgl.dxgl.enabled' at runtime. 2015-12-23 14:55:22 -05:00
Wes Kocher
a25f8b9b20 Backed out 4 changesets (bug 1218996) for talos svg failures CLOSED TREE
Backed out changeset ba750628c4f3 (bug 1218996)
Backed out changeset 2205cce34824 (bug 1218996)
Backed out changeset 9410cbc0545e (bug 1218996)
Backed out changeset 7839222071ac (bug 1218996)
2015-12-23 11:09:05 -08:00
Nicolas B. Pierron
7835034566 Backed out changeset 14ea3c6f98bb (Bug 1229813) for performance issues on arewefastyet.
CLOSED TREE
2015-12-23 17:39:04 +00:00
Bill McCloskey
3d240d88b5 Bug 1208257 - [webext] runtime.json (r=kmag) 2015-12-23 08:57:13 -08:00
Bill McCloskey
7976a9c618 Bug 1208257 - [webext] extension.json (r=kmag) 2015-12-23 08:57:13 -08:00
Bill McCloskey
c5b143fe1f Bug 1208257 - [webext] i18n.json (r=kmag) 2015-12-23 08:57:13 -08:00
Bill McCloskey
9df5996a24 Bug 1208257 - [webext] context_menus.json (r=kmag) 2015-12-23 08:57:13 -08:00
Bill McCloskey
6716df4466 Bug 1208257 - [webext] page_action.json (r=kmag) 2015-12-23 08:57:13 -08:00
Bill McCloskey
ac90d0e6eb Bug 1208257 - [webext] browser_action.json (r=kmag) 2015-12-23 08:57:13 -08:00
Bill McCloskey
00fc2b83f6 Bug 1208257 - [webext] idle.json (r=kmag) 2015-12-23 08:57:13 -08:00
Bill McCloskey
d06d096a85 Bug 1208257 - [webext] bookmarks.json (r=kmag) 2015-12-23 08:57:13 -08:00
Nathan Froyd
8eca786dc9 Bug 1232454 - use UniquePtr<T[]> instead of nsAutoArrayPtr<T> in security/apps/; r=keeler
As a nice side effect, we also fix a (rare) memory leak in
AppTrustDomain::SetTrustedRoot.
2015-12-06 08:06:03 -05:00
Olivier Yiptong
c573bd311b Bug 1218996 - Allow Remote New Tab to ride release trains r=marcosc 2015-12-21 16:14:38 -05:00
Olivier Yiptong
759002c24d Bug 1218996 - Remove now redundant messaging code for remote newtab r=marcosc 2015-12-21 16:14:33 -05:00
Olivier Yiptong
dea89fb213 Bug 1218996 - Fuse aboutNewTabService and RemoteNewTabLocation and return resource URLS r=marcosc,oyiptong 2015-12-21 16:14:29 -05:00
Olivier Yiptong
936d352dde Bug 1218996 - AboutRedirector uses aboutNewTabService exclusively for about:newtab r=marcosc,mconley 2015-12-21 16:14:23 -05:00
Jan de Mooij
eac3533b75 Bug 1232676 - Use AutoEnterOOMUnsafeRegion instead of MOZ_CRASH in addPendingCompileError. r=jonco 2015-12-23 17:22:16 +01:00
Jan de Mooij
b3c6ca23a1 Bug 1232655 - Fix DebugScopeProxy::has to not lookup .this on non-function scopes. r=shu 2015-12-23 17:22:13 +01:00
Jan de Mooij
b37ef61a09 Bug 1233115 - Add missing OOM check after handler.newClassMethodList call. r=efaust 2015-12-23 17:05:29 +01:00
Jan de Mooij
4611d07669 Bug 1232386 - Fix NativeObject::growSlotsStatic to recover from OOM. r=terrence 2015-12-23 17:05:27 +01:00
Nathan Froyd
4d6a65e1a4 Bug 1233732 - disable MacroAssembler.h macro magic for clang-cl; r=nbp
clang-cl attempts to emulate MSVC's handling of __VA_ARGS__, but doesn't
quite get it right:

https://llvm.org/bugs/show_bug.cgi?id=25875

As a result of this, compiling files that #include MacroAssembler.h with
clang-cl result in fallbacks to MSVC.  Since falling back to MSVC is
non-ideal (and also causes problems around things like linking function
template instantiations), let's disable MacroAssembler.h's macro magic
for the time being.  Ideally, the problem will get fixed upstream
soon (even though it looks somewhat complicated); in the meantime,
fixing this issue lets forward progress be made when compiling Gecko
with clang-cl.
2015-12-18 11:11:09 -05:00
Alastor Wu
2e2d7b814f Bug 1234735 - Remove redundant spaces in nsGlobalWindow. r=baku 2015-12-23 10:34:54 +08:00
Bogdan Postelnicu
016c7114cd Bug 1234554 - verify pointer validity and if valid dereference it otherwise use default value. r=jst 2015-12-22 23:28:00 +01:00
Nicolas B. Pierron
d1bc0022cf Bug 1234193 - IsRelazifiableFunction: Return false when we report an error. r=jandem 2015-12-23 15:01:47 +00:00
Nathan Froyd
02985b10d7 Bug 1232772 - suppress numerous clang-style warnings when using clang-cl; r=glandium
Suppressing these warnings significantly cuts down the warning spam on
clang-cl builds.
2015-12-15 15:35:27 -05:00