Commit Graph

67461 Commits

Author SHA1 Message Date
arthur.iakab
f4e188aae8 Merge mozilla-central to autoland a=merge on a CLOSED TREE 2018-10-24 01:22:06 +03:00
arthur.iakab
6b80c7eba9 Merge inbound to mozilla-central. a=merge 2018-10-24 01:18:31 +03:00
arthur.iakab
ff965569bd Merge autoland to mozilla-central a=merge 2018-10-24 01:15:18 +03:00
David Major
0c3884d2af Bug 1501301: Fix the argv loop in aarch64 generateEnterJIT r=sstangl
The code was looping one too many times.

Differential Revision: https://phabricator.services.mozilla.com/D9530

--HG--
extra : moz-landing-system : lando
2018-10-23 19:41:49 +00:00
Cosmin Sabou
1527095aea Backed out 4 changesets (bug 1489572) for valgrind failures at js::jit::LIRGenerator::visitBlock.
Backed out changeset f3aa68c506e0 (bug 1489572)
Backed out changeset cbfcb4b2b5c9 (bug 1489572)
Backed out changeset 683e3e0eaee1 (bug 1489572)
Backed out changeset f5973de3f6e8 (bug 1489572)
2018-10-23 21:48:50 +03:00
Ciure Andrei
09e4040e94 Merge autoland to mozilla-central. a=merge 2018-10-23 19:48:47 +03:00
Iain Ireland
a948347d9e Bug 1499010: Add fixed testcase for AutoUnsafeCallWithABI recovery fuzz bugs r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D9445

--HG--
extra : moz-landing-system : lando
2018-10-23 14:02:59 +00:00
Ciure Andrei
3498e5207f Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2018-10-23 19:51:00 +03:00
Kannan Vijayan
c321aaa60f Bug 1494537: Add CacheIR stub for out-of-capacity-bounds assignments to arrays. r=tcampbell 2018-10-23 10:49:04 -04:00
Nicolas B. Pierron
63f5f02b15 Bug 1489572 - Add LifoAlloc heuristic to increase the reserved space based on the consumed space. r=jorendorff 2018-10-23 15:06:33 +02:00
Nicolas B. Pierron
400a7a822d Bug 1489572 - Add LifoAlloc instrumentation for adding heuristics. r=tcampbell 2018-10-23 15:06:32 +02:00
Nicolas B. Pierron
b66d0f6d07 Bug 1489572 - Split LifoAlloc chunks in 2 lists. r=tcampbell
LifoAlloc bump allocations are now stored in 2 different lists instead of 1. The
first list continas small allocations, allocated in small chunks, while the
second list holds large allocation, each stored in its own chunk.

Splitting this list in 2 should prevent BumpChunks from being composed mostly of
wasted space when a large allocation happens.
2018-10-23 15:06:32 +02:00
Nicolas B. Pierron
77d04eb91d Bug 1489572 - LifoAlloc: Move cold code to LifoAlloc.cpp. r=tcampbell 2018-10-23 15:06:32 +02:00
Jan de Mooij
68af3a46d9 Bug 1493627 part 3 - Use AutoEnterOOMUnsafeRegion in js::RemapWrapper. r=jonco
Depends on D9254

Differential Revision: https://phabricator.services.mozilla.com/D9255

--HG--
extra : moz-landing-system : lando
2018-10-22 15:26:32 +00:00
Jan de Mooij
1dbada33f5 Bug 1493627 part 2 - Unify OOM testing state variables for different kinds to make AutoEnterOOMUnsafeRegion work for stack checks. r=jonco
Depends on D9253

Differential Revision: https://phabricator.services.mozilla.com/D9254

--HG--
extra : moz-landing-system : lando
2018-10-23 01:18:22 +00:00
Jan de Mooij
d411ccda35 Bug 1493627 part 1 - Change JSObject::swap return type from bool to void (it always returned true). r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D9253

--HG--
extra : moz-landing-system : lando
2018-10-22 15:25:08 +00:00
Julian Descottes
2fcd6cb020 Bug 1499096 - Update tests using ok() to is();r=Standard8
This changeset updates all the test that were wrongly using ok() and wanted to
use is() AND for which the assert is still passing without any modification
required.

Differential Revision: https://phabricator.services.mozilla.com/D8739

--HG--
extra : moz-landing-system : lando
2018-10-23 07:12:23 +00:00
Dorel Luca
3a7cdf3ced Merge mozilla-central to autoland
--HG--
extra : rebase_source : 55b6c62caabc054e51b6794215a76068e8da3bf1
2018-10-23 07:50:37 +03:00
Ted Campbell
4e4300d5dd Bug 1500822 - Fix a try-note range check in the debugger r=jorendorff
This should symptomless since the extra op should always be a JSOP_GOTO
which will be skipped over anyways. Fix for our sanity.

Differential Revision: https://phabricator.services.mozilla.com/D9422

--HG--
extra : moz-landing-system : lando
2018-10-22 21:47:47 +00:00
Ted Campbell
bc10597940 Bug 1500822 - Make TryNote::start relative to JSScript::code() r=jorendorff
Currently it is relative to JSScript::main(), but it is the only part of
the engine that uses this definition to describe a "pcOffset". This is
unnecessarily confusing, and fixing it is easy.

Differential Revision: https://phabricator.services.mozilla.com/D9358

--HG--
extra : moz-landing-system : lando
2018-10-22 21:42:55 +00:00
Daniel Varga
bcb62edefd Backed out 2 changesets (bug 1498371, bug 1498047) pushed on the wrong tree.
Backed out changeset 1eaa48d8b75d (bug 1498371)
Backed out changeset 9e28ac6527a9 (bug 1498047)
2018-10-23 00:23:41 +03:00
Andrew McCreight
0ee66a7f4f Bug 1497707, part 5 - Inline mozilla::ModuleLoader into mozJSComponentLoader. r=froydnj
Now that the XPCOM component loader infrastructure has stopped
pretending to support other file extensions, this intermediate
interface is no longer needed.

Depends on D8171

Differential Revision: https://phabricator.services.mozilla.com/D8172

--HG--
extra : moz-landing-system : lando
2018-10-23 00:46:49 +00:00
Andrew McCreight
f7cab62df4 Bug 1497707, part 4 - Only support loading JS files in the component manager. r=froydnj
JS is the only file extension actually supported, and there are a few
layers of cruft that can be eliminated if we specialize it.

This eliminates one XPCOM registration of the JS component loader.

Depends on D8170

Differential Revision: https://phabricator.services.mozilla.com/D8171

--HG--
extra : moz-landing-system : lando
2018-10-23 00:47:38 +00:00
Andrew McCreight
4c274219f8 Bug 1497707, part 1 - Get rid of xpcIJSModuleLoader. r=kmag
This interface is only used for a few testing functions. Just move
them to Cu.

Differential Revision: https://phabricator.services.mozilla.com/D8168

--HG--
extra : moz-landing-system : lando
2018-10-23 00:47:16 +00:00
Dorel Luca
30d59d3613 Backed out changeset d4cbc3865457 (bug 1499010) for spidermonkey failure 2018-10-23 00:24:34 +03:00
Sean Stangl
bc9aaf0cf8 Bug 1499536 - Implement CodeGeneratorARM64::visitShiftI and visitUrshD. r=mgaudet
Fixes ion/bug1000960.js.
2018-10-22 14:00:00 -04:00
Benjamin Bouvier
7bec7e608e Bug 1500231: Fix register allocation of copysign on AVX; r=sunfish
--HG--
extra : rebase_source : 99a85227520130cc006fbb4ff8b6bb3d7a1a03f6
extra : amend_source : 81b0b96934c487246b0188d63ce4b3c02a82b417
2018-10-22 15:41:53 +02:00
Jason Orendorff
a787b6a30c Bug 1501387 - Handlify Streams.h and avoid using const JSObject*. r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D9566

--HG--
extra : moz-landing-system : lando
2018-10-23 19:02:04 +00:00
Jason Orendorff
07397d3587 Bug 1499574 - Part 2: Assert that pn_arity is redundant. r=jwalden
Depends on D8935

Differential Revision: https://phabricator.services.mozilla.com/D8936

--HG--
extra : moz-landing-system : lando
2018-10-23 20:32:05 +00:00
Jason Orendorff
c5632231d8 Bug 1499574 - Part 1: In FOR_EACH_PARSE_NODE_KIND, list the arity of each node kind. r=jwalden
Differential Revision: https://phabricator.services.mozilla.com/D8935

--HG--
extra : moz-landing-system : lando
2018-10-23 20:31:42 +00:00
Jan de Mooij
2420688486 Bug 1501229 - Disallow {oom,stack,interrupt}Test functions on shell worker threads. r=jonco,nbp
Differential Revision: https://phabricator.services.mozilla.com/D9524

--HG--
extra : moz-landing-system : lando
2018-10-23 15:37:43 +00:00
Jason Orendorff
831ef8bea0 Bug 1483547 - Adjust comments in jstests.list now that pl-pl-style-short.js fails for the same reason as its fellows. r=jwalden
Differential Revision: https://phabricator.services.mozilla.com/D8999

--HG--
extra : moz-landing-system : lando
2018-10-22 19:45:55 +00:00
Sean Stangl
04f43bdaab Bug 1498371 - Implement visitCompareBitwise. Fixes basic/testScriptCloning.js. a=nbp 2018-10-11 14:01:00 +03:00
Sean Stangl
a1e70818c8 Bug 1498047 - Fix generateInvalidator(). r=nbp 2018-10-10 15:41:00 -04:00
Sean Stangl
e7903c1595 Bug 1498371 - Implement visitCompareBitwise. r=nbp
Fixes basic/testScriptCloning.js.
2018-10-11 14:01:00 -04:00
Iain Ireland
d5fe62a279 Bug 1499010: Add testcase for AutoUnsafeCallWithABI recovery fuzz bugs r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D9381

--HG--
extra : moz-landing-system : lando
2018-10-22 20:42:49 +00:00
Dorel Luca
74839ec1cd Backed out 2 changesets (bug 1500822) for build bustage. CLOSED TREE
Backed out changeset cb7ced1eb7ed (bug 1500822)
Backed out changeset 2eda4a5dffcc (bug 1500822)
2018-10-22 23:41:44 +03:00
Ted Campbell
f5b084ac24 Bug 1500822 - Fix a try-note range check in the debugger r=jorendorff
This should symptomless since the extra op should always be a JSOP_GOTO
which will be skipped over anyways. Fix for our sanity.

Differential Revision: https://phabricator.services.mozilla.com/D9422

--HG--
extra : moz-landing-system : lando
2018-10-22 18:39:24 +00:00
Ted Campbell
cd0e8cd66d Bug 1500822 - Make TryNote::start relative to JSScript::code() r=jorendorff
Currently it is relative to JSScript::main(), but it is the only part of
the engine that uses this definition to describe a "pcOffset". This is
unnecessarily confusing, and fixing it is easy.

Differential Revision: https://phabricator.services.mozilla.com/D9358

--HG--
extra : moz-landing-system : lando
2018-10-22 18:33:54 +00:00
Sebastian Hengst
1ad50182a7 merge mozilla-central to autoland
--HG--
rename : third_party/rust/nom/.cargo-checksum.json => third_party/rust/nom-3.2.1/.cargo-checksum.json
rename : third_party/rust/nom/CHANGELOG.md => third_party/rust/nom-3.2.1/CHANGELOG.md
rename : third_party/rust/nom/Cargo.toml => third_party/rust/nom-3.2.1/Cargo.toml
rename : third_party/rust/nom/src/bits.rs => third_party/rust/nom-3.2.1/src/bits.rs
rename : third_party/rust/nom/src/branch.rs => third_party/rust/nom-3.2.1/src/branch.rs
rename : third_party/rust/nom/src/bytes.rs => third_party/rust/nom-3.2.1/src/bytes.rs
rename : third_party/rust/nom/src/character.rs => third_party/rust/nom-3.2.1/src/character.rs
rename : third_party/rust/nom/src/internal.rs => third_party/rust/nom-3.2.1/src/internal.rs
rename : third_party/rust/nom/src/lib.rs => third_party/rust/nom-3.2.1/src/lib.rs
rename : third_party/rust/nom/src/macros.rs => third_party/rust/nom-3.2.1/src/macros.rs
rename : third_party/rust/nom/src/methods.rs => third_party/rust/nom-3.2.1/src/methods.rs
rename : third_party/rust/nom/src/multi.rs => third_party/rust/nom-3.2.1/src/multi.rs
rename : third_party/rust/nom/src/nom.rs => third_party/rust/nom-3.2.1/src/nom.rs
rename : third_party/rust/nom/src/regexp.rs => third_party/rust/nom-3.2.1/src/regexp.rs
rename : third_party/rust/nom/src/sequence.rs => third_party/rust/nom-3.2.1/src/sequence.rs
rename : third_party/rust/nom/src/simple_errors.rs => third_party/rust/nom-3.2.1/src/simple_errors.rs
rename : third_party/rust/nom/src/str.rs => third_party/rust/nom-3.2.1/src/str.rs
rename : third_party/rust/nom/src/stream.rs => third_party/rust/nom-3.2.1/src/stream.rs
rename : third_party/rust/nom/src/traits.rs => third_party/rust/nom-3.2.1/src/traits.rs
rename : third_party/rust/nom/src/util.rs => third_party/rust/nom-3.2.1/src/util.rs
rename : third_party/rust/nom/src/verbose_errors.rs => third_party/rust/nom-3.2.1/src/verbose_errors.rs
rename : third_party/rust/nom/src/whitespace.rs => third_party/rust/nom-3.2.1/src/whitespace.rs
rename : third_party/rust/nom/tests/arithmetic.rs => third_party/rust/nom-3.2.1/tests/arithmetic.rs
rename : third_party/rust/nom/tests/arithmetic_ast.rs => third_party/rust/nom-3.2.1/tests/arithmetic_ast.rs
rename : third_party/rust/nom/tests/blockbuf-arithmetic.rs => third_party/rust/nom-3.2.1/tests/blockbuf-arithmetic.rs
rename : third_party/rust/nom/tests/cross_function_backtracking.rs => third_party/rust/nom-3.2.1/tests/cross_function_backtracking.rs
rename : third_party/rust/nom/tests/float.rs => third_party/rust/nom-3.2.1/tests/float.rs
rename : third_party/rust/nom/tests/ini.rs => third_party/rust/nom-3.2.1/tests/ini.rs
rename : third_party/rust/nom/tests/ini_str.rs => third_party/rust/nom-3.2.1/tests/ini_str.rs
rename : third_party/rust/nom/tests/issues.rs => third_party/rust/nom-3.2.1/tests/issues.rs
rename : third_party/rust/nom/tests/json.rs => third_party/rust/nom-3.2.1/tests/json.rs
rename : third_party/rust/nom/tests/mp4.rs => third_party/rust/nom-3.2.1/tests/mp4.rs
rename : third_party/rust/nom/tests/multiline.rs => third_party/rust/nom-3.2.1/tests/multiline.rs
rename : third_party/rust/nom/tests/named_args.rs => third_party/rust/nom-3.2.1/tests/named_args.rs
rename : third_party/rust/nom/tests/omnom.rs => third_party/rust/nom-3.2.1/tests/omnom.rs
rename : third_party/rust/nom/tests/overflow.rs => third_party/rust/nom-3.2.1/tests/overflow.rs
rename : third_party/rust/nom/tests/reborrow_fold.rs => third_party/rust/nom-3.2.1/tests/reborrow_fold.rs
rename : third_party/rust/nom/tests/test1.rs => third_party/rust/nom-3.2.1/tests/test1.rs
extra : rebase_source : 6c5b45c092fd51bf1b3ce15960416fb59311d152
2018-10-22 20:34:24 +03:00
Sebastian Hengst
602fbb8422 merge mozilla-inbound to mozilla-central. a=merge 2018-10-22 20:26:16 +03:00
Jason Orendorff
9bfc0d1143 Bug 1493560 - Change test to allow another possibility. r=arai
This also changes the test to print something informative on failure.

Differential Revision: https://phabricator.services.mozilla.com/D9046

--HG--
extra : moz-landing-system : lando
2018-10-22 15:03:20 +00:00
Matthew Gaudet
3f38277268 Bug 1494473 - Using IONFLAGS=bl-ic-stats dump baseline IC statistics on script cleanup r=jandem
The output for a particular IC chain looks like this:

        box2d.js:174:250 (sub)       1009 -> 772 -> (fb) 2

Which is read like this: This sub opcode has two ICs attached. The first IC was
entered 1009 times, the second 772 and the fallback stub was hit twice.

There are some conclusions we can draw from this (and some we cannot)

- We can say with confidence the fallback stub was only hit twice, meaning 99.998%
  of queries to the IC chain hit in the IC rather than the fallback.

- We cannot however say necessarily that the first IC failed to provide a value
  771 times.

  Since new ICs are added at the front, it is possible that there was a phase
  transition that happened, and the first 771 requests were served by the first
  IC, followed by a transition to a new type and addition of a new IC, and
  subsequently 1009 queries were served by the newly added IC.

- We can conclude with confidence that there have been at least two different ICs
  involved in computation across the lifetime of the IC chain, and they are almost
  equally probable.

Though we can't do temporal reasoning with entry counters, we can still do some
reasoning.

Depends on D8859

Differential Revision: https://phabricator.services.mozilla.com/D8860

--HG--
extra : moz-landing-system : lando
2018-10-19 15:33:27 +00:00
Jon Coppeard
d92d954cec Bug 1499335 - Support module specifiers containing inline data in the shell r=evilpie 2018-10-22 13:33:02 +01:00
Emilio Cobos Álvarez
3f8b370d35 Bug 1500849 - Update bindgen. r=heycam,bbouvier
This pulls a new nom version, which is slightly unfortunate, but I do want some
of the fixes upstream, and it's build-only, so I think it's not a huge deal.

Differential Revision: https://phabricator.services.mozilla.com/D9362
2018-10-22 13:20:01 +02:00
Jon Coppeard
0df5d53830 Bug 1499140 - Add OOM tests for shell dynamic module import and fix bugs r=jandem 2018-10-22 11:28:17 +01:00
Jon Coppeard
7901f411b6 Backed out changeset 41ded240a012 (bug 1342012) for wrong bug number in commit message 2018-10-22 11:38:13 +01:00
Jon Coppeard
fe31bd1a07 Bug 1342012 - Add OOM tests for shell dynamic module import and fix bugs r=jandem 2018-10-22 11:28:17 +01:00
Jon Coppeard
6343707567 Bug 1499140 - Support dynamic module import in the shell r=jandem 2018-10-22 11:28:17 +01:00
Jon Coppeard
5226b2d045 Bug 1499140 - Compile dynamic module import bytecode r=jandem 2018-10-22 11:28:17 +01:00