Commit Graph

61975 Commits

Author SHA1 Message Date
Steve Fink
5ef5e4e6f7 Bug 1442804 - heap write analysis: whitelist all atomics, r=bholley 2018-03-06 08:43:36 -08:00
Ted Campbell
7738458821 Bug 1419094 - Cleanup some XDR apis. r=nbp
Avoid declaring XDR core types in vm/JSAtoms.h. Remove codeConstValue
from XDR API.

MozReview-Commit-ID: GQbLocJbW6H
2018-03-13 17:00:00 -04:00
Ryan VanderMeulen
cdf44da1e4 Bug 977538 - Land the attached testcase as a crashtest. r=me 2018-03-14 21:36:05 -04:00
Brian Grinstead
5dbe98446b Bug 1445772 - Don't worry about binding console methods to the console object r=jryans
This isn't needed since Console is an interface and not an object

MozReview-Commit-ID: ZoIo2TS9QL
2018-03-14 14:33:47 -07:00
Andreea Pavel
04d24bc8bc Merge mozilla-central to autoland. a=merge on a CLOSED TREE 2018-03-15 00:10:23 +02:00
Tom Ritter
194d59131d Bug 1443943 Do not clamp/jitter in the JS Engine if it's system context r=jorendorff,luke
MozReview-Commit-ID: LqL7xaYoHCT
2018-03-09 09:49:28 -06:00
Andi-Bogdan Postelnicu
63fd204822 Bug 1437532 - prevent doing memset on a non-trivial type. r=jorendorff
MozReview-Commit-ID: C8BfwJSHkWM
2018-03-13 11:57:49 +02:00
dragan.mladjenovic
b77db4b663 Bug 1445658 - [MIPS32] Implement BaseCompiler::pop2xI64ForMulI64; r=lth 2018-03-14 22:09:22 +02:00
Luke Wagner
da321e89bf Bug 1435360 - Baldr: implement wasm interrupt in terms of TlsData branch and stack overflow check (r=bbouvier) 2018-03-12 15:10:06 -05:00
Luke Wagner
860a8d0e87 Bug 1435360 - Baldr: remove wasm async interrupt support (r=jandem) 2018-03-12 11:12:54 -05:00
Luke Wagner
d5ca350363 Bug 1435360 - Baldr: do baseline stack-overflow check after initializing DebugFrame (again) (r=lth) 2018-03-14 14:33:20 -05:00
André Bargull
68e0aae0c0 Bug 1442599 - Part 7: Clean up using and includes in jsutil. r=jorendorff
And remove "using mozilla::Maybe" from gc/Statistics.h and handle its fallout.
2018-03-15 04:23:41 -07:00
André Bargull
896e672ccb Bug 1442599 - Part 6: Remove macros from jstypes.h when unused or replacements exist. r=jorendorff 2018-03-15 03:43:11 -07:00
André Bargull
15e741651f Bug 1442599 - Part 5: Remove "Basic stats" from jsutil. r=jorendorff 2018-03-15 03:43:05 -07:00
André Bargull
3358ff0355 Bug 1442599 - Part 4: Replace JS_ALWAYS_TRUE/FALSE with MOZ_ALWAYS_TRUE/FALSE. r=jorendorff 2018-03-15 03:42:56 -07:00
André Bargull
43be63410c Bug 1442599 - Part 3: Move JS_SILENCE_UNUSED_VALUE_IN_EXPR macro to last remaining call site. r=jorendorff 2018-03-15 03:41:33 -07:00
André Bargull
fbc8d36e95 Bug 1442599 - Part 2: Replace bitmap macros with BitArrayElement functions. r=jorendorff 2018-03-15 03:41:28 -07:00
André Bargull
85cfe8ce38 Bug 1442599 - Part 1: Replace AutoScopedAssign with MakeScopeExit. r=jorendorff 2018-03-15 03:41:23 -07:00
Ryan VanderMeulen
0c36f3f403 Bug 1086964 - Remove uses of no_pgo that are no longer needed. r=dmajor 2018-03-14 18:18:32 -04:00
Andreea Pavel
624f73578a Merge mozilla-central to autoland. a=merge on a CLOSED TREE 2018-03-20 00:42:18 +02:00
Valentin Gosu
f575a0c6a9 Bug 1442239 - Fix test since nsSimpleURI can't be constructed via createInstance() anymore r=Waldo
* I am not entirely sure what this test is doing, but I found that replacing nsSimpleURI with CSPContext makes it work.

MozReview-Commit-ID: 4ATVXVrYX56
2018-03-19 20:22:36 +01:00
Andreea Pavel
d73ab14f2d Backed out 2 changesets (bug 1442239) for xpcshell failures at widget/tests/unit/test_taskbar_jumplistitems.js on a CLOSED TREE
Backed out changeset 513cd669aca1 (bug 1442239)
Backed out changeset aef4c73f736f (bug 1442239)
2018-03-19 21:19:26 +02:00
Valentin Gosu
94e1a583cf Bug 1442239 - Fix test since nsSimpleURI can't be constructed via createInstance() anymore r=Waldo
* I am not entirely sure what this test is doing, but I found that replacing nsSimpleURI with CSPContext makes it work.

MozReview-Commit-ID: 4ATVXVrYX56
2018-03-08 14:21:23 +01:00
Jon Coppeard
1cfcb88794 Bug 1445196 - Store the atom's pinned flag in the atom to simplify lookup r=jandem 2018-03-13 18:36:47 +00:00
Jan de Mooij
0a14e27a73 Bug 1445181 part 3 - Use #ifdef JS_JITSPEW more to shrink opt builds a bit. r=nbp 2018-03-13 19:01:21 +01:00
Jan de Mooij
133b55245c Bug 1445181 part 2 - Use a switch statement instead of MDefinition::accept. r=nbp 2018-03-13 19:00:38 +01:00
Jan de Mooij
cd438c8b5f Bug 1445181 part 1 - Make LIR opcode an enum class. r=nbp 2018-03-13 19:00:15 +01:00
Nicolas B. Pierron
6694d2df1a Bug 1419094 - Result-ify XDR functions. r=tcampbell 2018-03-13 18:00:51 +00:00
Nicolas B. Pierron
fe140030ae Bug 1401939 - Align XDR content to avoid undefined behaviours. r=kmag,tcampbell 2018-03-13 18:00:50 +00:00
Lars T Hansen
f4b56089b3 Bug 1333018 - Clean up by-ref and by-pointer arguments. r=bbouvier 2018-03-13 13:56:01 +01:00
Lars T Hansen
05392bb859 Bug 1434054 - Remove unused macroassembler functions. r=bbouvier 2018-03-13 13:10:36 +01:00
Lars T Hansen
4be4194ab1 Bug 1440618 - Remove unused register definitions. r=bbouvier 2018-03-13 12:55:45 +01:00
Nathan Froyd
a23d5d7457 Bug 1340588 - enable clang-cl to generate depfiles directly, rather than using a wrapper; r=build-peer
We use a wrapper script when compiling with MSVC to parse the
/showIncludes output and thereby generate a Makefile dependency
fragment.  This fragment enables us to do correct and faster incremental
builds.  But the cost of invoking the wrapper script can be significant;
it's an extra process or two to launch for every single compilation.

Instead, let's have clang-cl generate the dependencies directly, which
should be somewhat faster.
2018-03-13 09:06:00 -05:00
Narcis Beleuzu
b732ff8724 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-03-13 12:36:54 +02:00
Lars T Hansen
1d676fe6b3 Bug 1441142 - Adapt wasm stubs for ARM64. r=bbouvier
As the SP is weird on ARM64 a number of adjustments must be made to
the stubs code.  On the one hand we never have to check for stack
alignment; on the other hand we don't get to use raw Push and Pop to
manipulate the stack, the word-aligned stack in the JIT ABI requires
some unusual adjustments, and the fact that the JIT treats x28 (the
PseudoStackPointer) as non-volatile requires it to be saved and
restored, or recomputed.

On ARM64 we do not have a pop-return-address-from-memory-and-return,
and this causes a slight problem for the interrupt stub code.  On MIPS
this is fixed by using HeapPtr as a temp for the return address and
then restoring HeapPtr in the branch delay slot, but ARM64 does not
have branch delay slots either.

For now I'm using x28 to hold the return address since Wasm code does
not use x28 (it is not allocatable even in wasm code at this point)
and the interrupt stub only runs when the machine is in the wasm
state.  If this turns out not to be workable we probably need to
reserve another register just for this.
2018-02-12 17:42:45 +01:00
Ryan VanderMeulen
39911debab Bug 1424281 - Use Visual Studio 2017 15.6.0 for Windows builds. r=froydnj 2018-03-12 19:24:44 -04:00
Brindusan Cristian
376795eb66 Backed out changeset 294a422d49b0 (bug 1401939) for sm-arm64 failures on /builds/worker/workspace/build/src/js/src/vm/Xdr.cpp CLOSED TREE 2018-03-12 20:55:23 +02:00
Jason Orendorff
282c9f7830 Bug 1439026 - Part 4: jsbool* -> builtin/Boolean*. r=jandem. 2018-02-24 10:31:29 -06:00
Jason Orendorff
d354f250cb Bug 1439026 - Part 3: jsarray* -> builtin/Array*. r=jandem. 2018-02-24 10:26:24 -06:00
Nicolas B. Pierron
f73c483191 Bug 1401939 - Align XDR content to avoid undefined behaviours. r=kmag,tcampbell 2018-03-12 18:23:13 +00:00
Jason Orendorff
384227afa7 Bug 1444339 - Crash using baselineCompile() in a fresh compartment. r=nbp. 2018-03-09 09:33:30 -06:00
Dragan Mladjenovic
b57d2e9c93 Bug 1444303 : [MIPS] Fix build failures after Bug 1425580 part 17; r=jandem 2018-03-09 07:58:43 +01:00
Bogdan Tara
8b6d4947ac Merge inbound to mozilla-central. a=merge 2018-03-12 11:55:11 +02:00
Jan de Mooij
894bdca8fd Bug 1442561 part 3 - Flip the pref. r=me 2018-03-11 21:11:33 +01:00
arthur.iakab
67e919f979 Merge mozilla-central to autoland 2018-03-11 23:49:17 +02:00
Jan de Mooij
f9ca546a81 Bug 1442561 part 2 - Add Spectre mitigations for most shape/group/class guards in JIT code. r=luke,tcampbell 2018-03-11 20:18:24 +01:00
Jan de Mooij
b993ce54b0 Bug 1442561 part 1 - Add browser pref for misc Spectre object type mitigations. r=luke 2018-03-11 20:14:03 +01:00
Jim Blandy
cc9326c346 Bug 1438121: Add jit-test async-livecache.js. r=fitzgen
MozReview-Commit-ID: Jbe1GMPGwKj
2018-03-09 16:47:58 -08:00
Petr Sumbera
d1c14f50a0 Bug 1439885 - Fix RelocationOverlay for big-endian machines in JavaScript : GC. r=sfink 2018-03-09 08:33:57 -08:00
Jan de Mooij
98a9bd787e Bug 1425580 part 20 - Clean up wasm call LIR instructions a bit. r=bbouvier 2018-03-10 12:34:34 +01:00