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

74740 Коммитов

Автор SHA1 Сообщение Дата
Yoshi Cheng-Hao Huang b4e01399cf Bug 1603330 - Update test to prevent JIT keeps the retval of wr.deref(). r=jonco
Move allocation into a function call can prevent JIT keeps the return
value of weakRef.deref().

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

--HG--
extra : moz-landing-system : lando
2020-01-23 14:15:51 +00:00
Yoshi Cheng-Hao Huang 89dee44acc Bug 1604829 - Increment mark count only when the cell is marked. r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D60832

--HG--
extra : moz-landing-system : lando
2020-01-23 13:20:40 +00:00
Edgar Chen 57d1c9d779 Bug 1575425 - Part 3: Add support for [AllowShared]; r=bzbarsky,jwalden
Differential Revision: https://phabricator.services.mozilla.com/D59999

--HG--
extra : moz-landing-system : lando
2020-01-23 14:18:53 +00:00
Edgar Chen 7572e4a211 Bug 1575425 - Part 2: Merge ArrayBuffer and SharedArrayBuffer in DOM binding; r=bzbarsky,jwalden
We need this for upcoming change which supports having [AllowShared] on
ArrayBuffer type in WebIDL.

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

--HG--
extra : moz-landing-system : lando
2020-01-23 13:48:02 +00:00
Tom Schuster 4405f2cf4f Bug 1606084 - Add support for Boolean, String, Number and Date objects to ValueToSource. r=jwalden
Differential Revision: https://phabricator.services.mozilla.com/D60373

--HG--
extra : moz-landing-system : lando
2020-01-23 11:23:42 +00:00
Tom Schuster b464660235 Bug 1606084 - ValueToSource should be able to handle wrapped objects. r=jwalden
Differential Revision: https://phabricator.services.mozilla.com/D60312

--HG--
extra : moz-landing-system : lando
2020-01-23 11:23:42 +00:00
Jon Coppeard 01a0045b12 Bug 1609402 - Improve flakey test that relied on being able to allocate 1MB of GC things in under 5 seconds r=sfink
Tests that involve timing are often problematic.  Here we're checking that hitting the heap limit inside the five second time limit we set for skipping last ditch GCs doesn't trigger a GC, but allocating enough to hit this limit can take longer than five seconds on a busy system.

The patch makes the max heap size much smaller and so reduces the possibility that that this can happen.

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

--HG--
extra : moz-landing-system : lando
2020-01-22 18:09:56 +00:00
Jon Coppeard 88755e5612 Bug 1610802 - Add test code for SparseBitmap r=sfink
Differential Revision: https://phabricator.services.mozilla.com/D60246

--HG--
extra : moz-landing-system : lando
2020-01-22 18:15:58 +00:00
caroline c4fb2ca61c Bug 1609504 - Add parseInfo to sharedContext. r=mgaudet
Differential Revision: https://phabricator.services.mozilla.com/D60334

--HG--
extra : moz-landing-system : lando
2020-01-22 19:48:55 +00:00
Eric Rahm 1eef62fbd1 Bug 1610387 - Remove nsAutoPtr usage from js/xpconnect/. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D60638

--HG--
extra : moz-landing-system : lando
2020-01-22 20:27:41 +00:00
Yoshi Cheng-Hao Huang 10b18ed113 Bug 1610621 : ClearKeptObjects() should return undefined. r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D60633

--HG--
extra : moz-landing-system : lando
2020-01-22 11:03:20 +00:00
Jan de Mooij d7c2f70e62 Bug 1607670 part 6 - Add tests. r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D59508

--HG--
extra : moz-landing-system : lando
2020-01-21 23:54:13 +00:00
Jan de Mooij 6184fcabd8 Bug 1607670 part 5 - Fix some issues with this-creation in Ion. r=tcampbell,anba
In particular, we can't do effectful .prototype lookups in CreateThisFromIon and
elsewhere before the call instruction. This patch returns NullValue from
CreateThisFromIon in that case and changes LCallGeneric to take the slow
invoke path when it sees this value.

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

--HG--
extra : moz-landing-system : lando
2020-01-22 14:05:28 +00:00
Jan de Mooij 68efc7a5af Bug 1607670 part 4 - Add JSFunction::constructorNeedsUninitializedThis helper function and some asserts. r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D59506

--HG--
extra : moz-landing-system : lando
2020-01-21 14:18:13 +00:00
Jan de Mooij 3b4f46a28e Bug 1607670 part 3 - Split jit::CreateThis in CreateThisFromIC and CreateThisFromIon. r=tcampbell
The callers are very different and have different constraints, especially in
later patches in this stack.

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

--HG--
extra : moz-landing-system : lando
2020-01-21 14:17:31 +00:00
Jan de Mooij 817caff0d6 Bug 1607670 part 2 - Remove calleeScript argument from js::CreateThis. r=tcampbell
We can call isDerivedClassConstructor() on the function instead.

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

--HG--
extra : moz-landing-system : lando
2020-01-21 14:16:51 +00:00
Jan de Mooij 742be26ab4 Bug 1607670 part 1 - Remove unnecessary isConstructor check from IonBuilder::createThis. r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D59502

--HG--
extra : moz-landing-system : lando
2020-01-21 14:16:13 +00:00
Jon Coppeard 448ebaa6f3 Bug 1607444 - Only collect the self hosting zone once at runtime initialization r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D60153

--HG--
extra : moz-landing-system : lando
2020-01-22 11:22:02 +00:00
Narcis Beleuzu cb54b0227b Backed out 5 changesets (bug 1605566) for wpt failures on shared.html . CLOSED TREE
Backed out changeset 622939cef438 (bug 1605566)
Backed out changeset ab98304e6c84 (bug 1605566)
Backed out changeset 7eab8fd2b62e (bug 1605566)
Backed out changeset 99f61f25ed86 (bug 1605566)
Backed out changeset 77bdf4f86052 (bug 1605566)
2020-01-22 12:58:13 +02:00
Andrea Marchesini 14b6fd8572 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-22 09:32:48 +00:00
Andrea Marchesini f27a63df82 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-22 09:32:23 +00:00
Chris Fallin 4192db83c2 Bug 1610192: Remove unneeded array-index in ObjLiteral array mode. r=mgaudet
The ObjLiteral format allows for names (as atom indices) or numeric
indices to be attached to each property in the literal. The numeric case
is limited to 23 bits by the packed format in memory.

The object-literal case ({}-literal with some numeric indices) already
checks for in-range values before deciding to use the ObjLiteral
infrastructure, but the array case did not check this.

Fortunately, the indices in the array case were only used as a sanity
check for debug-mode assertions, and never for any actual indexing
operation, so no out-of-bounds behavior could result, even before this
fix. However, the sanity-check assert will fire at
object-construction-from-ObjLiteral time in cases where the ObjLiteral
mode should not have been used, because no range check was done at
ObjLiteral-construction time.

This change removes the use of indices for array-mode ObjLiterals
entirely.

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

--HG--
extra : moz-landing-system : lando
2020-01-21 21:58:46 +00:00
Emilio Cobos Álvarez 8a7906f381 Bug 1610064 - Avoid including StyleSheet.h from Document.h. r=nordzilla,firefox-style-system-reviewers
This in turn requires fixing various other include hell / missing include
issues.

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

--HG--
extra : moz-landing-system : lando
2020-01-21 20:31:05 +00:00
Mihai Alexandru Michis 6c896736ce Backed out changeset 5ea36d82a283 (bug 1610192) for causing SM bustages in bug1610192.js
CLOSED TREE

--HG--
extra : histedit_source : c0fb8a69547fc8a0a831313881bed5f419197c9c
2020-01-21 21:11:43 +02:00
Mihai Alexandru Michis 4bb21390cf Backed out changeset d389e3aa4522 (bug 1424934) as requested by jonco:
CLOSED TREE

--HG--
extra : amend_source : 3411395770db4580f2600d7a2afefad59ab0ddfb
extra : histedit_source : 440305ec824270948467cb49c08ff0fe7ff02951
2020-01-21 20:40:41 +02:00
Mihai Alexandru Michis 8501aaf6a6 Backed out changeset dbd45b7bb449 (bug 1609054) as requested by jonco:
CLOSED TREE

--HG--
extra : histedit_source : b9fd52fc5b244076c183ae46cc36fd837b8b9e8d
2020-01-21 20:39:38 +02:00
Chris Fallin 43a08cb2c0 Bug 1610192: Remove unneeded array-index in ObjLiteral array mode. r=mgaudet
The ObjLiteral format allows for names (as atom indices) or numeric
indices to be attached to each property in the literal. The numeric case
is limited to 23 bits by the packed format in memory.

The object-literal case ({}-literal with some numeric indices) already
checks for in-range values before deciding to use the ObjLiteral
infrastructure, but the array case did not check this.

Fortunately, the indices in the array case were only used as a sanity
check for debug-mode assertions, and never for any actual indexing
operation, so no out-of-bounds behavior could result, even before this
fix. However, the sanity-check assert will fire at
object-construction-from-ObjLiteral time in cases where the ObjLiteral
mode should not have been used, because no range check was done at
ObjLiteral-construction time.

This change removes the use of indices for array-mode ObjLiterals
entirely.

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

--HG--
extra : moz-landing-system : lando
2020-01-21 18:05:22 +00:00
Matthew Gaudet af08f70624 Bug 1610340 - Remove dead Scope::create methods r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D60461

--HG--
extra : moz-landing-system : lando
2020-01-21 18:02:38 +00:00
Matthew Gaudet 2146b82ef4 Bug 1610340 - Remove deferred allocation switch r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D60452

--HG--
extra : moz-landing-system : lando
2020-01-21 18:02:17 +00:00
Matthew Gaudet 4787274b35 Bug 1610340 - Always track Function tree r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D60451

--HG--
extra : moz-landing-system : lando
2020-01-21 18:01:44 +00:00
Matthew Gaudet 7485c8dd75 Bug 1610340 - Rename remaining use of internBodyScope and simplify to better reflect usage r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D60449

--HG--
extra : moz-landing-system : lando
2020-01-21 17:02:26 +00:00
Matthew Gaudet 6e131ff1b0 Bug 1610340 - Always defer allocation of Scopes r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D60448

--HG--
extra : moz-landing-system : lando
2020-01-21 17:02:08 +00:00
Matthew Gaudet 92addc057f Bug 1610340 - Always defer the allocation of LazyScript r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D60447

--HG--
extra : moz-landing-system : lando
2020-01-21 17:01:47 +00:00
Matthew Gaudet 8b9934a880 Bug 1610340 - Always defer allocation of RegExp objects r=tcampbell
Outside of BinAST, which holds onto the eager path for now.

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

--HG--
extra : moz-landing-system : lando
2020-01-21 17:01:27 +00:00
Matthew Gaudet 6c32941ab0 Bug 1610340 - Don't allocate functions when creating FunctionBoxes from a FunctionCreationData r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D60445

--HG--
extra : moz-landing-system : lando
2020-01-21 17:01:09 +00:00
Matthew Gaudet 34a52301a6 Bug 1610340 - Always defer allocation of BigInts r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D60444

--HG--
extra : moz-landing-system : lando
2020-01-21 17:00:58 +00:00
yulia 2d3f3c73c5 Bug 1610447 - Update Reflect.parse for OptionalChain; r=arai
Differential Revision: https://phabricator.services.mozilla.com/D60490

--HG--
extra : moz-landing-system : lando
2020-01-21 15:58:12 +00:00
Sylvestre Ledru 187e9bafaf Bug 1519636 - Automatically reformat recent changes using clang-format r=Ehsan
# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2020-01-21 09:51:27 +00:00
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