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

77810 Коммитов

Автор SHA1 Сообщение Дата
André Bargull fc09cfa563 Bug 1652153: Clear any pending exception when JS_EncodeStringToUTF8 failed in ErrorReportBuilder::init. r=evilpie
Differential Revision: https://phabricator.services.mozilla.com/D83237
2020-07-13 14:39:52 +00:00
Matthew Gaudet 760f059b00 Bug 1651512 - Reflect.parse support for private fields r=jorendorff
Differential Revision: https://phabricator.services.mozilla.com/D83105
2020-07-13 13:14:24 +00:00
longsonr c2fc063be0 Bug 1652254 - Remove svg from some moz.build local includes r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D83247
2020-07-12 16:38:26 +00:00
Jan de Mooij 4ce7ac11c3 Bug 1651000 - Fix OOM check in NewWrapperWithObjectShape. r=iain
Found by static analysis.

I wish we didn't have these browser-specific optimizations. Maybe after Warp we
can make bigger changes to our object/proxy model and address this.

Differential Revision: https://phabricator.services.mozilla.com/D83062
2020-07-10 13:04:30 +00:00
Jon Coppeard d13b7d51e0 Bug 1640844 - Part 4: Only used smoothed growth factor for recent collections r=sfink
It only makes sense to use the smoothing if the nursery has been collected recently.  If not it's unlikely to correlate with recent usage.  This change makes us ramp up more quickly after a period of inactivity, as we did before the earlier patches in this series landed.

Differential Revision: https://phabricator.services.mozilla.com/D82970
2020-07-13 07:48:39 +00:00
Jon Coppeard 8720984646 Bug 1640844 - Part 3: Minimize nursery size in shrinking GCs r=sfink
The main purpose of this is so that that worker nurseries are minimised when workers go idle, since that uses a shrinking GC.

Testing indicates that this is sufficient to fix the memory regressions.

Differential Revision: https://phabricator.services.mozilla.com/D82969
2020-07-13 07:49:32 +00:00
André Bargull f10844979b Bug 1651732 - Part 9: Rename ValueToId to PrimitiveValueToId and assert its input is a primitive. r=jandem
`ValueToId` turned out to be a pitfall we want to avoid, it looks quite similar
to `ToPropertyKey`, but is subtly different to that function.

Let's rename it to `PrimitiveValueToId` and assert its input is a primitive,
that should prevent any accidental use of that function when `ToPropertyKey`
should have been used instead.

Differential Revision: https://phabricator.services.mozilla.com/D83060
2020-07-11 12:51:07 +00:00
André Bargull 616df230cc Bug 1651732 - Part 8: Split ValueToId callers in js::Stringify. r=jandem
Only call `ValueToId` for primitive values in preparation for the next patch
and instead call `ToAtom` for objects.

Differential Revision: https://phabricator.services.mozilla.com/D83059
2020-07-11 12:43:03 +00:00
André Bargull 60f966c979 Bug 1651732 - Part 7: Change additional callers to use ToPropertyKey instead of ValueToId. r=jandem
These changes should result in no observable behaviour for their current usage.

intrinsic_DefineDataProperty:
- Using `ToPropertyKey` also is a better match for the inlined, three argument
  form of `_DefineDataProperty`.

JS_ValueToId:
- It looks like this function is only called with String values, so changing it
  to use `ToPropertyKey` won't result in any observable difference.

js::ValueToIdentifier:
- This function will throw an error when symbols are encountered anyway, so we
  might as well change it to use `ToPropertyKey`.

Differential Revision: https://phabricator.services.mozilla.com/D83058
2020-07-11 12:42:38 +00:00
André Bargull e52b61ac0a Bug 1651732 - Part 6: Change DebuggerObject to use ToPropertyKey. r=jandem
Similar to part 1, replace `ToValueId()` with `ToPropertyKey()`.

Differential Revision: https://phabricator.services.mozilla.com/D83057
2020-07-11 12:42:10 +00:00
André Bargull 105d7b8aac Bug 1651732 - Part 5: Change IonGetPropSuperIC::update to use ToPropertyKey. r=jandem
Similar to part 1, replace `ToValueId()` with `ToPropertyKey()`.

Differential Revision: https://phabricator.services.mozilla.com/D83056
2020-07-11 12:40:58 +00:00
André Bargull 94fd9e0aa5 Bug 1651732 - Part 4: Change ProxyHasOwn to use ToPropertyKey. r=jandem
Similar to part 1, replace `ToValueId()` with `ToPropertyKey()`.

Differential Revision: https://phabricator.services.mozilla.com/D83055
2020-07-11 12:40:20 +00:00
André Bargull d4237511ee Bug 1651732 - Part 3: Change ProxyHas to use ToPropertyKey. r=jandem
Similar to part 1, replace `ToValueId()` with `ToPropertyKey()`.

Differential Revision: https://phabricator.services.mozilla.com/D83054
2020-07-11 12:39:47 +00:00
André Bargull f02ad5e8f8 Bug 1651732 - Part 2: Change ProxySetPropertyByValue to use ToPropertyKey. r=jandem
Similar to part 1, replace `ToValueId()` with `ToPropertyKey()`.

Differential Revision: https://phabricator.services.mozilla.com/D83053
2020-07-11 13:11:52 +00:00
André Bargull 441ff7b9cf Bug 1651732 - Part 1: Change ProxyGetPropertyByValue to use ToPropertyKey. r=jandem
`ValueToId()` calls `ToAtom()` for objects, which isn't correct per spec,
instead `ToPropertyKey()` needs to be used here.

Differential Revision: https://phabricator.services.mozilla.com/D83052
2020-07-11 12:38:36 +00:00
Jon Coppeard 6362b67ae7 Bug 1651723 - Store atom pinned state in the atoms table only r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D82968
2020-07-10 18:23:27 +00:00
Kris Maglione b6be72f351 Bug 1649554: Part 1 - Move deprecated component registration helpers out of XPCOMUtils. r=mccr8,remote-protocol-reviewers,marionette-reviewers,perftest-reviewers,webcompat-reviewers,whimboo,twisniewski
Differential Revision: https://phabricator.services.mozilla.com/D81749
2020-07-10 23:58:30 +00:00
Kris Maglione 9d78661f88 Bug 1649221: Update ChromeUtils.generateQI callers to pass strings. r=mccr8,remote-protocol-reviewers,marionette-reviewers,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,preferences-reviewers,agi,whimboo,Bebe,twisniewski
Differential Revision: https://phabricator.services.mozilla.com/D81594
2020-07-10 23:58:28 +00:00
caroline d68bc9bc10 Bug 1648820 - Part 3: Transpile Math.hypot in Warp. r=iain
Differential Revision: https://phabricator.services.mozilla.com/D83023
2020-07-10 21:49:11 +00:00
caroline 1335a54165 Bug 1648820 - Part 2: Optimize Math.hypot in CacheIR. r=iain
Differential Revision: https://phabricator.services.mozilla.com/D83022
2020-07-10 21:49:04 +00:00
caroline 45fed54608 Bug 1648820 - Part 1: Add additional floating point registers. r=iain
Differential Revision: https://phabricator.services.mozilla.com/D83021
2020-07-10 20:48:42 +00:00
Ryan Hunt 469c6cfd10 Bug 1649290 - wasm: Relax constraints on declared segments. r=lth
Took another look at the spec after reading this code and noticed that there
are no restrictions on the element type of a declared segment, while we impose
that it must be a funcref. There is no practical use of an externref declared
segment as it must only contain ref.null currently, however we should still
allow it.

The spec also purposefully drops active element segments during instantiation,
while we drop all non-passive segments (which includes declared).

This commit relaxes both of these constraints, and updates our test.

Spec References:
[1] https://webassembly.github.io/reference-types/core/valid/modules.html#xref-syntax-modules-syntax-elemmode-mathsf-declarative
[2] https://webassembly.github.io/reference-types/core/exec/modules.html#instantiation

Differential Revision: https://phabricator.services.mozilla.com/D81773
2020-07-10 20:21:25 +00:00
Bogdan Tara 79b01517bf Backed out changeset 705dcdc597d4 (bug 1651512) for parse related bustage CLOSED TREE 2020-07-10 23:28:48 +03:00
Ted Campbell 4ae68b0011 Bug 1652056 - Don't use CompilationInfo::functions until instantiation. r=arai
We do not need to the JSFunction during parsing any more so don't set up the
array until instantiation. During delazification we fill this array from the
existing functions, noting that the order of functions matches between lazy
and full parse by design of lazy parsing.

Differential Revision: https://phabricator.services.mozilla.com/D83128
2020-07-10 16:46:10 +00:00
Matthew Gaudet 516f6ae391 Bug 1651512 - Reflect.parse support for private fields r=jorendorff
Differential Revision: https://phabricator.services.mozilla.com/D83105
2020-07-10 18:59:13 +00:00
Matthew Gaudet 2f7c4aa9a3 Bug 1651448 - Don't require strict mode to issue private-field delete diagnostics r=jorendorff
Differential Revision: https://phabricator.services.mozilla.com/D83115
2020-07-10 19:00:09 +00:00
André Bargull 9f3944b5b4 Bug 1645459: Add numbering systems processing to the standard Intl python script. r=jwalden
Handle numbering systems similar to measurement units:
- Add a central list of all supported numbering systems in a yaml file.
- Verify these numbering systems are supported by ICU.
- Also verify ICU supports no additional simple numbering systems. (ECMA-402
  should support all numbering systems with simple digit mappings defined in
  CLDR.)
- Generate source and test files from this list of numbering systems.

Differential Revision: https://phabricator.services.mozilla.com/D81717
2020-07-10 17:19:42 +00:00
asobeh f2005724b4 Bug 1644976 wasmDis double-spaces its output on ARM. *adjusted r=rhunt
Differential Revision: https://phabricator.services.mozilla.com/D81316
2020-07-10 17:39:17 +00:00
Bogdan Tara 2a2afde9a5 Backed out changeset a2631e9fb4d1 (bug 1651723) for atom related bustage CLOSED TREE 2020-07-10 20:29:57 +03:00
Tooru Fujisawa fec04f0dc2 Bug 1651880 - Part 11: Instantiate ScopeCreationData in top down way. r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D83081
2020-07-10 16:54:34 +00:00
Tooru Fujisawa 3c2205afb0 Bug 1651880 - Part 10: Remove wrong comment. r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D83080
2020-07-10 16:54:32 +00:00
Tooru Fujisawa 6fda6cd919 Bug 1651880 - Part 9: Add category comment for ScriptStencil fields. r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D83079
2020-07-10 16:54:22 +00:00
Tooru Fujisawa f84368f331 Bug 1651880 - Part 8: Do not copy script fields for asm.js function. r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D83078
2020-07-10 17:08:33 +00:00
Tooru Fujisawa 5f38bce265 Bug 1651880 - Part 7: Use FunctionFlags for detecting function. r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D83077
2020-07-10 16:54:07 +00:00
Tooru Fujisawa 8d9d7e563b Bug 1651880 - Part 6: Remove stale comment about SourceExtent. r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D83076
2020-07-10 16:54:04 +00:00
Tooru Fujisawa f5bbb9fe25 Bug 1651880 - Part 5: Move stencil instantiation into Stencil.cpp. r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D83075
2020-07-10 16:53:56 +00:00
Tooru Fujisawa 77d8901e0b Bug 1651880 - Part 4: Remove stale comments. r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D83074
2020-07-10 16:53:54 +00:00
Tooru Fujisawa 124bb802c3 Bug 1651880 - Part 3: Move AbstractScopePtr::getOrCreateScope to ScopeCreationData. r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D83073
2020-07-10 16:53:47 +00:00
Tooru Fujisawa 256cb542ab Bug 1651880 - Part 2: Use FunctionFlags instead of isAsmJSModule field. r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D83072
2020-07-10 16:53:44 +00:00
Tooru Fujisawa df68963698 Bug 1651880 - Part 1: Use CompilationInfo.enclosingScope for all context. r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D83071
2020-07-10 16:53:42 +00:00
Jon Coppeard b9d8cc9209 Bug 1652019 - Move more of decommit logic off-thread r=sfink
We can sort the available chunks list and prepare the list of chunks to decommit when we're already runnin off-thread.

Depends on D83107

Differential Revision: https://phabricator.services.mozilla.com/D83108
2020-07-10 17:02:42 +00:00
Jon Coppeard a80dc17854 Bug 1652019 - Factor out the logic to poll/wait on a background task r=sfink
This happens in two places in the incrementalSlice() and we can factor it out.

Differential Revision: https://phabricator.services.mozilla.com/D83107
2020-07-10 16:59:39 +00:00
Jon Coppeard 4b780fba8a Bug 1651723 - Store atom pinned state in the atoms table only r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D82968
2020-07-10 15:37:25 +00:00
André Bargull 501e64f8f5 Bug 1651390 - Part 2: Remove near duplicate NewString[DontDeflate] functions. r=sfink
Depends on D82732

Differential Revision: https://phabricator.services.mozilla.com/D82733
2020-07-10 12:41:32 +00:00
André Bargull f36ea50e8b Bug 1651390 - Part 1: Copy comments from NewString[DontDeflate]. r=sfink
Copy the comments to the `NewString<allowGC>` alternatives before removing
the functions in part 2.

Differential Revision: https://phabricator.services.mozilla.com/D82732
2020-07-09 18:12:31 +00:00
Jean-Yves Avenard bd648e63b9 Bug 1649974 - P1. Make WeakPtr work with generic taskqueue. r=froydnj
It worked until now as IPC's MessageChannel was only used with background taskqueue; which use a threadpool made of a single thread only.

Differential Revision: https://phabricator.services.mozilla.com/D82499
2020-07-10 01:36:12 +00:00
Kris Maglione 6a39211860 Bug 1464542: Part 3b - Add existing Services.jsm registrations to the new services cache. r=mccr8,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D81419
2020-07-09 21:42:25 +00:00
Kris Maglione 4200cb539c Bug 1464542: Part 2 - Add infrastructure for defining named services exposed to JS. r=mccr8
This builds on the existing static components infrastructure to allow defining
a Services.jsm-type services cache with no runtime memory overhead for any
services until they're accessed.

Any class entry with a 'js_name' attribute automatically becomes available on
the services cache with that name, and any interfaces listed in its
'interfaces' list are automatically queried on it.

Differential Revision: https://phabricator.services.mozilla.com/D81417
2020-07-09 20:42:50 +00:00
Csoregi Natalia d7ea80b7fe Backed out changeset fca47cf38382 (bug 1649290) for spidermonkey bustages. CLOSED TREE 2020-07-10 00:44:44 +03:00
Csoregi Natalia b355fcc4bf Backed out 6 changesets (bug 1464542) for xpcshell failures on test_Services.js. CLOSED TREE
Backed out changeset b50af9005851 (bug 1464542)
Backed out changeset 9d3a0ea2cf65 (bug 1464542)
Backed out changeset 71c3475fcbc2 (bug 1464542)
Backed out changeset 51ff93220a95 (bug 1464542)
Backed out changeset e84de1547c09 (bug 1464542)
Backed out changeset bbecc16d08eb (bug 1464542)
2020-07-09 23:19:26 +03:00