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

71547 Коммитов

Автор SHA1 Сообщение Дата
Jim Blandy 2487eaaf06 Bug 1560754: Remove DebuggeeFrameGeneratorScript. r=jorendorff
Stop inserting DebuggeeFrameGeneratorScript keys in the cross-compartment
wrapper table for the edges from Debugger.Frames for generator / async calls to
the generators' scripts. The wrappers are unnecessary, and since they're not
unique when multiple Debugger.Frames refer to different calls of the same
generator, we can't easily tell when to remove them.

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

--HG--
extra : moz-landing-system : lando
2019-07-06 00:01:24 +00:00
Cosmin Sabou e5e7400092 Bug 1562642 - Fix build bustages. r=bustage-fix 2019-07-06 00:59:28 +03:00
Sylvestre Ledru 2bf505b023 Bug 1562642 - Add missing MPL2 headers r=mhoye
Differential Revision: https://phabricator.services.mozilla.com/D37053

--HG--
extra : moz-landing-system : lando
2019-07-05 17:05:57 +00:00
Iain Ireland 6fc0cd28a9 Bug 1561732: Remove sincos optimization r=mgaudet
Differential Revision: https://phabricator.services.mozilla.com/D36976

--HG--
extra : moz-landing-system : lando
2019-07-04 21:39:40 +00:00
Edwin Gao e8ea0ad451 Bug 1559975 - Fix python3 lint issues on js/src, r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D35243

--HG--
extra : moz-landing-system : lando
2019-07-05 14:34:55 +00:00
Victor Porof b5a4cb3848 Bug 1558517 - Pre 3.0: Remove conflicting eslint rules, and turn on "curly: all" everywhere, r=standard8
Differential Revision: https://phabricator.services.mozilla.com/D34535

--HG--
extra : source : 74ed7ee773393d305c4e948a57a1b1e32b1f12e8
extra : intermediate-source : 403d0757d61683e0a85d0bb07768eb39fbd0af72
2019-06-28 17:14:01 +02:00
Jorg K 71e34d3108 Bug 1560400 - Follow-up: add include of WindowProxyHolder.h to XrayWrapper.cpp. r=kmag a=Aryx 2019-07-05 00:40:16 +02:00
Razvan Maries daed363fd7 Merge mozilla-inbound to mozilla-central a=merge 2019-07-05 00:40:17 +03:00
Iain Ireland 2270ae3c92 Bug 1535031: Don't force slow path for negative indices in typed arrays r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D36937

--HG--
extra : moz-landing-system : lando
2019-07-04 17:43:17 +00:00
Oana Pop Rus 2ad74ef9f7 Merge mozilla-central to inbound. a=merge CLOSED TREE 2019-07-04 06:38:21 +03:00
Benjamin Bouvier 33c16fe2ba Bug 1563241: Make Spidermonkey's testing intrinsic wasmBulkMem dependent on shared memory too; r=lth
Differential Revision: https://phabricator.services.mozilla.com/D36774

--HG--
extra : moz-landing-system : lando
2019-07-04 06:23:27 +00:00
Benjamin Bouvier 2da5b73fca Bug 1563263: Bump Cranelift to 312516a69da03dc06eace32f61412389a8dcadf3; r=lth
Differential Revision: https://phabricator.services.mozilla.com/D36777

--HG--
extra : moz-landing-system : lando
2019-07-04 06:28:01 +00:00
Jan de Mooij e3a4316acf Bug 1563051 - Fix a debugger leak of BaselineDebugModeOSRInfo in DebugEpilogue. r=iain
The other caller of EnsureBareExitFrame is when unwinding in the exception
handler and we already call deleteDebugModeOSRInfo there.

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

--HG--
extra : moz-landing-system : lando
2019-07-04 11:17:36 +00:00
Jan de Mooij 6937395c0b Bug 1537722 - Make bug642772-3.js jit-test faster to avoid time-outs. r=jonco
This test has questionable value but this just makes it
faster by reducing iteration count.

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

--HG--
extra : moz-landing-system : lando
2019-07-04 11:17:36 +00:00
kriswright 81780de567 bug 1562309 - 2. Convert ThreadData in JSContext to ContextData r=jonco
Convert ThreadData to ContextData in JSContext. Removed some old GCHelperState variables that are no longer being used. Removed NativeStackQuota, which is never read. Renamed SetNativeStackQuotaAndLimit to SetNativeStackLimit, as it is never setting a NativeStackQuota.

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

--HG--
extra : moz-landing-system : lando
2019-07-03 14:46:23 +00:00
kriswright 8cdabb80f5 bug 1562309 - add protected data checks to check for context-local thread data r=jonco
Adds CheckContextLocal protected data checks and a data type to check a JSContext against the TlsContext of the thread. Objects must specify the JSContext in which they are created in to check against.

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

--HG--
extra : moz-landing-system : lando
2019-07-03 17:27:08 +00:00
Kris Maglione f180f12646 Bug 1560400: Part 1 - Support remote frames in Window indexed getters. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D35471

--HG--
extra : rebase_source : b326799f8ced75068f7e7fec6edbd39455cdb9b1
extra : source : 84633034590f2d1a4c336f9653e6c542f3a09039
2019-06-20 13:52:55 -07:00
Andreea Pavel 1b18eed531 Backed out changeset ba60dd480690 (bug 1558604) for SM build bustages on a CLOSED TREE 2019-07-03 00:20:18 +03:00
Matthew Gaudet 704cb5ef71 Bug 1558604 - Keep interpreted and interpretedLazy on FunctionBox r=jorendorff
Differential Revision: https://phabricator.services.mozilla.com/D34587

--HG--
extra : moz-landing-system : lando
2019-07-02 20:04:15 +00:00
Daniel Varga c26cc99f02 Merge mozilla-central to autoland. On a CLOSED TREE
--HG--
extra : rebase_source : 8432641d0fafe5d0d8ad6645815bcf07e65bf320
2019-07-02 19:49:42 +03:00
Lars T Hansen 0b091ec7d3 Bug 1562906 - Test non-booleans with explicit comparisons. r=jseward
The sharedMemoryEnabled attribute of the module environment is not a
boolean, but a true/false enum, and must be tested through an explicit
comparison with one of the enum values.

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

--HG--
extra : moz-landing-system : lando
2019-07-02 16:18:38 +00:00
Karan Sapolia d31233f330 Bug 1534285 - Make spacing between member functions in CacheIR.h consistent. r=mgaudet
Differential Revision: https://phabricator.services.mozilla.com/D35087

--HG--
extra : moz-landing-system : lando
2019-07-02 12:55:33 +00:00
Benjamin Bouvier ac2e309b61 Bug 1562378: Don't leak debugging strings when not using wasm spew; r=luke
Differential Revision: https://phabricator.services.mozilla.com/D36486

--HG--
extra : moz-landing-system : lando
2019-07-01 16:52:55 +00:00
Matthew Gaudet 680c9fdc50 Bug 1560425 - Remove old performance measurement API r=jorendorff
Differential Revision: https://phabricator.services.mozilla.com/D35522

--HG--
extra : moz-landing-system : lando
2019-07-02 14:37:17 +00:00
Dorel Luca b6e41fe22d Merge mozilla-central to autoland 2019-07-02 12:43:39 +03:00
Dorel Luca 0671407b7b Merge mozilla-inbound to mozilla-central. a=merge 2019-07-02 12:38:01 +03:00
Dorel Luca 4bbd01493b Backed out 43 changesets (bug 1561724, bug 1561150, bug 1541557, bug 1561122, bug 1560400, bug 1558298, bug 1561999, bug 1532795, bug 1561061) for multiple failures. CLOSED TREE
Backed out changeset 1a4fe24a016c (bug 1541557)
Backed out changeset 6fc41e51bcee (bug 1561061)
Backed out changeset d916d89a5c90 (bug 1561122)
Backed out changeset 757d285aafdd (bug 1560400)
Backed out changeset a7eab5ca061d (bug 1541557)
Backed out changeset d972bbdfe039 (bug 1541557)
Backed out changeset 8802daac6779 (bug 1541557)
Backed out changeset 92c01418b96f (bug 1561150)
Backed out changeset fa5e186e1635 (bug 1561061)
Backed out changeset aa2bee0b18c3 (bug 1560400)
Backed out changeset adf832af8e48 (bug 1561150)
Backed out changeset 72630a7c6e67 (bug 1561999)
Backed out changeset c35aff2a9336 (bug 1561724)
Backed out changeset 19e0edc92077 (bug 1561150)
Backed out changeset 0b3e2164f128 (bug 1561150)
Backed out changeset 43211ebfe738 (bug 1561122)
Backed out changeset c2d0956f41d8 (bug 1561061)
Backed out changeset bf0f0e95c61c (bug 1560400)
Backed out changeset 84633034590f (bug 1560400)
Backed out changeset d5415970da5f (bug 1532795)
Backed out changeset 119caddcb066 (bug 1532795)
Backed out changeset fbbe113aeef2 (bug 1532795)
Backed out changeset 8a3d311c7fac (bug 1532795)
Backed out changeset 1471732eca80 (bug 1532795)
Backed out changeset 46ff845a7b0c (bug 1541557)
Backed out changeset c2697f04d38c (bug 1541557)
Backed out changeset 75ebd6fce136 (bug 1541557)
Backed out changeset 189dc8a35981 (bug 1541557)
Backed out changeset b4ed40bea269 (bug 1541557)
Backed out changeset 158a4000c44b (bug 1541557)
Backed out changeset 61fa2745733f (bug 1541557)
Backed out changeset d2ee912c5189 (bug 1558298)
Backed out changeset 7a0aab00327b (bug 1558298)
Backed out changeset fddf2808fedf (bug 1558298)
Backed out changeset 0f6b382f0626 (bug 1558298)
Backed out changeset 6ccaa25367f2 (bug 1558298)
Backed out changeset d27574cfbb0e (bug 1558298)
Backed out changeset 162bc1fc2730 (bug 1558298)
Backed out changeset f94500dd11e3 (bug 1558298)
Backed out changeset fb67ac962bc5 (bug 1558298)
Backed out changeset c634099abb9d (bug 1558298)
Backed out changeset 8d4419c439e1 (bug 1558298)
Backed out changeset d8b7ed5e149f (bug 1558298)

--HG--
rename : testing/mochitest/tests/SimpleTest/MozillaLogger.js => testing/specialpowers/content/MozillaLogger.js
rename : testing/specialpowers/content/SpecialPowersParent.jsm => testing/specialpowers/content/SpecialPowersObserver.jsm
rename : testing/specialpowers/content/SpecialPowersAPIParent.jsm => testing/specialpowers/content/SpecialPowersObserverAPI.js
rename : testing/specialpowers/content/SpecialPowersChild.jsm => testing/specialpowers/content/specialpowers.js
rename : testing/specialpowers/content/SpecialPowersAPI.jsm => testing/specialpowers/content/specialpowersAPI.js
2019-07-02 10:51:56 +03:00
Greg Tatum e84b12e2ee Bug 1545582 - Add a JS runtime level of allocation logging; r=jimb
Differential Revision: https://phabricator.services.mozilla.com/D28142

--HG--
extra : moz-landing-system : lando
2019-07-01 21:52:58 +00:00
Cameron Kaiser 7e32ff5590 Bug 1512162 - A better fix for incorrect code generation on ppc64le. r=bholley
Differential Revision: https://phabricator.services.mozilla.com/D36439

--HG--
extra : moz-landing-system : lando
2019-07-01 18:40:59 +00:00
Ross Kirsling 3e9d056826 Bug 1556818 - Throw early SyntaxError instead of ReferenceError for 0 = 0 r=khyperia,jorendorff
Differential Revision: https://phabricator.services.mozilla.com/D35298

--HG--
extra : moz-landing-system : lando
2019-07-01 22:14:47 +00:00
Andrea Marchesini fc60290383 Bug 1557781 - Better life-time management for BodyStream/FetchStream - part 3 - JS::ReadableStreamReleaseCCObject, r=jorendorff
Differential Revision: https://phabricator.services.mozilla.com/D36466

--HG--
extra : moz-landing-system : lando
2019-07-01 20:01:17 +00:00
Andrea Marchesini 69ac3c7729 Bug 1557781 - Better life-time management for BodyStream/FetchStream - part 1 - JSCLASS_PRIVATE_IS_NSISUPPORTS, r=jonco,jorendorff
Differential Revision: https://phabricator.services.mozilla.com/D35528

--HG--
extra : moz-landing-system : lando
2019-07-01 19:59:33 +00:00
Kris Maglione 527eca99e4 Bug 1560400: Part 1 - Support remote frames in Window indexed getters. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D35471

--HG--
extra : rebase_source : 44c0503f7c9f46f40732a7f3769bfc46cb8fd01b
2019-06-20 13:52:55 -07:00
Karan Sapolia 638fd4ee57 Bug 1557112 - Remove THREAD_TYPE_GCHELPER from the js::ThreadType enum. r=KrisWright
Differential Revision: https://phabricator.services.mozilla.com/D34975

--HG--
extra : moz-landing-system : lando
2019-06-14 20:42:12 +00:00
shindli d8e8b80c16 Backed out 2 changesets (bug 1558914) for SM bustages on Array.slice . CLOSED TREE
Backed out changeset ac7ca81ef7c6 (bug 1558914)
Backed out changeset e7fbcb7b6694 (bug 1558914)
2019-07-01 19:02:49 +03:00
Kris Maglione f70e67ad2d Bug 1541557: Part 4 - Stop relying on synchronous preference getters/setters. r=nika
The SpecialPowers set*Pref/get*Pref APIs currently use synchronous messaging
to set and get preference values from the parent process. Aside from directly
affecting callers of those APIs, it also affects callers of `pushPrefEnv`,
which is meant to be asynchronous, but is in practice usually synchronous due
to the synchronous messaging it uses.

This patch updates the getPref APIs to use the in-process preference service
(which most callers are expecting anyway), and also updates the callers of
the setPref and pushPrefEnv APIs to await the result if they're relying on it
taking effect immediately.

Unfortunately, there are some corner cases in tests that appear to only work
because of the quirks of the current sync messaging approach. The synchronous
setPref APIs, for instance, trigger preference changes in the parent
instantly, but don't update the values in the child until we've returned to
the event loop and had a chance to process the notifications from the parent.
The differnce in timing leads some tests to fail in strange ways, which this
patch works around by just adding timeouts.

There should be follow-ups for test owners to fix the flakiness.

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

--HG--
extra : rebase_source : 941298157e7c82f420cf50ce057154ce9b85301c
extra : source : 189dc8a359815e059a4a217f788d183260bb2bfe
2019-06-13 09:34:39 -07:00
Kris Maglione ce3e12d5dd Bug 1541557: Part 4 - Stop relying on synchronous preference getters/setters. r=nika
The SpecialPowers set*Pref/get*Pref APIs currently use synchronous messaging
to set and get preference values from the parent process. Aside from directly
affecting callers of those APIs, it also affects callers of `pushPrefEnv`,
which is meant to be asynchronous, but is in practice usually synchronous due
to the synchronous messaging it uses.

This patch updates the getPref APIs to use the in-process preference service
(which most callers are expecting anyway), and also updates the callers of
the setPref and pushPrefEnv APIs to await the result if they're relying on it
taking effect immediately.

Unfortunately, there are some corner cases in tests that appear to only work
because of the quirks of the current sync messaging approach. The synchronous
setPref APIs, for instance, trigger preference changes in the parent
instantly, but don't update the values in the child until we've returned to
the event loop and had a chance to process the notifications from the parent.
The differnce in timing leads some tests to fail in strange ways, which this
patch works around by just adding timeouts.

There should be follow-ups for test owners to fix the flakiness.

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

--HG--
extra : rebase_source : 9c7cc853a635b6e94b6c89db0bd045384b58e552
2019-06-13 09:34:39 -07:00
Jon Coppeard f6f9c2a74c Bug 1395509 - Track malloc memory used by FileObject objects r=sfink
Differential Revision: https://phabricator.services.mozilla.com/D34555
2019-06-11 17:03:41 +01:00
Gurzau Raul 4ca4adcdd7 Merge mozilla-central to inbound. a=merge CLOSED TREE 2019-07-02 01:21:33 +03:00
Benjamin Bouvier 8a88f445e1 Bug 1562185: Allow to specify Cranelift flags via an env variable; r=lth
This allows using the CRANELIFT_FLAGS environment variable to control some
flags. To start with, this allows selecting the optimization level (opt_level,
which can be set to fastest/default/best as of this date) and
enabling/disabling jump tables.

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

--HG--
extra : rebase_source : 1c61676e891efc21605e45a9f47d01c4837a7430
extra : histedit_source : 9c0fc5bd2167b4d71b390ef1e563ac8bd0c91f18
2019-06-28 12:25:59 +02:00
Benjamin Bouvier 120aeef9e4 Bug 1562185: Reorganize Cranelift target ISA configuration; r=lth
- rename the cpu.rs file to isa.rs;
- create a new function for platform-specific flags, and move x86 flags in
  there;

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

--HG--
rename : js/src/wasm/cranelift/src/cpu.rs => js/src/wasm/cranelift/src/isa.rs
extra : rebase_source : 2611faa2084f82667e73cc264c10ba6f7c97c407
extra : histedit_source : f1db60e45ea7a3178c19153912d2c659c10f7f71
2019-06-27 19:31:32 +02:00
Benjamin Bouvier 79af6afde4 Bug 1562185: Convert Baldrdash to a 2018 Rust edition project; r=lth
Differential Revision: https://phabricator.services.mozilla.com/D36320

--HG--
extra : rebase_source : e02c133a481c4f63e59b35fd9f1323675dcbe1ee
extra : histedit_source : 99beb474793629748a27017b0a5ec5853060757c
2019-06-27 19:22:58 +02:00
Benjamin Bouvier 5058f9a7c1 Bug 1562185: Reorganize code in Cranelift bindings; r=lth
This introduces a bindings module in the cranelift bindings directory, to make
the roles of different files clearer:

- bindings/low_level.rs (formerly known as baldrapi.rs) contains all the
  bindings automatically generated by bindgen.
- bindings/mod.rs (formerly known as baldrdash.rs) contains all the high-level
  bindings, to be used by the rest of baldrdash.

Some code has been moved to match the roles more consistently; in particular,
nothing in bindings/low_level should be directly used from outer the bindings
directory.

Rustfmt has been run too, which explains a few unrelated changes.

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

--HG--
rename : js/src/wasm/cranelift/src/baldrapi.rs => js/src/wasm/cranelift/src/bindings/low_level.rs
rename : js/src/wasm/cranelift/src/baldrdash.rs => js/src/wasm/cranelift/src/bindings/mod.rs
extra : rebase_source : b6a111cb9f8909e7872aa43452228194d81f79cd
extra : histedit_source : c774c2c4ab98e24aca637451bb0d1fd03d0b94f3
2019-06-27 19:18:42 +02:00
Benjamin Bouvier 8d12747d7c Bug 1559099: Don't check metadata for JumpTableEntry instructions; r=lth
Differential Revision: https://phabricator.services.mozilla.com/D36328

--HG--
extra : rebase_source : c28ef7997335faef6a345f7b80f7cd84d9af2672
extra : histedit_source : 1465d948fc88dd12e1f14d1b83211502e5743b54
2019-06-26 18:02:58 +02:00
Csoregi Natalia 4173161363 Merge mozilla-central to autoland. CLOSED TREE 2019-06-29 13:02:56 +03:00
Csoregi Natalia 29f8e6aebd Merge inbound to mozilla-central. a=merge 2019-06-29 12:59:53 +03:00
Kartikaya Gupta 1298b01ce8 Bug 1558598 - Add ignored option for enable-webrender in jit_test harness. r=ahal
WebRender being on or off doesn't affect the JIT code, so the option is
not really useful in this harness. However, it is a downstream harness that
we'll be passing this flag to so for consistency we have it accept the
flag and silently eat it.

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

--HG--
extra : moz-landing-system : lando
2019-06-29 09:50:43 +00:00
Csoregi Natalia 67226aab44 Backed out changeset 789bacca1219 (bug 1556818) for web platform failures on module-error-reporting.html. 2019-06-29 12:11:33 +03:00
Kagami Sascha Rosylight 8e0f5ebfdd Bug 1560658: Add SameValueZero to mfbt/FloatingPoint.h r=jwalden
Add ES-defined SameValueZero and replace existing code.

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

--HG--
extra : moz-landing-system : lando
2019-06-28 23:57:13 +00:00
Ross Kirsling f2daecfc95 Bug 1556818 - Throw early SyntaxError instead of ReferenceError for 0 = 0 r=khyperia
Differential Revision: https://phabricator.services.mozilla.com/D35298

--HG--
extra : moz-landing-system : lando
2019-06-28 03:04:45 +00:00