Commit Graph

74702 Commits

Author SHA1 Message Date
Nazım Can Altınova
f70859c47d Bug 1609674 - Add innerWindowID param to AUTO_PROFILER_TEXT_MARKER_CAUSE and use that macro for setTimeout callback marker. r=gerald
Differential Revision: https://phabricator.services.mozilla.com/D60270

--HG--
extra : moz-landing-system : lando
2020-01-20 18:53:09 +00:00
Emilio Cobos Álvarez
256c124f94 Bug 1609996 - Reorder some includes affected by the previous patches. r=froydnj
This was done by:

This was done by applying:

```
diff --git a/python/mozbuild/mozbuild/code-analysis/mach_commands.py b/python/mozbuild/mozbuild/code-analysis/mach_commands.py
index 789affde7bbf..fe33c4c7d4d1 100644
--- a/python/mozbuild/mozbuild/code-analysis/mach_commands.py
+++ b/python/mozbuild/mozbuild/code-analysis/mach_commands.py
@@ -2007,7 +2007,7 @@ class StaticAnalysis(MachCommandBase):
         from subprocess import Popen, PIPE, check_output, CalledProcessError

         diff_process = Popen(self._get_clang_format_diff_command(commit), stdout=PIPE)
-        args = [sys.executable, clang_format_diff, "-p1", "-binary=%s" % clang_format]
+        args = [sys.executable, clang_format_diff, "-p1", "-binary=%s" % clang_format, '-sort-includes']

         if not output_file:
             args.append("-i")
```

Then running `./mach clang-format -c <commit-hash>`

Then undoing that patch.

Then running check_spidermonkey_style.py --fixup

Then running `./mach clang-format`

I had to fix four things:

 * I needed to move <utility> back down in GuardObjects.h because I was hitting
   obscure problems with our system include wrappers like this:

0:03.94 /usr/include/stdlib.h:550:14: error: exception specification in declaration does not match previous declaration
0:03.94 extern void *realloc (void *__ptr, size_t __size)
0:03.94              ^
0:03.94 /home/emilio/src/moz/gecko-2/obj-debug/dist/include/malloc_decls.h:53:1: note: previous declaration is here
0:03.94 MALLOC_DECL(realloc, void*, void*, size_t)
0:03.94 ^
0:03.94 /home/emilio/src/moz/gecko-2/obj-debug/dist/include/mozilla/mozalloc.h:22:32: note: expanded from macro 'MALLOC_DECL'
0:03.94     MOZ_MEMORY_API return_type name##_impl(__VA_ARGS__);
0:03.94                                ^
0:03.94 <scratch space>:178:1: note: expanded from here
0:03.94 realloc_impl
0:03.94 ^
0:03.94 /home/emilio/src/moz/gecko-2/obj-debug/dist/include/mozmemory_wrap.h:142:41: note: expanded from macro 'realloc_impl'
0:03.94 #define realloc_impl mozmem_malloc_impl(realloc)

   Which I really didn't feel like digging into.

 * I had to restore the order of TrustOverrideUtils.h and related files in nss
   because the .inc files depend on TrustOverrideUtils.h being included earlier.

 * I had to add a missing include to RollingNumber.h

 * Also had to partially restore include order in JsepSessionImpl.cpp to avoid
   some -WError issues due to some static inline functions being defined in a
   header but not used in the rest of the compilation unit.

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

--HG--
extra : moz-landing-system : lando
2020-01-20 16:19:48 +00:00
Emilio Cobos Álvarez
b4600e67fc Bug 1609996 - Run check_spidermonkey_style.py --fixup. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D60325

--HG--
extra : moz-landing-system : lando
2020-01-20 16:18:40 +00:00
Emilio Cobos Álvarez
aa3a695712 Bug 1609996 - Remove mozilla/Move.h. r=froydnj
rg -l 'mozilla/Move.h' | xargs sed -i 's/#include "mozilla\/Move.h"/#include <utility>/g'

Further manual fixups and cleanups to the include order incoming.

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

--HG--
extra : moz-landing-system : lando
2020-01-20 16:18:20 +00:00
Emilio Cobos Álvarez
5cd5e6f148 Bug 1609996 - Remove mozilla::Swap in favor of std::swap. r=froydnj
Now mfbt/Move.h is empty except for that excellent comment about move
semantics... Should we put it somewhere else and delete the header as a
follow-up? Or just delete the header and carry on?

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

--HG--
extra : moz-landing-system : lando
2020-01-20 16:17:06 +00:00
yulia
364f826b64 Bug 1566143 - Add tests for Optional Chaining r=arai
Differential Revision: https://phabricator.services.mozilla.com/D59870

--HG--
extra : moz-landing-system : lando
2020-01-20 16:03:51 +00:00
yulia
311ade11ad Bug 1566143 - Add Bytecode for Optional Chaining; r=arai
Differential Revision: https://phabricator.services.mozilla.com/D59869

--HG--
extra : moz-landing-system : lando
2020-01-20 16:03:48 +00:00
yulia
64cb1cb24e Bug 1566143 - Update parser for optional chaining r=arai
Differential Revision: https://phabricator.services.mozilla.com/D58974

--HG--
extra : moz-landing-system : lando
2020-01-20 16:03:46 +00:00
yulia
76ad24d4d9 Bug 1566143 - refactor coordnode r=arai
Differential Revision: https://phabricator.services.mozilla.com/D58973

--HG--
extra : moz-landing-system : lando
2020-01-20 16:03:44 +00:00
Ryan Hunt
6311d3e0e4 Bug 1608941 - Update cranelift setting keys for rename. r=bbouvier
Depends on D60271

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

--HG--
extra : moz-landing-system : lando
2020-01-20 13:22:12 +00:00
Ryan Hunt
6dd534025d Bug 1608941 - Bump cranelift to b01bee7c5269f72196b42e8bdd874425166bf429. r=bbouvier
Differential Revision: https://phabricator.services.mozilla.com/D60271

--HG--
extra : moz-landing-system : lando
2020-01-20 13:21:55 +00:00
Yoshi Cheng-Hao Huang
133ce9d613 Bug 1609636 - Part 2: Add mochitests for WeakRef in browser. r=smaug,jonco
Differential Revision: https://phabricator.services.mozilla.com/D60155

--HG--
extra : moz-landing-system : lando
2020-01-20 12:35:30 +00:00
Yoshi Cheng-Hao Huang
e1ea5b98a5 Bug 1609636 - Part 1: Add ClearKeptObjects API. r=jonco,smaug
From WeakRef proposal, [1], ECMAScript implementations are expected to call
ClearKeptObjects when a synchronous sequence of ECMAScript execution completes.

[1]: https://tc39.es/proposal-weakrefs/#sec-clear-kept-objects

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

--HG--
extra : moz-landing-system : lando
2020-01-20 12:49:11 +00:00
Lars T Hansen
5c79ccc8e1 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-20 12:23:12 +00:00
Lars T Hansen
e980d0b059 Bug 1609138 - Clean up float registers on arm64. r=rhunt
Create a clearer distinction between the register's Encoding, which is
its hardware name, and its Code, which is a dense encoding of
bitwidth+Encoding along with a distinguished Invalid value.  These
concepts exist already but it gets out of hand when the FloatRegister
uses a Code to encode the Encoding.

Make FloatRegister contain separate fields for bitwidth, encoding, and
validity, as it does on other platforms.

Add assertions on validity of inputs and on the validity of the
FloatRegister for some operations.  And tidy up some, and rearrange
the file to mirror the x86 file as much as possible.

Expand the register name table so that it covers the possible range of
Code and so that we won't reference the table OOB.

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

--HG--
extra : moz-landing-system : lando
2020-01-20 12:22:23 +00:00
Bogdan Tara
4dbee2136f Backed out 2 changesets (bug 1609138, bug 1608791) for Assembler-vixl.h related bustage CLOSED TREE
Backed out changeset 7d2c3216d225 (bug 1608791)
Backed out changeset d2b7ff305b35 (bug 1609138)
2020-01-20 09:57:11 +02:00
Lars T Hansen
716cc538b0 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-20 07:34:31 +00:00
Lars T Hansen
0f2e97ec33 Bug 1609138 - Clean up float registers on arm64. r=rhunt
Create a clearer distinction between the register's Encoding, which is
its hardware name, and its Code, which is a dense encoding of
bitwidth+Encoding along with a distinguished Invalid value.  These
concepts exist already but it gets out of hand when the FloatRegister
uses a Code to encode the Encoding.

Make FloatRegister contain separate fields for bitwidth, encoding, and
validity, as it does on other platforms.

Add assertions on validity of inputs and on the validity of the
FloatRegister for some operations.  And tidy up some, and rearrange
the file to mirror the x86 file as much as possible.

Expand the register name table so that it covers the possible range of
Code and so that we won't reference the table OOB.

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

--HG--
extra : moz-landing-system : lando
2020-01-20 07:33:52 +00:00
Lars T Hansen
dd8e3684e6 Bug 1608839 - Guard against disabling all wasm compilers. r=decoder
If a script is trying to disable a compiler and that is the last compiler enabled, then throw.

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

--HG--
extra : moz-landing-system : lando
2020-01-18 19:03:20 +00:00
tichnas
252995168f Bug 1602048 - Change parameter name of js::LexicalScope::nextFrameSlot. r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D60365

--HG--
extra : moz-landing-system : lando
2020-01-19 17:11:15 +00:00
Sylvestre Ledru
cc2040bf21 Bug 1605934 - Use nested namespaces r=sg
Done with:
./mach static-analysis check --checks="-*, modernize-concat-nested-namespaces" --fix .
and then clang-format on the files

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

--HG--
extra : moz-landing-system : lando
2020-01-18 13:48:34 +00:00
Dorel Luca
506e65bcab Backed out changeset bbb39655cf71 (bug 1605934) for build bustage in widget/gtk/mozwayland/mozwayland.c 2020-01-18 15:39:55 +02:00
Sylvestre Ledru
6689a37527 Bug 1605934 - Use nested namespaces r=sg
Done with:
./mach static-analysis check --checks="-*, modernize-concat-nested-namespaces" --fix .
and then clang-format on the files

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

--HG--
extra : moz-landing-system : lando
2020-01-18 13:16:39 +00:00
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