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

212 Коммитов

Автор SHA1 Сообщение Дата
Chris Fallin 35cf81d389 Bug 1648885 and Bug 1649432: vendor latest Cranelift to get Spectre mitigations and fix fuzzbug. r=bbouvier
This patch pulls in Cranelift revision
47a218f908e6bdeb7a0fb65ed74e58a0b608080d, which incorporates several
relevant changes:

- It includes the Spectre mitigation for explicit heap bounds checks
  merged in PR bytecodealliance/wasmtime#1930, resolving Bug 1648885.

- It includes the fix for an out-of-bounds subtraction on large shift
  amounts merged in PR bytecodealliance/wasmtime#1954, resolving Bug
  1649432.

We need to temporarily disable the `wasm/limits.js` jit-test on
Cranelift configurations because it now needs shared memory to work, and
the Cranelift backend does not support this yet. Given that this should
be ready in the next month at most (requires atomics support on AArch64,
which is currently being examined), it seems simpler to temporarily
disable the test on aarch64 than to try to disentangle the bits that
depend on shared memories explicitly.

This patch also edits the `regexp/bug1445907.js` jit-test to run only if
Wasm debugging is supported. This is needed for the test not to fail
with `--wasm-compiler=cranelift` (which disables Baseline, the only Wasm
compiler that supports debugging).

Differential Revision: https://phabricator.services.mozilla.com/D81936
2020-07-02 15:47:56 +00:00
Andy Grover 05abb6839b Bug 1649512 - Update to Neqo 0.4.5 r=dragana,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D81763
2020-07-01 08:11:35 +00:00
Andy Grover 70c8aeee0b Bug 1647769 - Update to Neqo 0.4.4 r=dragana,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D80687
2020-06-23 18:51:19 +00:00
Dzmitry Malyshau 74b412c826 Bug 1641370 - Add optional SPIR-V shader validation to WebGPU, via naga r=jgilbert
This change attempts to parse the incoming SPIR-V shader modules with
Naga SPIR-V front-end. It's not complete, but it returns an Error if it's unable to parse,
in which case we just continue without the validation (for now).
If it succeeds, we extract the reflection information from it, and use it for the pipeline.

This is just a start. More states would need to be validated, and SPIR-V front-end needs more work.

Differential Revision: https://phabricator.services.mozilla.com/D77170
2020-06-22 21:21:18 +00:00
Andy Grover caf191f33d Bug 1646106 - Update to Neqo 0.4.3 r=dragana,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D79893
2020-06-17 07:09:52 +00:00
Tooru Fujisawa 5fb5aaefae Bug 1644698 - Part 1: Update ScriptStencil structs. r=jorendorff
Differential Revision: https://phabricator.services.mozilla.com/D79442
2020-06-15 15:47:21 +00:00
Rob Wu 206ca19c33 Bug 1645598 - Vendor application-services for fix in webext-storage r=lina
To get this fix: https://github.com/mozilla/application-services/pull/3235

Updated as follows:

```
sed -i 's/e8d7530319fa6c20d9de78d031c9398630eca3cd/61dcc364ac0d6d0816ab88a494bbf20d824b009b/g' services/fxaccounts/rust-bridge/firefox-accounts-bridge/Cargo.toml services/sync/golden_gate/Cargo.toml toolkit/components/extensions/storage/webext_storage_bridge/Cargo.toml toolkit/components/glean/Cargo.toml toolkit/library/rust/shared/Cargo.toml
./mach vendor rust
```

Verified by running the new regression test that I added in the bug:

```
./mach test toolkit/components/extensions/test/xpcshell/test_ext_storage_{local,sync,sync_kinto}.js
```

Differential Revision: https://phabricator.services.mozilla.com/D79628
2020-06-15 12:56:58 +00:00
Benjamin Bouvier 23b40c5736 Bug 1645336: Bump Cranelift to 238ae3bf2111847f60089656eb97fc9345295b1f; r=jseward
Differential Revision: https://phabricator.services.mozilla.com/D79659
2020-06-15 10:16:20 +00:00
Chris Fallin 771d76eb57 Bug 1641504: Bump Cranelift to 4d5fdfcbba1a8f38002a4223d7a329fc795d0e9f. r=bbouvier
Differential Revision: https://phabricator.services.mozilla.com/D78587
2020-06-11 23:34:39 +00:00
Razvan Maries d641e64a5e Backed out 3 changesets (bug 1641504) for valgrind bustages. CLOSED TREE
Backed out changeset 95646dbd26a1 (bug 1641504)
Backed out changeset bf1919e75e65 (bug 1641504)
Backed out changeset dedeac296eaa (bug 1641504)
2020-06-11 23:56:02 +03:00
Chris Fallin 6944be383a Bug 1641504: Bump Cranelift to e3d89c8a92a5fadedd75359b8485d23ac45ecf29. r=bbouvier
Differential Revision: https://phabricator.services.mozilla.com/D78587
2020-06-09 22:37:06 +00:00
Thom Chiovoloni b3cbb2b28e Bug 1629127 - Add sync telemetry for storage.sync migration r=lina,extension-reviewers,mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D78573
2020-06-10 22:29:02 +00:00
Andy Grover 2475b7008d Bug 1644532 - Update to Neqo 0.4.1 r=dragana,necko-reviewers
Default to using draft 27.

Differential Revision: https://phabricator.services.mozilla.com/D78960
2020-06-09 19:39:47 +00:00
Paul Adenot ddca94efc1 Bug 1644362 - mach vendor rust. r=cubeb-reviewers,achronop
Differential Revision: https://phabricator.services.mozilla.com/D78871
2020-06-09 13:17:38 +00:00
Razvan Maries 0ce303cbe3 Backed out changeset b6b48c37ab0c (bug 1644362) for SM Bustages. CLOSED TREE 2020-06-09 13:49:45 +03:00
Paul Adenot 1185075aa8 Bug 1644362 - Update cubeb-coreaudio-rs to 4cdbceadae8. r=cubeb-reviewers,achronop
Differential Revision: https://phabricator.services.mozilla.com/D78871
2020-06-09 10:24:41 +00:00
Tooru Fujisawa 447cb4a153 Bug 1644117 - Update jsparagus to use JSOp::ToPropertyKey. r=jorendorff
Differential Revision: https://phabricator.services.mozilla.com/D78685
2020-06-08 14:43:49 +00:00
Corentin Arnould a1659c9e19 Bug 1644080 - mach vendor rust. r=cubeb-reviewers,padenot
Depends on D78664

Differential Revision: https://phabricator.services.mozilla.com/D78665
2020-06-08 13:14:26 +00:00
Tooru Fujisawa 2c4cbe5c6f Bug 1643632 - Use BaseScopeData. r=yulia
Differential Revision: https://phabricator.services.mozilla.com/D78475
2020-06-05 10:34:56 +00:00
Tooru Fujisawa 654c97a626 Bug 1643044 - Use bumpalo 3.4.0. r=yulia
Differential Revision: https://phabricator.services.mozilla.com/D78079
2020-06-05 11:04:23 +00:00
Andy Grover 95b90fb23e Bug 1633006 - Update to Neqo 0.4.0 r=dragana,necko-reviewers
Document qlog uses 2 clause bsd license.

Adapt to API changes in glue and http3server

Differential Revision: https://phabricator.services.mozilla.com/D77903
2020-06-02 21:28:31 +00:00
Mark Hammond 6abadd577b Bug 1639449 - Vendor new application-services to expose kinto migration and sync change notifications. r=lina
Differential Revision: https://phabricator.services.mozilla.com/D76092
2020-05-30 02:44:07 +00:00
Tooru Fujisawa ff738e2546 Bug 1639772 - Update jsparagus and use ImmutableScriptFlags directly. r=yulia
Differential Revision: https://phabricator.services.mozilla.com/D76267
2020-05-29 13:30:51 +00:00
Paul Adenot 2c64853b8e Bug 1638801 - mach vendor rust r=cubeb-reviewers,achronop
Differential Revision: https://phabricator.services.mozilla.com/D75776
2020-05-28 09:54:57 +00:00
Tooru Fujisawa fb93b18ec1 Bug 1639073 - Update jsparagus and use stencil crate. r=yulia
Differential Revision: https://phabricator.services.mozilla.com/D75881
2020-05-20 17:34:02 +00:00
Tooru Fujisawa 2ac5bccc9b Bug 1638470 - Update jsparagus, and update SmooshMonkey to store atoms in gcthings. r=yulia
Differential Revision: https://phabricator.services.mozilla.com/D75711
2020-05-19 17:30:32 +00:00
Dzmitry Malyshau 6c3a233284 Bug 1636068 - Update spirv-cross to 0.20.0 r=groves
This change updates spirv-cross to a new version.
Unlike the previous one, it now points to a SPIRV-Cross submodule in
https://github.com/kvark/SPIRV-Cross behind "gecko3" branch, which will guarantee the rev
to be accessible.

Differential Revision: https://phabricator.services.mozilla.com/D75648
2020-05-16 02:27:33 +00:00
Edouard Oger 0ab8afdce0 Bug 1631630 p1 - Vendor fxa-client crate. r=rfkelly,mhoye
Differential Revision: https://phabricator.services.mozilla.com/D71851
2020-05-16 01:07:28 +00:00
Noemi Erli cac2780d42 Backed out 2 changesets (bug 1631630) for causing mass braoser chrome failures CLOSED TREE
Backed out changeset 9b8606a93c75 (bug 1631630)
Backed out changeset d57ea5d1921f (bug 1631630)
2020-05-16 02:16:33 +03:00
Edouard Oger 03f9a7d742 Bug 1631630 p1 - Vendor fxa-client crate. r=rfkelly,mhoye
Differential Revision: https://phabricator.services.mozilla.com/D71851
2020-05-15 20:13:28 +00:00
Edouard Oger 6e8ef040d3 Bug 1637537 - Bump application-services and anyhow versions. r=vladikoff
Differential Revision: https://phabricator.services.mozilla.com/D75150
2020-05-13 18:36:56 +00:00
Edouard Oger e348b78f5f Bug 1628068 p1 - Vendor viaduct crate. r=lina
Differential Revision: https://phabricator.services.mozilla.com/D70256
2020-05-12 21:36:17 +00:00
Mark Hammond 0640090392 Bug 1637169 - Vendor new application-services. r=rfkelly
Differential Revision: https://phabricator.services.mozilla.com/D74817
2020-05-12 07:53:39 +00:00
Bogdan Tara a823ee6545 Backed out 2 changesets (bug 1628068) for ViaductRequest.cpp related bustages CLOSED TREE
Backed out changeset 013a469557c1 (bug 1628068)
Backed out changeset dcda2ce7b7f9 (bug 1628068)
2020-05-12 00:44:58 +03:00
Edouard Oger 4e005845ab Bug 1628068 p1 - Vendor viaduct crate. r=lina
Differential Revision: https://phabricator.services.mozilla.com/D70256
2020-05-11 21:01:17 +00:00
Bogdan Tara 3df4970bcc Backed out 2 changesets (bug 1628068) for ViaductRequest.cpp related bustages CLOSED TREE
Backed out changeset 928a5891c55d (bug 1628068)
Backed out changeset b6fe5d357bed (bug 1628068)
2020-05-11 23:52:47 +03:00
Edouard Oger 3dc0990bbf Bug 1628068 p1 - Vendor viaduct crate. r=lina
Differential Revision: https://phabricator.services.mozilla.com/D70256
2020-05-11 20:19:11 +00:00
Bogdan Tara 448d53548b Backed out 2 changesets (bug 1628068) for ViaductRequest.cpp related bustages CLOSED TREE
Backed out changeset 1ea8f742ca69 (bug 1628068)
Backed out changeset 3aa2f99843e0 (bug 1628068)
2020-05-11 23:06:31 +03:00
Edouard Oger 8aebe42eda Bug 1628068 p1 - Vendor viaduct crate. r=lina
Differential Revision: https://phabricator.services.mozilla.com/D70256
2020-05-11 19:14:21 +00:00
Tooru Fujisawa 2ed7096f1c Bug 1621127 - Assert opcode list is in sync between jsparagus and SpiderMonkey, and update jsparagus. r=jorendorff
Differential Revision: https://phabricator.services.mozilla.com/D74254
2020-05-08 22:49:50 +00:00
Jon Bauman ff79fde159 Bug 1624056 - Properly vendor mp4parse-rust. r=kinetik
This requires --build-peers-said-large-imports-were-ok since
third_party/rust/mp4parse/src/lib.rs is 113KB. This code is just moving from
media/mp4parse-rust to third_party/rust, so it's not really adding to net code
size.

Differential Revision: https://phabricator.services.mozilla.com/D74488
2020-05-09 00:36:48 +00:00
Matthew Gregan b874802505 Bug 1631965 - Vendor Rust. r=chunmin
Depends on D71836

Differential Revision: https://phabricator.services.mozilla.com/D71837
2020-05-05 21:13:53 +00:00
Paul Adenot 6a7f9ca0d5 Bug 1635404 - mach vendor rust. r=achronop
Depends on D73871

Differential Revision: https://phabricator.services.mozilla.com/D73872
2020-05-05 13:39:15 +00:00
Nicolas B. Pierron 0428de2a66 Bug 1635464 - Deref BoxedParseError to read the content. r=arai
Differential Revision: https://phabricator.services.mozilla.com/D73902
2020-05-05 16:26:45 +00:00
Lina Cambridge 8caa2f7986 Bug 1634191 - Wire up Golden Gate to the new Rust extension storage interface. r=markh
This commit adds syncing support to the `StorageSyncArea` class, via
the Golden Gate library.

It also changes the `BridgedEngine` trait: `initialize` and `finalize`
haven't been useful in practice, since that's managed by the storage
service, and the `LazyStore` takes care of setting up the storage
connection on first use. But, what we do need is a way to signal a
sync is starting, so that the engine can set up temp tables. That's
handled by the new `sync_started`.

Finally, this commit changes `BridgedEngine::set_uploaded` to take a
`sync15_traits::Guid` instead of a `String`.

Differential Revision: https://phabricator.services.mozilla.com/D73415
2020-05-05 06:59:32 +00:00
Lina Cambridge 4eafc7c1a6 Bug 1634191 - Pass BSO fields along with Sync record payloads to bridged Rust engines. r=markh
This commit splits `CryptoWrapper` into a base `RawCryptoWrapper`
class, which only handles encryption and decryption without
parsing the cleartext's contents, and the existing `CryptoWrapper`
class, which works like before.

Our bridged engine subclasses `RawCryptoWrapper`, and
implements some methods to convert records to and from envelopes.
Envelopes are a concept we introduced in `sync15_traits` to pass
along metadata from the BSO wrapper (like the modified time from the
server, and ID, to ensure they match) in addition to the cleartext.
This lets us reuse `sync15_traits::Payload` to parse record payloads
in Rust, and avoids parsing the cleartext in JS, only to stringify it
again when we pass it to the bridged Rust engine.

Differential Revision: https://phabricator.services.mozilla.com/D73581
2020-05-04 22:25:00 +00:00
Lina Cambridge a9b590300f Bug 1634626 - Refactor interruption in Golden Gate. r=markh,tcsc
This commit removes the `nsICancelable` return values from all
`mozIBridgedSyncEngine` methods, and replaces them with a
`mozIInterruptible` interface that can be implemented by store
classes that support interrupting.

The `nsICancelable` pattern was intended to make each operation
interruptible, without affecting the others. But we can't guarantee
that with SQLite, because it only has a way to interrupt all
running statements on a connection, not specific ones. Further,
this pattern doesn't match what we currently do in a-s, where we
create an internal "interrupt scope" for each operation, and hand
out an "interrupt handle" for interrupting all in-progress
operations.

Storage classes like `StorageSyncArea` can opt in to interruption
by implementing `mozIInterruptible`. It's a separate interface to
protect against accidental misuse: because it interrupts all
statements on the connection, it might lose writes if the current
operation is a `set`, for example. But it's useful for testing and
debugging, so we still expose it.

This commit also changes Golden Gate ferries to hold weak references to
the `BridgedEngine`, so that they don't block teardown.

Differential Revision: https://phabricator.services.mozilla.com/D73413
2020-05-04 21:32:29 +00:00
Tooru Fujisawa 4d2291e503 Bug 1634108 - Add placeholder for not-yet-implemented ScopeData, and update jsparagus. r=jorendorff
Differential Revision: https://phabricator.services.mozilla.com/D73094
2020-05-01 17:34:36 +00:00
Benjamin Bouvier 9d52aedf32 Bug 1618595 - Bump Cranelift to b7cfd39b531680217537cfcf5294a22077a0a58d; r=jseward
Differential Revision: https://phabricator.services.mozilla.com/D73251
2020-04-30 11:57:24 +00:00
Mark Hammond c777f6f9ed Bug 1634257 - expose wipe_all to mozIExtensionStorageArea. r=lina
Differential Revision: https://phabricator.services.mozilla.com/D73191
2020-04-30 08:16:26 +00:00