Commit Graph

64491 Commits

Author SHA1 Message Date
Andreea Pavel
2343cd1f77 Backed out 10 changesets (bug 1439855) for build bustages at /builds/worker/workspace/build/src/obj-firefox/dist/include/mozilla/Result.h:308 on a CLOSED TREE
Backed out changeset 4a36617f7f0d (bug 1439855)
Backed out changeset da50d0cc6c5b (bug 1439855)
Backed out changeset e1ac1d0b4ea1 (bug 1439855)
Backed out changeset f5acf9dfb9ad (bug 1439855)
Backed out changeset 16a32f1eddb2 (bug 1439855)
Backed out changeset 00aa64418797 (bug 1439855)
Backed out changeset 59838090809b (bug 1439855)
Backed out changeset 2916fe19f035 (bug 1439855)
Backed out changeset f8dabfc553ff (bug 1439855)
Backed out changeset 41c442ae9e6c (bug 1439855)
2018-04-16 18:36:43 +03:00
David Teller
f0a65db504 Bug 1439855 - Make BinSource work with multipart tokenizer;r=arai,efaust
Note that BinSource-auto.{h, cpp} and BinToken.h are auto-generated from BinSource.{yaml, webidl}.

This patch contains the following changes:
- updates to the webidl specifications;
- adapt BinSource.* to the new tokenizer API;
- split BinASTParser across BinASTParserBase and BinASTParser<Tok>.

The effect is that we may now use the BinASTParser with both the (updated) tester tokenizer
and the (new) multipart tokenizer.

MozReview-Commit-ID: HCF2m3qDTFH

--HG--
extra : rebase_source : 3c88a9dab735ddb9ce4fdaab93c1b1115489e548
2018-04-05 14:31:40 +02:00
David Teller
210620389e Bug 1439855 - Extend JS shell parse command to allow forcing full parsing;r=arai
This is useful mostly for benchmarking.

MozReview-Commit-ID: ZzWA6fxCGN

--HG--
extra : rebase_source : c8ef8ee46314268fc3fe6cdb36a3716ece50570e
2018-04-05 14:31:39 +02:00
David Teller
d8a7c1e62d Bug 1439855 - Extend JS shell binParse with ability to pick a tokenizer;r=arai
MozReview-Commit-ID: 9EQY36O9wQo

--HG--
extra : rebase_source : fd4db633c20038f9a73f8ec5607452fe93cc2f3e
2018-04-05 14:31:39 +02:00
David Teller
4dd1164d7e Bug 1439855 - Bunch of macros shared among BinAST files;r=arai
MozReview-Commit-ID: 6q27OFhLlc6

--HG--
extra : rebase_source : c1e3bfe1ba7c8721f720ac3bf285c1ee2893d7ed
2018-04-05 14:31:39 +02:00
David Teller
fc3bb4f67b Bug 1439855 - Fast lookup for BinAST string constants, shared among parsers;r=arai
BinAST parsers need to perform frequent lookup for string values, e.g. once for each `let`, `var`, `const`,
 `+`, `-`, `instanceof` (string enums), as well as a number of startup lookups for string values such as
"LiteralNullExpression", etc. (ast table)

This patch introduces zero-copy lookup tables for both of these. These tables are shared among instances of parsers in a JSRuntime.

MozReview-Commit-ID: 75BasAxLoha

--HG--
extra : rebase_source : 942f7f7849a113e5ce7b1eb420396d4eef194592
2018-04-05 14:31:39 +02:00
David Teller
c92cb03dca Bug 1439855 - Splitting the BinTokenReaderTester in two;r=arai
As a preliminary step for introducing the BinTokenReaderMultipart, we start by splitting the BinTokenReaderTester in two.

Also, we change a bit the API of the BinTokenReaderTester to uniformize with the BinTokenReaderMultipart.

MozReview-Commit-ID: 4SlHaqEAZMk

--HG--
extra : rebase_source : 3b9574a3d78bcafb961f8db548f6215825b66f82
2018-04-05 14:31:39 +02:00
David Teller
acf1fb766d Bug 1439855 - Extending BinAST parser generator with support for multipart tokenizer;r=jorendorff
Changes:

- instead of parsing string enums by string matching, we go through a new `enum class` `BinVariant`, whose handling is part of the tokenizer;
- we now generate this `enum class`.

MozReview-Commit-ID: FnzG772RZam

--HG--
extra : rebase_source : 5da853a36715d04e3d097cbf63749ac1651cd841
2018-04-05 14:31:39 +02:00
David Teller
398336e1d9 Bug 1439855 - Introduce BinAST multipart tokenizer;r=arai
This introduces a new tokenizer for the BinAST parser: the multipart tokenizer.

The format used by the multipart tokenizer is described here: https://binast.github.io/binjs-ref/binjs_io/multipart/index.html

While the details of the format may still change, this is the tokenizer we intend to ship.

We only implement the `identity; ` compression scheme. For the moment, there are no plans to implement other compression schemes.

MozReview-Commit-ID: 8WUa3QX5GWt

--HG--
extra : rebase_source : e0bad689b07f9a3d322d2ec81ab1c7e0d3e43b3c
2018-04-05 14:31:40 +02:00
David Teller
b0136b1bd3 Bug 1439855 - Tests for BinAST multipart tokenizer (data);r=arai
MozReview-Commit-ID: KlzxtGmCYVD

--HG--
extra : rebase_source : ace8652695c2b781b634458e21a70839d799af82
2018-04-05 12:16:30 +02:00
David Teller
3af70dadd0 Bug 1439855 - Tests for multipart tokenizer;r=arai
MozReview-Commit-ID: 7V2BWAcpA1D

--HG--
extra : rebase_source : 07d86c42b3f6ea9061342785dec1a527d662755f
2018-04-12 15:13:22 +02:00
Jan de Mooij
869fec072d Bug 1452982 part 10 - Rename *ActiveCooperatingThread to *MainThread. r=jonco 2018-04-15 13:18:46 +02:00
Jeff Walden
7fe1365632 Bug 1453456 - Replace JS7_ISDEC with mozilla::IsAsciiDigit. r=froydnj
--HG--
extra : rebase_source : 36cfe2674037e680511d5fa6f557d58936025244
2018-04-13 13:01:10 -07:00
Jeff Walden
821db93ccc Bug 1453456 - Replace nsCRT::IsAscii{Alpha,Digit} with mfbt/TextUtils.h versions. r=froydnj
--HG--
extra : rebase_source : b31986c0e6828be79442cfb0cf369eb80c232139
2018-04-12 20:19:30 -07:00
Jeff Walden
9ea9bcc2df Bug 1453456 - Add/use more ASCII alphanumeric testing/conversion functions from MFBT in SpiderMonkey code in various places. r=froydnj
--HG--
extra : rebase_source : b4e05102cce2ad5dabb973a3968f1112376da594
2018-04-10 11:42:54 -07:00
Jeff Walden
4e99ef3517 Bug 1447668. r=jorendorff
--HG--
rename : js/src/jsapi-tests/testToIntWidth.cpp => js/src/jsapi-tests/testToSignedOrUnsignedInteger.cpp
extra : rebase_source : 446b26c64f057a38853e9b4458b8f35b26b08a2c
2018-03-27 14:01:43 -07:00
Jeff Walden
2142dd16c8 |this->|-qualify some templated member functions to help some buggy compilers along. No bug, r=me
--HG--
extra : rebase_source : 657ffe6afa1a5a6afe70a2090602b661a22890d4
2018-04-13 14:30:23 -07:00
Noemi Erli
1b65998665 Merge inbound to mozilla-central. a=merge 2018-04-14 12:49:03 +03:00
Jan de Mooij
2dd36cfeae Bug 1452982 part 9 - Remove/rename remaining ZoneGroup references. r=jonco 2018-04-14 09:03:47 +02:00
Jan de Mooij
b997830888 Bug 1452982 part 8 - Remove ZoneGroup.h/cpp files. r=jonco 2018-04-14 09:03:21 +02:00
Jan de Mooij
e269859a98 Bug 1452982 part 7 - Rename ZoneGroupData to ZoneData. r=jonco 2018-04-14 09:02:57 +02:00
André Bargull
1617c8c2c1 Bug 1447442 - Part 16: Replace MOZ_BEGIN_EXTERN_C in C++ header jspubtd.h and remove unused includes and declarations. r=jorendorff
--HG--
extra : rebase_source : 8103f7b6a3a4fc813c9a7b2355223357d46e7d35
2018-04-13 02:26:02 -07:00
André Bargull
de06cc981d Bug 1447442 - Part 15: Potpourri of changes to use more concrete types, move a declaration, avoid code duplication. r=jorendorff
--HG--
extra : rebase_source : 27fb9478d963e5fabc91318ddf590828313c8a88
2018-04-13 02:26:02 -07:00
André Bargull
be673ae33c Bug 1447442 - Part 14: Remove unused parameters from GlobalObject::createBlankPrototypeInheriting and js::InitClass. r=jorendorff
--HG--
extra : rebase_source : 705baec4a8bbbe118e6524a9c21d477f6b61cb67
2018-04-13 02:26:02 -07:00
André Bargull
143814be68 Bug 1447442 - Part 13: Remove additional unused declarations. r=jorendorff
--HG--
extra : rebase_source : 0f35a31c784e50dfc8e4d29c55f1e13ecfeeb502
2018-04-13 02:26:02 -07:00
André Bargull
9737440348 Bug 1447442 - Part 12: Remove unused HAVE_HYPOT from old-configure and update comments in hypot function. r=jorendorff
--HG--
extra : rebase_source : 31b923635b7578a22adb15d5ebfc3a4ecf952284
2018-04-13 02:26:01 -07:00
André Bargull
42c6425a82 Bug 1447442 - Part 11: Use MOZ_IS_GCC to test for GCC. r=Waldo
--HG--
extra : rebase_source : 4073e81a1357660de86af54c2786c0187f1c8ae7
2018-04-13 02:26:01 -07:00
André Bargull
afefc69f03 Bug 1447442 - Part 10: Remove ifdefs for unsupported compiler versions. r=jorendorff
--HG--
extra : rebase_source : dcafe84ca4b492ab3e91289d5d0a78a816feb343
2018-04-13 02:26:01 -07:00
André Bargull
942f79e6e4 Bug 1447442 - Part 9: Remove unused JSWhyMagic constants. r=jorendorff
--HG--
extra : rebase_source : 6686176dbf004249a44f357d3c33cc17545dcb2d
2018-04-13 02:26:01 -07:00
André Bargull
27dae8ee18 Bug 1447442 - Part 8: Use UniqueChars and UniqueTwoByteChars typedefs in a few places. r=jorendorff
--HG--
extra : rebase_source : f503fa38b104fd586c88ac6557fb72842e672333
2018-04-13 02:26:01 -07:00
André Bargull
3943196403 Bug 1447442 - Part 7: More clean-up for typed arrays and array buffer views. r=jorendorff
--HG--
extra : rebase_source : ff2f577bc1ecca45df3afed524cf3e0b92f9852a
2018-04-13 02:26:00 -07:00
André Bargull
c58317ae7c Bug 1447442 - Part 6: Pass Handle<GlobalObject*> in ClassInitializerOp. r=jorendorff
--HG--
extra : rebase_source : 14883f96b9df11ae22cf427e104a8a2689b1e4bb
2018-04-13 02:26:00 -07:00
André Bargull
4adabc626b Bug 1447442 - Part 5: Use template versions of NewBuiltinClassInstance and NewObjectWithClassProto instead of manual casting. r=jorendorff
--HG--
extra : rebase_source : 55b7c0a30d7a33a29cf2acbcbbfc248aefa67d0c
2018-04-13 02:26:00 -07:00
André Bargull
1286bc0375 Bug 1447442 - Part 4: Move some definitions to where they are used. r=jorendorff
--HG--
extra : rebase_source : be0bfd4c7402b99d3ba248fc3541f65ca9fd88ff
2018-04-13 02:25:59 -07:00
André Bargull
f2a242df05 Bug 1447442 - Part 3: Remove JSValueArray and ValueArray. r=jorendorff
--HG--
extra : rebase_source : c564d934f2e39d8282888e001fce4e8f0b83dba5
2018-04-13 02:25:59 -07:00
André Bargull
b8ae21d64c Bug 1447442 - Part 2: Clean-up various calls to clarity. r=jorendorff
--HG--
extra : rebase_source : 33c828773d4efb76de7461beb7600f07c5d9d673
2018-04-13 02:25:58 -07:00
André Bargull
20a88ae9d0 Bug 1447442 - Part 1: Remove unused functions and definitions. r=jorendorff
--HG--
extra : rebase_source : 26b98365cf5f4db44a086869163f8ae10fbd5074
2018-04-13 02:25:58 -07:00
Andreea Pavel
64cb3f9968 Backed out 4 changesets (bug 1453456) for build bustages at js/src/jit-test/tests/ctypes/conversion-primitive.js on a CLOSED TREE
Backed out changeset 50cd4a60a402
Backed out changeset e0f8f325c2ce (bug 1453456)
Backed out changeset 6a84718ddfe1 (bug 1453456)
Backed out changeset fde6a66eb317 (bug 1453456)
2018-04-14 00:52:06 +03:00
Jeff Walden
17998bd2a9 |this->|-qualify some templated member functions to help some buggy compilers along. No bug, r=bustage in a CLOSED TREE 2018-04-13 14:30:23 -07:00
Andreea Pavel
eb84122ef9 Backed out changeset a30cf37ddcab (bug 1447668) for build bustages at /builds/worker/workspace/build/src/js/src/ctypes/CTypes.cpp:2607 on a CLOSED TREE
--HG--
rename : js/src/jsapi-tests/testToSignedOrUnsignedInteger.cpp => js/src/jsapi-tests/testToIntWidth.cpp
2018-04-14 00:06:12 +03:00
Jeff Walden
08cf6c4ee3 Bug 1453456 - Replace JS7_ISDEC with mozilla::IsAsciiDigit. r=froydnj
--HG--
extra : rebase_source : 9b9de28a23029f5057ce5d0ee3be793d80bf75c0
2018-04-13 13:01:10 -07:00
Jeff Walden
4649a52921 Bug 1453456 - Add/use more ASCII alphanumeric testing/conversion functions from MFBT in SpiderMonkey code in various places. r=froydnj
--HG--
extra : rebase_source : 51bb50046866746ab1fac4dfd3167c7306a3e430
2018-04-10 11:42:54 -07:00
Jeff Walden
8788d6c791 Bug 1447668. r=jorendorff
--HG--
rename : js/src/jsapi-tests/testToIntWidth.cpp => js/src/jsapi-tests/testToSignedOrUnsignedInteger.cpp
extra : rebase_source : 7a6fbc39383cb5d4d6b3292a4ce18099fd515b01
2018-03-27 14:01:43 -07:00
Lars T Hansen
dc01e18e01 Bug 1445277 - Suppress GC when wasm is active and running with wasm-gc support. r=bbouvier
We emulate the effect of AutoSuppressGC whenever we enter wasm code
via a stub.

This is obviously a gross hack and only allowable since it is
nightly-only and under a pref.  Strictly intended for rapid
prototyping; not intended to ship in this form.  Eventually we'll have
proper GC support for wasm frames.

--HG--
extra : rebase_source : 34f71e763a1801baa938212dd4ce0517d1ad57a4
2018-03-23 15:45:50 +01:00
Benjamin Bouvier
43a88914d0 Bug 1445272: Implement basic anyref support in the baseline compiler; r=lth
--HG--
extra : rebase_source : b445cf2adf366f32022892d21241b27b8404eb91
2018-04-11 19:03:04 +02:00
Benjamin Bouvier
a45951f2cd Bug 1445272: Add (entry/exit) stubs support for anyref; r=luke
--HG--
extra : rebase_source : 1d4e3f43414a718d739efbe4907c1a1c85f261f8
2018-03-30 16:31:40 +02:00
Andreea Pavel
69ae5fe098 Merge mozilla-central to autoland. a=merge on a CLOSED TREE 2018-04-14 00:58:36 +03:00
Tom Bannister
988d18881f Bug 1434710 - Replaced all instances of mozilla::IndexSequence, mozilla::MakeIndexSequence and mozilla::IndexSequenceFor with std::index_sequence, std::make_index_sequence and std::index_sequence_for and removed mfbt/IndexSequence.h. r=botond
MozReview-Commit-ID: 1Ema7TUNr5v

--HG--
extra : rebase_source : e5bb164dbe19993214e8c16f92b0a1f5d2ff3fa1
2018-04-09 21:12:13 +10:00
Sebastian Hengst
043061beb5 merge mozilla-central to mozilla-inbound 2018-04-13 16:05:58 +03:00
Sebastian Hengst
0819f35e51 Backed out 4 changesets (bug 525063) on request from Andi. a=backout
Backed out changeset 516c4fb1e4b8 (bug 525063)
Backed out changeset 6ff8aaef2866 (bug 525063)
Backed out changeset bf13e4103150 (bug 525063)
Backed out changeset d7d2f08e051c (bug 525063)
2018-04-13 16:01:28 +03:00