Commit Graph

69692 Commits

Author SHA1 Message Date
Iain Ireland
edb38fb6c8 Bug 1531841: Make callVM/tailCallVM infallible in CacheIR compilers r=mgaudet
Differential Revision: https://phabricator.services.mozilla.com/D21779

--HG--
extra : moz-landing-system : lando
2019-03-01 20:48:28 +00:00
Steve Fink
b8306b2633 Bug 1531234 - Write JS test structured logs to main_raw.log instead of intermixing them in stdout r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D21483

--HG--
extra : moz-landing-system : lando
2019-03-01 18:19:40 +00:00
Tom Schuster
cca0f96c18 Bug 1531820 - Use ValueType for CacheIR guardType. r=mgaudet
Differential Revision: https://phabricator.services.mozilla.com/D21721

--HG--
extra : moz-landing-system : lando
2019-03-01 17:28:43 +00:00
Andy Wingo
5dc4cb3a7d Bug 1527900 - Throw exception if StructuredClone sees bigint in realm without bigint r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D21206

--HG--
extra : moz-landing-system : lando
2019-03-01 10:01:33 +00:00
Nicolas B. Pierron
80ec37a0c7 Bug 1528597 - ARM64: Fix CodeGenerator::visiShiftI Ursh case doing more than other architecture and baseline. r=sstangl
Differential Revision: https://phabricator.services.mozilla.com/D21385

--HG--
extra : moz-landing-system : lando
2019-03-01 16:14:42 +00:00
Benjamin Bouvier
b27fcb81a7 Bug 1530641: Add test case; r=bhackett
Differential Revision: https://phabricator.services.mozilla.com/D21506

--HG--
extra : moz-landing-system : lando
2019-03-01 13:33:11 +00:00
Gurzau Raul
a218f01445 Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-03-01 15:14:00 +02:00
Gurzau Raul
cdf9392948 Merge inbound to mozilla-central. a=merge 2019-03-01 15:01:31 +02:00
Tooru Fujisawa
102dbec90b Bug 1531618 - Detect function declaration without appropriate scope and block it. r=Yoric
Differential Revision: https://phabricator.services.mozilla.com/D21642

--HG--
extra : moz-landing-system : lando
2019-03-01 08:58:52 +00:00
Cameron Kaiser
651429b4c2 Bug 1512162 - Reenable stack protection for ppc64le in XPConnect. r=bholley 2019-02-27 19:31:08 -08:00
Gurzau Raul
6b94d177d1 Merge mozilla-central to inbound. a=merge CLOSED TREE 2019-03-01 09:28:28 +02:00
Narcis Beleuzu
328eaa75ac Backed out changeset 8fd728e30375 (bug 1531234) for spidermonkey bustages on structuredlog.py . CLOSED TREE 2019-03-01 03:31:10 +02:00
Ashley Hauck
97d92b328f Bug 1530084 - Add testcase for unimplemented fields not crashing. r=jorendorff
Differential Revision: https://phabricator.services.mozilla.com/D21504

--HG--
extra : moz-landing-system : lando
2019-02-28 17:33:44 +00:00
Steve Fink
a54ab0f29e Bug 1531234 - Write JS test structured logs to main_raw.log instead of intermixing them in stdout r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D21483

--HG--
extra : moz-landing-system : lando
2019-02-28 17:46:30 +00:00
shindli
6820dc6ccd Backed out changeset cc20c56545bd (bug 1527900) for spidermoneky build bustages CLOSED TREE 2019-03-01 00:15:42 +02:00
Oana Pop Rus
12c70e6b88 Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-03-01 00:00:53 +02:00
Oana Pop Rus
5c86c9efec Merge inbound to mozilla-central. a=merge 2019-02-28 23:47:12 +02:00
Jon Coppeard
c889724a1b Bug 1531018 - Update BigInt hashing to account for the possiblity of moving GC r=sfink 2019-02-28 17:33:49 +00:00
Jon Coppeard
bf58123016 Bug 1531035 - Assert that weak map keys are not null r=sfink 2019-02-28 16:38:49 +00:00
Jon Coppeard
ef9a7b7a27 Bug 1530643 - Check for allocation failure when initialising sweep actions r=sfink 2019-02-28 16:38:48 +00:00
Cosmin Sabou
e4dc7046ec Backed out changeset c21e3a9d4457 (bug 1530641) for causing SM bustages on debugger-no-script.js. CLOSED TREE 2019-02-28 18:08:04 +02:00
Yoshi Cheng-Hao Huang
92ccfd4d30 Bug 1529006 - Use Rooted for NewObjectMetadataState. r=jonco
Remove the `if (!mozilla::IsPointer<T>::value || thing)` check in
GCVariantImplementation::trace, as GCPolicy will dispatch these to
GCPointerPolicy and InternalPointerPolicy (for pointers) and StructGCPolicy (for
non-pointers).

Also use Rooted for prevState_ in AutoSetNewObjectMetadata and remove
inherit from CustomAutoRooter.
2019-02-28 16:05:23 +01:00
Ashley Hauck
3578e2838b Bug 1531323 - Fix incorrect classTypeCode in ClassField. r=jorendorff
Differential Revision: https://phabricator.services.mozilla.com/D21530

--HG--
extra : moz-landing-system : lando
2019-03-01 01:17:47 +00:00
Ashley Hauck
f549afa691 Bug 1528020 - Document high-level overview of the structure of parser support classes. r=jorendorff
Differential Revision: https://phabricator.services.mozilla.com/D21363

--HG--
extra : moz-landing-system : lando
2019-03-01 01:20:27 +00:00
Jan de Mooij
d6b56823da Bug 1521906 part 4 - Remove CheckedUnwrap and rename UnwrapOneChecked to UnwrapOneCheckedStatic. r=bzbarsky
The CacheIR code only sees transparent CCWs so it's fine to do a static unwrap.

DebuggerObject::unwrap is more complicated. We're in the debugger's compartment
there; I went with UnwrapOneCheckedStatic as it seems safest and simplest for
now.

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

--HG--
extra : moz-landing-system : lando
2019-03-01 09:21:11 +00:00
Boris Zbarsky
3f1bb52920 Bug 1530146 part 2. Back out the fix for bug 1526624, since it's no longer needed. r=bholley
Differential Revision: https://phabricator.services.mozilla.com/D21482

--HG--
extra : moz-landing-system : lando
2019-03-01 00:19:53 +00:00
Boris Zbarsky
05b3097da8 Bug 1530146 part 1. Switch XrayWaiver to always being same-realm with its target. r=bholley
Differential Revision: https://phabricator.services.mozilla.com/D21481

--HG--
extra : moz-landing-system : lando
2019-03-01 02:54:41 +00:00
Andy Wingo
678f6efcbf Bug 1527900 - Throw exception if StructuredClone sees bigint in realm without bigint r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D21206

--HG--
extra : moz-landing-system : lando
2019-02-27 17:10:05 +00:00
Cosmin Sabou
9aed4b2b35 Merge mozilla-central to mozilla-inbound. 2019-02-28 13:43:36 +02:00
Cosmin Sabou
00f3836a87 Merge mozilla-inbound to mozilla-central. a=merge 2019-02-28 12:57:50 +02:00
Lars T Hansen
70a2eb7d3c Bug 1524923 - Support local.get, local.set, global.get, global.set. r=bbouvier
I've only added support for these, renamed in a couple of error
messages and a few test cases, not renamed all the uses, because there
are so many.  Will file followup bugs for that work, but it won't be
urgent.

Note, wabt no longer recognizes get_local et al, it requires local.get
etc.  But we should remain backward compatible for a long while still.

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

--HG--
extra : rebase_source : b78b23ee5edb6121da6884b1bf36336e07ea82ef
2019-02-28 09:55:51 +01:00
Lars T Hansen
9a333813fc Bug 1530273 - Make 'funcref' the canonical name. r=bbouvier
Wabt is now supporting funcref exclusively, and with the reftypes
proposal I think there's broad agreement that we will stop using
anyfunc.  So let's accept funcref both in the text format and in the
table creation dictionary, and let's use this name as the canonical
name in error messages and similar.

But let's also continue to accept anyfunc, since there may be
in-flight tests and other content that uses it.  This includes a
couple of emscripten-compiled benchmarks currently in the repo; I
chose not to change those.

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

--HG--
extra : rebase_source : 078ffbac2c3d88b2ce74fdcf06493b4db8000dac
2019-02-27 18:03:44 +01:00
Yoshi Cheng-Hao Huang
474140112e Bug 1319468 - P3: Use Rooted for RootedCount. r=jonco 2019-02-28 10:26:55 +01:00
Yoshi Cheng-Hao Huang
f875b24960 Bug 1319468 - Part 2: Use Rooted<GCVector> for AutoLookupVector. r=sfink 2019-02-28 10:26:37 +01:00
Yoshi Cheng-Hao Huang
b198f186ed Bug 1319468 - P1: Use Rooted for AutoRooterGetterSetter::Inner. r=jonco 2019-02-28 10:26:19 +01:00
Jeff Walden
637b436666 Bug 1530883 - Stop skipping some tests that actually pass. r=anba
--HG--
extra : rebase_source : 7fc2fa335fa3ef9e578cfba5f576ebaefb5c7131
2019-02-27 17:24:06 -08:00
Julian Seward
e6111cabb2 Bug 1530991 - wasm baseline: fix the "don't create stackmap" criterion in createStackMap(). r=lhansen.
StackMapGenerator::createStackMap() creates stack maps in the wasm baseline
compiler.  For release builds, it first performs a check to determine whether
the stackmap would describe only non-ref words, and if so, exits without
creating the map, since the map would be useless.

To make the check cheaper, it is inexact but safe, so it sometimes causes a
map to be created even though it is unnecessary.  Specifically, the vector
|extras|, which may contain a description of exit stub register save
locations, is regarded as possibly-contributing-refs if it is merely
non-empty.  The actual contents are not checked.  This causes creation of
33,688 unnecessary stack maps in the Tanks test case, probably one for each
function.

The fix is simple.  Actually check every element of |extras| to see if any are
|true|.  This makes the test exact, removes all unnecessary map creation, and
reduces the Tanks compile cost from 2.43 billion instructions to 2.39 billion
instructions.  That is, the shortcut was overall a loss anyway, presumably due
to the extra costs incurred by the pointless stackmap creation.

--HG--
extra : rebase_source : 4990f28ec6d3d50e289432572c79a6ca105aecc3
2019-02-27 17:49:30 +01:00
Matthew Gaudet
2451b401b7 Bug 1473830 - Add testcase r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D21014

--HG--
extra : moz-landing-system : lando
2019-02-27 11:53:01 +00:00
Steve Fink
7e1603e74a Bug 1529428 - Remove unused "collectNurseryBeforeDump" argument from dumpHeap() test function r=pbone
Differential Revision: https://phabricator.services.mozilla.com/D20595

--HG--
extra : moz-landing-system : lando
2019-02-27 04:02:11 +00:00
Paul Bone
f454488dff Bug 1530573 - Protect maybeResizeNursery() from overflow r=sfink
Differential Revision: https://phabricator.services.mozilla.com/D21158

--HG--
extra : moz-landing-system : lando
2019-03-01 00:09:09 +00:00
Greg Tatum
0477c3b4e0 Bug 1529125 - Add IOInterposerInit to xpc shell tests; r=froydnj
Add an RAII guarded initialization for the IO interposer to the
initialization process for xpc shell tests. This ensures that whenever
an xpcshell tests uses the IOInterposer, that it will correctly
catch all registered threads, and will not miss any.

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

--HG--
extra : moz-landing-system : lando
2019-02-26 15:27:20 +00:00
Ted Campbell
19ce0ac165 Bug 1527007 - Work around Windows fmod bugs r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D21407

--HG--
extra : moz-landing-system : lando
2019-02-28 13:22:17 +00:00
Benjamin Bouvier
f1a11814b4 Bug 1530641: Add test case; r=bhackett
Differential Revision: https://phabricator.services.mozilla.com/D21506

--HG--
extra : moz-landing-system : lando
2019-02-28 11:53:38 +00:00
Jan de Mooij
b4faab5772 Bug 1530937 part 2 - Add new VMFunction mechanism and use it for some Baseline callVMs. r=nbp,tcampbell
We are doing this to:

1) Eliminate (hundreds of) static constructors. These account for a significant
   fraction of all remaining static constructors in Gecko.

2) Use constexpr for VMFunction data. This was not possible with the linked list
   but the new design stores all data in a constexpr array. This will save a few
   KB per process.

3) Make it easier to define a new VMFunction.

4) Coalesce duplicate VMFunction copies in Baseline/Ion/ICs.

5) Get rid of the (read-only) HashMap for the VMFunction => code lookup. We can
   use a Vector instead.

6) Make it easier in the future to generate the wrappers at compile time.

This patch will let us incrementally convert the remaining VM functions. The
only thing not handled by this patch is support for the TailCall and
extraValuesToPop fields. We can do this when we convert the Baseline IC code
that uses these fields.

Once all VM functions have been converted we can remove and simplify more code.

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

--HG--
extra : moz-landing-system : lando
2019-02-28 12:31:01 +00:00
Jan de Mooij
7e8bf994ed Bug 1530937 part 1 - Remove FunctionInfo Context template parameter. r=nbp
This was useful when we had ExclusiveContext and PJS ThreadSafeContext but now we
only use JSContext* so it's simpler to just use that.

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

--HG--
extra : moz-landing-system : lando
2019-02-28 09:37:36 +00:00
Cosmin Sabou
48fed2590e Merge mozilla-central to autoland. CLOSED TREE
--HG--
extra : amend_source : 7b6922917d1ee0d20fd7127648e1fe5e422a1bd9
2019-02-28 16:33:22 +02:00
Ashley Hauck
8b84184b09 Bug 1526031 - remove initOrStmt field from NameNode. r=jorendorff,arai
Differential Revision: https://phabricator.services.mozilla.com/D19054

--HG--
extra : moz-landing-system : lando
2019-02-28 09:52:32 +00:00
Cosmin Sabou
75363ca2fb Backed out changeset 01d931a9140b (bug 1526031) for build bustages on frontend/ParseNode.h CLOSED TREE 2019-02-28 11:15:46 +02:00
Ashley Hauck
83ff13eec8 Bug 1526031 - remove initOrStmt field from NameNode. r=jorendorff,arai
Differential Revision: https://phabricator.services.mozilla.com/D19054

--HG--
extra : moz-landing-system : lando
2019-02-28 01:29:19 +00:00
Marco Bonardo
5c4e44ce0a Bug 1528751 - Add a custom eslint rule to check "consistent" if bracing. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D20753

--HG--
extra : moz-landing-system : lando
2019-02-28 08:39:33 +00:00