Граф коммитов

64543 Коммитов

Автор SHA1 Сообщение Дата
Steve Fink c0c6ab8dfc Bug 1455071 tier 2 bustage followup - s/WriteBytes/AppendBytes/ 2018-04-19 00:37:58 -07:00
Steve Fink c92957a424 Bug 1455071 - Use delegation rather than inheritance for the BufferList in JSStructuredCloneData, r=jorendorff,r=baku
--HG--
extra : rebase_source : 1620d0a2d99d9aeddd7d06b4f29251907311ef86
extra : histedit_source : 59145661383b920085164eff3586a78da41c420b
2018-03-15 16:56:09 -07:00
Steve Fink 185250e668 Bug 1455071 - Remove unused JSAutoStructuredCloneBuffer::copy, r=jorendorff
--HG--
extra : rebase_source : 59dd8139542fa3761fc2b343cfc88d2a3036059e
2018-03-15 20:09:09 -07:00
Steve Fink bbfc47ea95 Bug 1455071 - Comment the purpose of JSAutoStructuredCloneBuffer, r=jorendorff
--HG--
extra : rebase_source : ce0d972b8b67bde5932606e5ae1bba8eade7b005
2018-03-15 20:08:58 -07:00
Steve Fink b30ce6e292 Bug 1455071 - Remove unused alternate callback option to JSAutoStructuredCloneBuffer::clear, r=jorendorff
--HG--
extra : rebase_source : 274cdaca9fc7f59c16a3e2ef1f979695eea30a3b
2018-03-15 17:11:31 -07:00
Steve Fink d1d9f3cca9 Bug 1455071 - Bulk up SCOutput by changing it from storing a bare BufferList to a full JSStructuredCloneData, r=jorendorff
Then move JSStructuredCloneWriter's callbacks, callback data, and refsHeld into its SCOutput's JSStructuredCloneData. This removes the loose fields from JSStructuredCloneWriter and allows using move construction to remove a bunch of code.

--HG--
extra : rebase_source : 37cb0d4a15ffd0155bb7a55cd0fbefc358e649a8
2018-03-15 14:04:24 -07:00
Steve Fink f7f5c66182 Bug 1455071 - Allow synthetic clone buffers to contain transferables, r=jorendorff
--HG--
extra : rebase_source : b4089245c693623c1ab621817dcdc0803be6e321
2018-04-16 12:44:35 -07:00
André Bargull 0678b75f37 Bug 1453921: Use MTruncateToInt32 when inlining String.fromCharCode. r=jandem 2018-04-13 03:40:51 -07:00
Dragan Mladjenovic d5f23151eb Bug 1454987 - [MIPS32] Enable cmpPtrSet overload that takes ImmWord. r=bbouvier 2018-04-18 15:45:52 -04:00
Robin Templeton 5123fd9bc9 Bug 1454512 - Fix JS::Value's is_symbol predicate. r=sfink 2018-04-18 15:44:43 -04:00
Steve Fink ee8a623de2 Bug 1439712 - CTypes string error checking, r=jonco
--HG--
extra : rebase_source : 315f2fd15b81de6f8e3cee45f45f3181ee62c318
2018-04-17 17:06:10 -07:00
Steve Fink f0af1b691a Bug 1439712 - Improve JSString::ensureLinear error reporting, r=jonco
--HG--
extra : rebase_source : e3492dba79fc02531bab56727249d53bce116b7a
2018-02-20 12:41:04 -08:00
Andreea Pavel 465753992f Merge mozilla-central to mozilla-inbound. a=merge on a CLOSED TREE 2018-04-18 20:13:24 +03:00
Dorel Luca 59a9a86553 Merge mozilla-inbound to mozilla-central a=merge 2018-04-18 19:57:11 +03:00
André Bargull b103e014b3 Bug 1453809: Call ToUint16 in ToUint16Slow. r=Waldo 2018-04-12 14:56:03 -07:00
Jan de Mooij 7f76c6ae50 Bug 1454398 - Disable asserts responsible for intermittent failures. r=me 2018-04-18 10:40:24 +02:00
Jon Coppeard 423a38223b Bug 1442947 - Compact the heap on shrinking GC when animating if the user is idle r=sfink 2018-04-18 10:19:36 +02:00
Jan de Mooij 98422b2e61 Bug 1064316 - Rewrite check_spidermonkey_style.py to use os.walk instead of looking at the repo data. r=njn 2018-04-18 09:42:24 +02:00
Nika Layzell e5f31c03d8 Bug 1444991 - Part 4: Handle DOM Objects in XPConnect, r=mccr8
This patch goes through the XPConnect conversion methods, and adds cases for
T_DOMOBJECT which call the Wrap, Unwrap, and Cleanup methods from the
nsXPTDOMObjectInfo objects created in the last part.

For consistency with normal interface pointers, and because it wasn't too
complex, I also added support for including T_DOMOBJECTs in XPCOM arrays.
2018-04-17 19:21:03 -04:00
Nika Layzell 14da321a67 Bug 1444745 - Part 5: Update consumers of nsIInterfaceInfo to use the nsXPTInterfaceInfo directly, r=mccr8
Due to the decision to keep the old API on nsXPTInterfaceInfo in part 4, this is
a fairly straightforward patch.

1. I had to change a couple of consumers of `IsRetval()` due to the movement of
that flag.
2. I changed all code which held a nsIInterfaceInfo to hold an `const
nsXPTInterfaceInfo*` instead.
3. I changed code which used the nsIInterfaceInfoManager to instead call the
static methods on nsXPTInterfaceInfo.
2018-04-17 19:20:56 -04:00
Nika Layzell f5f86c989e Bug 1444745 - Part 1: Clear out xptinfo and typelib to make way for the this patch, r=mccr8
Unfortunately, I wasn't able to figure out a way to make firefox build & run in
the intermediate stages of these commits. Because of this, I am going to just
delete most of the code which I am deleting in the first patch, as I figure that
those are somewhat uninteresting changes, and then make the other changes in the
following patches.

In total, the following things are deleted:
1. All of xpcom/typelib, except for `xpt/tools` - this directory is being
subsumed entirely into xpcom/reflect/xptinfo.
2. Most of the code in xpcom/reflect/xptinfo, it is being rewritten to avoid
allocating and contain all of the necessary data structures.
3. idl-parser's typelib.py XPT generator, as it will be replaced.
4. Most includes of files which have been deleted.

NOTE: xpcom/typelib/xpt/tools/xpt.py was not removed, as it is used by bundling
code & bundling tests, which we don't want to remove yet.
2018-04-17 19:20:50 -04:00
Steve Fink 0405ef5fa2 Bug 1446693 - Include discardJitCode in AutoTraceSession for minor GC, r=jonco
--HG--
extra : rebase_source : 71f00e818ff1531329f23137b71aca4999d6bb35
2018-04-05 15:46:59 -07:00
Robin Templeton e8ba10f7c9 Bug 1437995 - "test262 feature check for BigInt" r=jorendorff
--HG--
extra : rebase_source : d679333cd3b5d37812eb9fa498113d27dcfb6616
2018-04-16 10:58:00 +03:00
David Teller 00d8ff0043 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 : 6a59b102182e50a782ca56f2df57d3053c608668
2018-04-05 14:31:40 +02:00
David Teller 8cebf95a05 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 : a50be777140f36bcc2741640bc9951bae4419dcd
2018-04-05 14:31:39 +02:00
David Teller 3b3526a01c Bug 1439855 - Extend JS shell binParse with ability to pick a tokenizer;r=arai
MozReview-Commit-ID: 9EQY36O9wQo

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

--HG--
extra : rebase_source : e1b4d2c4649a8036f34a0be448004b83db127815
2018-04-05 14:31:39 +02:00
David Teller 7c2dd88aa6 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 : 3a06aca851d38b500f026d8726be66e4a5dedc37
2018-04-05 14:31:39 +02:00
David Teller a67fca5027 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 : 1b2b0ada2cb8ea9c26715cd56b2340517403ede2
2018-04-05 14:31:39 +02:00
David Teller d86bf9df5f 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 : d61e4855f904259e66ff2dbd765ebbb1ee597d7d
2018-04-05 14:31:39 +02:00
David Teller 0282c0ad9e 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 : 984f98c488048144ed38f9644682f947b776a686
2018-04-05 14:31:40 +02:00
David Teller 4411aac81a Bug 1439855 - Tests for BinAST multipart tokenizer (data);r=arai
MozReview-Commit-ID: KlzxtGmCYVD

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

--HG--
extra : rebase_source : c8d8020e950ffaa826583c24ebc342085a9af280
2018-04-12 15:13:22 +02:00
Benjamin Bouvier a3f49c13ba Bug 1454923: Add debugging support for anyref return values in wasm; r=lth
--HG--
extra : rebase_source : 7da83800e74d72ad1f0ef312f50a4b2649a52c65
extra : amend_source : 0eae3689ff025bb43184e662f27aac7fefddeaa7
2018-04-18 14:34:20 +02:00
Paul Bone 76fe94ac99 Bug 1451088 - Add constexpr constructors to the TypePolicy classes r=waldo
--HG--
extra : rebase_source : 54e36bbb3d141e69b21d18f55bc29729920786a2
2018-04-17 15:20:13 +02:00
Jon Coppeard 4d5f870a31 Bug 1447284 - Fix comments on AutoSuppressGC class r=pbone 2018-04-17 15:32:03 +02:00
Jon Coppeard c0057b5970 Bug 1429727 - Rename js::ThreadLocalData to prevent confusion with mozilla::ThreadLocal r=lth 2018-04-17 15:32:02 +02:00
Jon Coppeard a59feb05d5 Bug 1450847 - Fix view parameter class check in ReadableStreamBYOBRequest::constructor r=till 2018-04-17 15:32:02 +02:00
Tooru Fujisawa c32731f51e Bug 1342070 - Part 3: Disable optimization if devtools or profiler is used. r=till 2018-04-17 14:59:57 +02:00
Till Schneidereit eca9b59fff Bug 1342070 - Part 2: Only create result Promises in Promise#catch if it's used or the creation is otherwise observable. r=anba
Includes porting catch to C++ to make this feasible.
2017-08-02 09:43:45 +02:00
Till Schneidereit 19ca539de6 Bug 1342070 - Part 1: Only create result Promises in Promise#then if it's used or the creation is otherwise observable. r=anba
"Otherwise observable" here means either the receiver's "constructor" property is changed, or the constructor's @@species property.
2017-08-01 16:37:37 +02:00
Tooru Fujisawa e2417d4b9f Bug 1342070 - Part 0: Add API to tell Profile Timeline Recording state to JS engine. r=till,tromey 2018-04-17 14:59:56 +02:00
Luke Wagner 30aa443de2 Bug 1425076 - Baldr: warn on invalid name section (r=bbouvier)
--HG--
extra : rebase_source : 8964b89df401772af7bfb5f02bc05deaebe899fa
2018-04-04 17:44:11 -05:00
Luke Wagner b095f7fbe8 Bug 1425076 - Baldr: rename WasmBinaryIterator to OpIter (r=bbouvier)
--HG--
rename : js/src/wasm/WasmBinaryIterator.cpp => js/src/wasm/WasmOpIter.cpp
rename : js/src/wasm/WasmBinaryIterator.h => js/src/wasm/WasmOpIter.h
extra : rebase_source : fb6a4154e39993035c4c04661cc1f5657486d33e
2018-04-04 13:52:23 -05:00
Jan de Mooij 43efd96cbe Bug 1452982 part 13 - Misc cleanup related to cooperative scheduling. r=jonco 2018-04-17 13:30:19 +02:00
Jason Orendorff 03b1aaefed No bug - Fix typo in binsource. r=Yoric IRL. 2018-04-17 12:51:41 +02:00
Tooru Fujisawa a8a5497cc1 Bug 1453884 - Rename LazyScript.{begin,end} to LazyScript.{sourceStart,sourceEnd}. r=Yoric 2018-04-17 12:37:10 +02:00
Brindusan Cristian 8bcf097e09 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-04-17 13:10:25 +03:00
Brindusan Cristian 667fae7dc8 Merge inbound to mozilla-central. a=merge 2018-04-17 12:53:33 +03:00
Jan de Mooij 3635c4e66f Bug 1452982 part 12 - Clean up ContextKind and CheckThreadLocal. r=jonco 2018-04-17 10:48:10 +02:00