Commit Graph

74679 Commits

Author SHA1 Message Date
Rob Rico
c7e51fec5c Bug 1608183 - Move js::ScopeCreationData to js::frontend namespace r=mgaudet
Differential Revision: https://phabricator.services.mozilla.com/D59827

--HG--
extra : moz-landing-system : lando
2020-01-16 23:34:09 +00:00
Tooru Fujisawa
3f8e528138 Bug 1609547 - Do not treat underscore after decimal point a numeric separator. r=jwalden
Differential Revision: https://phabricator.services.mozilla.com/D60063

--HG--
extra : moz-landing-system : lando
2020-01-16 22:38:28 +00:00
Andrea Marchesini
a9cf3442be Bug 1607791 - Get rid of IDBMutableFile.getFile() - part 3 - Rename SameProcessDifferentThread to SameProcess, r=asuth,sfink
Differential Revision: https://phabricator.services.mozilla.com/D59142

--HG--
extra : moz-landing-system : lando
2020-01-15 12:02:17 +00:00
Andrea Marchesini
7af68b55f9 Bug 1607791 - Get rid of IDBMutableFile.getFile() - part 2 - Remove SameProcessSameThread, r=asuth,sfink
Differential Revision: https://phabricator.services.mozilla.com/D59141

--HG--
extra : moz-landing-system : lando
2020-01-15 12:02:19 +00:00
Iain Ireland
c294388d05 Bug 1609229: Always use computed goto r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D59927

--HG--
extra : moz-landing-system : lando
2020-01-16 16:33:57 +00:00
Jon Coppeard
8a2a3d5e74 Bug 1609463 - Don't take the GC lock while finalizing arenas as this is no longer required r=sfink
This used to be required in case we released arenas here but since bug 1552118 we don't need this.

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

--HG--
extra : moz-landing-system : lando
2020-01-15 18:17:33 +00:00
Andy Wingo
51d92c123f Bug 1608121 - Separate wasm return values from calls in Ion r=lth
When we compile WebAssembly with Ion, we might get multiple return values from function calls.  However the way that Wasm calls are modelled in Ion right now makes it impossible to have multiple register results.

This patch separates the SSA definition of result values from the calls.  In WasmIonCompile.cpp, this allows us to collect results into a vector, making them available as inputs to further WebAssembly instructions.

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

--HG--
extra : moz-landing-system : lando
2020-01-16 09:19:57 +00:00
Jan de Mooij
54b3f4ffcf Bug 1604631 - Trigger constraints when defining an uninitialized global lexical binding. r=iain
Since bug 1603373 we no longer store magic types in HeapTypeSets. This broke an
Ion optimization because it uses constraints to guard a property does not exist
on the global lexical environment. This patch explicitly fires the constraint
when defining an uninitialized global lexical.

I was unable to write a test for this that doesn't require --ion-eager.

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

--HG--
extra : moz-landing-system : lando
2020-01-16 08:25:15 +00:00
shindli
81e8ff102a Backed out changeset 572928224d2d (bug 1609547) for causing spidermonkey bustages in numeric-separator-literal-dot-dd-nsl-dd-ep.js CLOSED TREE 2020-01-16 09:30:06 +02:00
Zhao Jiazhong
120a743324 Bug 1609319 - [MIPS] Rename jit::Opcode to jit::OpcodeField to avoid conflicts with wasm::Opcode. r=lth
Differential Revision: https://phabricator.services.mozilla.com/D59979

--HG--
extra : moz-landing-system : lando
2020-01-16 06:23:45 +00:00
Tooru Fujisawa
66d83bc1a8 Bug 1609547 - Do not treat underscode after decimal point a numeric separator. r=jwalden
Differential Revision: https://phabricator.services.mozilla.com/D60063

--HG--
extra : moz-landing-system : lando
2020-01-16 06:08:48 +00:00
Jeff Walden
965d8bbbd6 Bug 1609258 - Tack a 'n' onto the end of the ValueToSource result for bigints. r=evilpie
Differential Revision: https://phabricator.services.mozilla.com/D59940

--HG--
extra : moz-landing-system : lando
2020-01-15 19:31:13 +00:00
Jon Coppeard
8e7bc65d31 Bug 1596756 - Add browser tests for FinalizationGroup r=mccr8
These are mochitests because there's currently no way to trigger a GC from WPT. I tried to do this with xpcshell tests but I couldn't get the pref to enable weak refs to work.

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

--HG--
extra : moz-landing-system : lando
2020-01-15 14:19:28 +00:00
Jon Coppeard
565c221ae9 Bug 1596756 - Don't queue finalization groups for cleanup during shutdown r=sfink
It doesn't make sense to queue callbacks at this point because they will never run, and without this we get leaks at shutdown.  I also refactored GCRuntime::sweepFinalizationGroups a little.

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

--HG--
extra : moz-landing-system : lando
2020-01-15 14:22:29 +00:00
Jon Coppeard
9372af6635 Bug 1593698 - Add a pref to enable support for weak references in nightly builds, off by default r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D53023

--HG--
extra : moz-landing-system : lando
2020-01-15 14:22:29 +00:00
Mihai Alexandru Michis
4345a38d0d Backed out 9 changesets (bug 1607791, bug 1605566) for causing multiple wpt failures.
CLOSED TREE

Backed out changeset 39f34852842e (bug 1605566)
Backed out changeset 3427a92445c8 (bug 1605566)
Backed out changeset 36631ec96f1f (bug 1605566)
Backed out changeset 554b2bdce66c (bug 1605566)
Backed out changeset 37026beadbd8 (bug 1605566)
Backed out changeset f15835338319 (bug 1607791)
Backed out changeset 4c92f506cf62 (bug 1607791)
Backed out changeset 80707bcc8427 (bug 1607791)
Backed out changeset 75bc7533c899 (bug 1607791)
2020-01-15 13:45:33 +02:00
Jon Coppeard
c10ddb2666 Bug 1609054 - Check whether arenas have been reallocated in a different zone in the incremental marking verifier r=sfink
Differential Revision: https://phabricator.services.mozilla.com/D59908

--HG--
extra : moz-landing-system : lando
2020-01-15 10:47:16 +00:00
Andrea Marchesini
c5b0781d9f Bug 1605566 - MessagePort + wasm - part 2 - implement JS::StructuredCloneScope::UnknownDestination, r=sfink
Differential Revision: https://phabricator.services.mozilla.com/D59613

--HG--
extra : moz-landing-system : lando
2020-01-15 10:00:59 +00:00
Andrea Marchesini
11ba0c0331 Bug 1605566 - MessagePort + wasm - part 1 - access scope via method in StructuredClone code, r=sfink
Differential Revision: https://phabricator.services.mozilla.com/D59612

--HG--
extra : moz-landing-system : lando
2020-01-15 10:05:23 +00:00
Andrea Marchesini
6d6aa4cc66 Bug 1607791 - Get rid of IDBMutableFile.getFile() - part 3 - Rename SameProcessDifferentThread to SameProcess, r=asuth,sfink
Differential Revision: https://phabricator.services.mozilla.com/D59142

--HG--
extra : moz-landing-system : lando
2020-01-15 09:59:16 +00:00
Andrea Marchesini
3cd17a373a Bug 1607791 - Get rid of IDBMutableFile.getFile() - part 2 - Remove SameProcessSameThread, r=asuth,sfink
Differential Revision: https://phabricator.services.mozilla.com/D59141

--HG--
extra : moz-landing-system : lando
2020-01-15 09:58:59 +00:00
Jan de Mooij
3be21eaaaf Bug 1608785 - Remove MClassConstructor::getAliasSet. r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D59860

--HG--
extra : moz-landing-system : lando
2020-01-14 14:11:08 +00:00
Jason Orendorff
1676b6ba3d Bug 1608509 - Part 8: Remove JSOP_* constants. r=jandem.
This also removes the `name` field from FOR_EACH_OPCODE. Disassembly now uses
the UpperCamelCase opcode name.

A few tests look at disassembler output.

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

--HG--
extra : moz-landing-system : lando
2020-01-14 22:49:22 +00:00
Jason Orendorff
5097f5bced Bug 1608509 - Part 7: Automatically replace JSOP_UPPER with JSOp::CamelCase. r=jandem.
Differential Revision: https://phabricator.services.mozilla.com/D59808

--HG--
extra : moz-landing-system : lando
2020-01-14 22:35:08 +00:00
Jason Orendorff
77134f744a Bug 1608509 - Part 6: Rename JSOP_*_LENGTH constants. r=jandem.
This commit also includes the fix from D59934, r=iain.

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

--HG--
extra : moz-landing-system : lando
2020-01-14 22:29:10 +00:00
Matthew Gaudet
149bab69c7 Bug 1598713 - Abstract setFunName over FunctionBox r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D58984

--HG--
extra : moz-landing-system : lando
2020-01-14 22:16:20 +00:00
Matthew Gaudet
12a6d8961a Bug 1598713 - Reduce use of function member in FunctionEmitter r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D58672

--HG--
extra : moz-landing-system : lando
2020-01-14 22:15:58 +00:00
Matthew Gaudet
15c2d2ae87 Bug 1602114 - Remove sourceObjectOut param from CompileGlobalScript r=tcampbell
Depends on D58641

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

--HG--
extra : moz-landing-system : lando
2020-01-14 21:41:15 +00:00
Matthew Gaudet
43010a5d55 Bug 1602114 - Use ParseInfo::sourceObject instead of the newly created script's sourceObject r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D59391

--HG--
extra : moz-landing-system : lando
2020-01-14 21:41:15 +00:00
Matthew Gaudet
ef20aa0e91 Bug 1602114 - Root ScriptSourceObject inside of ParseInfo r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D58641

--HG--
extra : moz-landing-system : lando
2020-01-14 21:41:15 +00:00
Matthew Gaudet
3292200eef Bug 1602114 - Don't pass parameterListEnd to CreateScriptSourceObject r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D58640

--HG--
extra : moz-landing-system : lando
2020-01-14 18:40:24 +00:00
Tom Schuster
1513233e8f Bug 1606084 - Add RegExp support to ValueToSource fallback. r=arai
Differential Revision: https://phabricator.services.mozilla.com/D59685

--HG--
extra : moz-landing-system : lando
2020-01-14 18:02:47 +00:00
Tom Schuster
96287c698e Bug 1606084 - Move ValueToSource to a new file. r=arai
I am not sure if I should create a separate header just for ValueToSource?
In the future after we remove toSource from chrome-js we can move more ToSource methods to this file.

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

--HG--
rename : js/src/vm/StringType.cpp => js/src/vm/ToSource.cpp
extra : moz-landing-system : lando
2020-01-14 18:01:56 +00:00
Narcis Beleuzu
1e57ce022c Backed out changeset d2457f7efd8a (bug 1608791) for spidermonkey bustages on WasmBaselineCompile.cpp. CLOSED TREE 2020-01-14 22:23:15 +02:00
Narcis Beleuzu
bcfe24bfe4 Backed out changeset 5259dd26dcc7 (bug 1608183) for bustages on Stencil.h. CLOSED TREE 2020-01-14 21:58:10 +02:00
Narcis Beleuzu
a3855f0622 Backed out 3 changesets (bug 1608509) for bustages on Interpreter.cpp. CLOSED TREE
Backed out changeset 378627d9d058 (bug 1608509)
Backed out changeset ded7d57dfd7f (bug 1608509)
Backed out changeset b1295a6b6345 (bug 1608509)
2020-01-14 21:51:57 +02:00
Steve Fink
33e1daf1c6 Bug 1608089 - Fix up gdb prettyprinters for JSOp enum, r=jorendorff
Differential Revision: https://phabricator.services.mozilla.com/D59905

--HG--
extra : moz-landing-system : lando
2020-01-14 19:35:44 +00:00
Lars T Hansen
b8e0635541 Bug 1608791 - Harden the Rabaldr register wrappers. r=rhunt
By cleaning up the register set APIs very slightly we can simplify the wrappers and
make space for meaningful assertions.

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

--HG--
extra : moz-landing-system : lando
2020-01-14 18:51:52 +00:00
Lars T Hansen
76c42a2447 Bug 1604740 - Zydis update. r=rhunt
This pulls the Zydis working branch to get a compile fix for Solaris
that was upstreamed to Zydis by Oracle.

I ran the zydis/update.sh script, then 'hg add'ed four new files, and
ran a quick test - everything seems to work OK, wonders never cease.

A diff of new vs old code shows the Solaris fix is included.

The patch includes a change to update.sh that gets the pulled rev
from the git repo, not from the command line

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

--HG--
extra : moz-landing-system : lando
2020-01-14 19:00:47 +00:00
Tooru Fujisawa
278002330f Bug 1608674 - Add null-check in ReportIsNullOrUndefinedForPropertyAccess. r=jorendorff
Differential Revision: https://phabricator.services.mozilla.com/D59617

--HG--
extra : moz-landing-system : lando
2020-01-14 18:52:08 +00:00
Rob Rico
6a91705585 Bug 1608183 - Move js::ScopeCreationData to js::frontend namespace r=mgaudet
Differential Revision: https://phabricator.services.mozilla.com/D59827

--HG--
extra : moz-landing-system : lando
2020-01-14 17:42:36 +00:00
Jason Orendorff
dd7bb7f141 Bug 1608509 - Part 8: Remove JSOP_* constants. r=jandem.
This also removes the `name` field from FOR_EACH_OPCODE. Disassembly now uses
the UpperCamelCase opcode name.

A few tests look at disassembler output.

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

--HG--
extra : moz-landing-system : lando
2020-01-14 17:58:38 +00:00
Jason Orendorff
fe42d608aa Bug 1608509 - Part 7: Automatically replace JSOP_UPPER with JSOp::CamelCase. r=jandem.
Differential Revision: https://phabricator.services.mozilla.com/D59808

--HG--
extra : moz-landing-system : lando
2020-01-14 17:56:49 +00:00
Jason Orendorff
bac1410391 Bug 1608509 - Part 6: Rename JSOP_*_LENGTH constants. r=jandem.
Differential Revision: https://phabricator.services.mozilla.com/D59807

--HG--
extra : moz-landing-system : lando
2020-01-14 17:50:53 +00:00
Jason Orendorff
7762686e69 Bug 1608509 - Part 5: Rename baseline emit methods. r=jandem.
Differential Revision: https://phabricator.services.mozilla.com/D59806

--HG--
extra : moz-landing-system : lando
2020-01-14 17:49:22 +00:00
Jason Orendorff
a63234731c Bug 1608509 - Part 4: More manual fixups in comments. r=jandem.
Differential Revision: https://phabricator.services.mozilla.com/D59805

--HG--
extra : moz-landing-system : lando
2020-01-14 17:48:34 +00:00
Jason Orendorff
4dcb9e19a8 Bug 1608509 - Part 3: Manual fixups in comments. r=jandem.
Differential Revision: https://phabricator.services.mozilla.com/D59803

--HG--
extra : moz-landing-system : lando
2020-01-14 17:46:49 +00:00
Jason Orendorff
11a9f1f0a1 Bug 1608509 - Part 2: Automated substitution for /\b(JSOP_\w+)\b/ in comments. r=jandem.
Differential Revision: https://phabricator.services.mozilla.com/D59802

--HG--
extra : moz-landing-system : lando
2020-01-14 17:44:22 +00:00
Jason Orendorff
58673de7b8 Bug 1608509 - Part 1: Fix a few odd comments. r=jandem.
The comment about JSOP_GLOBALTHIS and JSOP_FUNCTIONTHIS may never have been
sensible; JSOP_FUNCTIONTHIS never walks the environment chain, as it is used
only in non-arrow functions, which take `this` as an argument in the CallArgs.

JSOP_LOOPENTRY and JSOP_TRACE are gone. So is JSOP_SPREAD.

"JSOP_POPs" was eccentric in a way that would be unclear with CamelCase.

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

--HG--
extra : moz-landing-system : lando
2020-01-14 17:39:19 +00:00
Jason Orendorff
2fe4803a51 Bug 1608089 - Part 4: Convert JSOp to an enum class. r=jandem.
The new opcode names are like `JSOp::InitHiddenProp`. This patch creates
aliases with all of the old names, like `JSOP_INITHIDDENPROP`, to keep existing
code working.

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

--HG--
extra : moz-landing-system : lando
2020-01-14 16:32:07 +00:00