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

73089 Коммитов

Автор SHA1 Сообщение Дата
Kris Maglione bc437d3e44 Bug 1583400: Make IsCurrentInnerWindow Fission-compatible. r=bzbarsky
IsCurrentInnerWindow() should only return true when we are the current inner
of our BrowsingContext, which has a longer lifetime than individual
GlobalWindowOuter instances. In particular, if our BrowsingContext has no
GlobalWindowOuter hanging off it, that means that currently it's hosting an
inner window from some other process and we are not the current inner. If it
_does_ have a GlobalWindowOuter hanging off it, it's possible that this is not
the same as our mOuterWindow, if the BrowsingContext navigated to a different
site and then navigated back to our site.

Therefore, we need to check that we are the current inner of whatever the
BrowsingContext's current GlobalWindowOuter is, if it has one at all.

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

--HG--
extra : moz-landing-system : lando
2019-10-11 21:53:22 +00:00
André Bargull c5404a4adc Bug 1570370 - Part 9: Move UnicodeExtensionsGenerated.cpp into LanguageTagGenerated.cpp. r=jwalden
Differential Revision: https://phabricator.services.mozilla.com/D40075

--HG--
extra : moz-landing-system : lando
2019-10-11 19:26:33 +00:00
André Bargull b293863ab3 Bug 1570370 - Part 8: Add lookup for static strings to StringBuffer. r=jwalden
StringBuffer directly calls `NewInlineString` for short strings, which prevents
looking up static strings.

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

--HG--
extra : moz-landing-system : lando
2019-10-11 19:26:14 +00:00
André Bargull dd190dd631 Bug 1570370 - Part 7: Remove no longer used JS code generation parts from make_intl_data. r=jwalden
Also removes the "Native"-suffix from function names.

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

--HG--
extra : moz-landing-system : lando
2019-10-11 19:25:49 +00:00
André Bargull f33f8b0f24 Bug 1570370 - Part 6: Switch language tag parser from JS to C++. r=jwalden
Differential Revision: https://phabricator.services.mozilla.com/D40072

--HG--
extra : moz-landing-system : lando
2019-10-11 19:25:32 +00:00
André Bargull 266460feca Bug 1570370 - Part 5: Rename NativeLocale.cpp to Locale.cpp. r=jwalden
Differential Revision: https://phabricator.services.mozilla.com/D40071

--HG--
rename : js/src/builtin/intl/NativeLocale.cpp => js/src/builtin/intl/Locale.cpp
extra : moz-landing-system : lando
2019-10-11 19:25:12 +00:00
André Bargull 56d3b81c51 Bug 1570370 - Part 4: Rename NativeLocaleObject to LocaleObject. r=jwalden
Differential Revision: https://phabricator.services.mozilla.com/D40070

--HG--
extra : moz-landing-system : lando
2019-10-11 20:06:32 +00:00
André Bargull ce36020259 Bug 1570370 - Part 3: Switch Intl.Locale from JS to C++ version. r=jwalden
Differential Revision: https://phabricator.services.mozilla.com/D40069

--HG--
extra : moz-landing-system : lando
2019-10-11 19:24:45 +00:00
André Bargull 46828c7015 Bug 1570370 - Part 2: Port Intl.Locale to C++. r=jwalden
Differential Revision: https://phabricator.services.mozilla.com/D40068

--HG--
extra : moz-landing-system : lando
2019-10-11 19:24:41 +00:00
André Bargull 4a8f76c4de Bug 1570370 - Part 1: Port Unicode BCP 47 locale identifier parser to C++. r=jwalden
Differential Revision: https://phabricator.services.mozilla.com/D40067

--HG--
extra : moz-landing-system : lando
2019-10-11 20:05:43 +00:00
shindli e7b5981fa2 Backed out 2 changesets (bug 1568883, bug 1568249) for causing c1 failures in dom/base/test/chrome/test_cpows.xul CLOSED TREE
Backed out changeset b1a2422a6fa0 (bug 1568249)
Backed out changeset d3f5f69f38a8 (bug 1568883)
2019-10-12 00:07:48 +03:00
Boris Zbarsky 226ca6e774 Bug 1568883. Remove the QI implementation from Web IDL elements. r=peterv,mossop
The XBL test is being removed because it was the only remaining consumer of
xbl's implements="interfacename" in the tree, and was triggering QI on elements
for that codepath.

I've verified that a try run that MOZ_CRASHes when the C++ binding
QueryInterface implementation is invoked is green with these changes.

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

--HG--
extra : moz-landing-system : lando
2019-10-09 09:19:32 +00:00
Sylvestre Ledru d31a8b68f3 Bug 1587905 - Remove useless variable 'bytesAllocated' declaration & assignation r=sfink
Differential Revision: https://phabricator.services.mozilla.com/D48888

--HG--
extra : moz-landing-system : lando
2019-10-11 19:06:41 +00:00
Alok Nikhil fc2f113602 Bug 1585196 - Cleanup LazyScriptCreationData, r=mgaudet
Differential Revision: https://phabricator.services.mozilla.com/D48915

--HG--
extra : moz-landing-system : lando
2019-10-11 15:38:51 +00:00
Tooru Fujisawa 81ce571f23 Bug 1587663 - Add BinASTSymbol and de-templatize HuffmanTable classes. r=Yoric
Differential Revision: https://phabricator.services.mozilla.com/D48793

--HG--
extra : moz-landing-system : lando
2019-10-11 14:42:41 +00:00
Andrew Halberstadt 2b0d90e3ad Bug 1587206 - [lint.flake8] Enable F632 across the tree, r=sylvestre
This ensures we use ==/!= to strings and ints (instead of is/is not).

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

--HG--
extra : moz-landing-system : lando
2019-10-10 18:50:33 +00:00
Lars T Hansen f59dec1a5b Bug 1587050 - Adjust table.copy part 2. r=jseward
Differential Revision: https://phabricator.services.mozilla.com/D48537

--HG--
extra : moz-landing-system : lando
2019-10-11 06:09:26 +00:00
Lars T Hansen 2f8880d0c5 Bug 1587050 - Adjust table.copy part 1. r=jseward
Differential Revision: https://phabricator.services.mozilla.com/D48536

--HG--
extra : moz-landing-system : lando
2019-10-11 06:09:26 +00:00
Tooru Fujisawa a459e854b2 Bug 1587338 - Remove `const BinASTKind kind` parameter from non-sum parser methods. r=Yoric
Differential Revision: https://phabricator.services.mozilla.com/D48662

--HG--
extra : moz-landing-system : lando
2019-10-11 03:48:14 +00:00
Tooru Fujisawa 9ab36a85d7 Bug 1587334 - Remove unused local variable in BinASTTokenReaderContext::readStringPrelude. r=Yoric
Differential Revision: https://phabricator.services.mozilla.com/D48655

--HG--
extra : moz-landing-system : lando
2019-10-11 03:48:12 +00:00
Tooru Fujisawa 490add935c Bug 1587238 - Remove BinASTTokenReaderContext::variantsTable_ and FlatHuffmanKey. r=Yoric
Differential Revision: https://phabricator.services.mozilla.com/D48653

--HG--
extra : moz-landing-system : lando
2019-10-11 03:47:00 +00:00
Tooru Fujisawa 712cf567f2 Bug 1586977 - Remove MapBasedHuffmanTable. r=Yoric
Differential Revision: https://phabricator.services.mozilla.com/D48652

--HG--
extra : moz-landing-system : lando
2019-10-11 03:46:36 +00:00
Tooru Fujisawa a1c0a017c1 Bug 1587245 - Add trailing underscore to member field of BinASTTokenReaderContext related classes. r=Yoric
Differential Revision: https://phabricator.services.mozilla.com/D48630

--HG--
extra : moz-landing-system : lando
2019-10-11 03:46:19 +00:00
Tooru Fujisawa cce326db03 Bug 1586971 - Add SingleEntryHuffmanTable. r=Yoric
Differential Revision: https://phabricator.services.mozilla.com/D48473

--HG--
extra : moz-landing-system : lando
2019-10-11 03:45:59 +00:00
Adam Holm 71af6eb79b Bug 1584758 - Use BytecodeLocation and BytecodeIterator in IonBuilder::analyzeNewLoopTypes. r=mgaudet
Replaced uses of `jsbytecode*` and `pcToOffset` in `IonBuilder::analyzeNewLoopTypes` with bytecode abstraction classes
`BytecodeLocation` and `BytecodeIterator`.

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

--HG--
extra : moz-landing-system : lando
2019-10-11 00:43:30 +00:00
Adam Holm e5eee2cbe0 Bug 1584758 - Implementing BytecodeLocationRange iterator. r=mgaudet
Adding `BytecodeLocationRange` iterator to `BytecodeIterator` class. Can provide beginning and end bytecode locations to this class, and then iterate over all bytecode locations in that range.

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

--HG--
extra : moz-landing-system : lando
2019-10-11 00:43:31 +00:00
Paul Bone c5693a970a Bug 1584181 - Evict the nursery before entering zeal mode r=jonco
Entering generational zeal mode can reduce the nursery size which causes
this assertion failure when the maximum size becomes smaller than the
current size.

This patch evicts the nursery before entering generational zeal mode.

Note that we already do this when leaving generational zeal mode.  The
assumption was that zeal mode is at least as large as any normal
configuration.

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

--HG--
extra : moz-landing-system : lando
2019-10-10 09:43:08 +00:00
Ted Campbell 6ca3ab075b Bug 1587950 - Use HasInnerFunctions flag for LazyScript. r=mgaudet
Differential Revision: https://phabricator.services.mozilla.com/D48904

--HG--
extra : moz-landing-system : lando
2019-10-10 23:18:56 +00:00
Ted Campbell af2451e030 Bug 1587943 - JSFunction should not be lazy without a LazyScript. r=mgaudet
We disallow marking JSFunctions as INTERPRETED_LAZY until we have a real
LazyScript to bind to them. Partially initialized scripted functions
remain INTERPRETED but their script pointer may be null. This patch
clears up rough edges around this behaviour but semantics should largely
be unchanged.

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

--HG--
extra : moz-landing-system : lando
2019-10-10 23:18:56 +00:00
Alok Nikhil 7a99922a90 Bug 1586439 - Use BytecodeLocation and BytecodeIterator in js::GetPredecessorBytecodes, r=mgaudet
Differential Revision: https://phabricator.services.mozilla.com/D48479

--HG--
extra : moz-landing-system : lando
2019-10-10 16:30:38 +00:00
Oana Pop Rus 621b6d5c63 Backed out 2 changesets (bug 1584758) for build bustages /builds/worker/workspace/build/src/js/src/vm/BytecodeLocation.h on a CLOSED TREE
Backed out changeset a693df77606e (bug 1584758)
Backed out changeset 9737b534c68f (bug 1584758)
2019-10-10 22:57:49 +03:00
Adam Holm 00108aa19b Bug 1584758 - Use BytecodeLocation and BytecodeIterator in IonBuilder::analyzeNewLoopTypes. r=mgaudet
Replaced uses of `jsbytecode*` and `pcToOffset` in `IonBuilder::analyzeNewLoopTypes` with bytecode abstraction classes
`BytecodeLocation` and `BytecodeIterator`.

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

--HG--
extra : moz-landing-system : lando
2019-10-09 20:04:57 +00:00
Adam Holm 8056109fad Bug 1584758 - Implementing BytecodeLocationRange iterator. r=mgaudet
Adding `BytecodeLocationRange` iterator to `BytecodeIterator` class. Can provide beginning and end bytecode locations to this class, and then iterate over all bytecode locations in that range.

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

--HG--
extra : moz-landing-system : lando
2019-10-09 20:02:31 +00:00
Matthew Gaudet 736db2381b Bug 1562146 - Handle zero-length spans in ScriptSource::substring r=jorendorff
Differential Revision: https://phabricator.services.mozilla.com/D46617

--HG--
extra : moz-landing-system : lando
2019-10-10 16:32:20 +00:00
Ehsan Akhgari 8d1f83f075 Bug 1587806 - Remove Document.loadBindingDocument; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D48849

--HG--
extra : moz-landing-system : lando
2019-10-10 14:21:28 +00:00
Lars T Hansen 40b73e3661 Bug 1586252 - Adapt to spec change for src/dest idx for table.copy/memory.copy. r=rhunt
Because implementations were not in agreement about this and the spec
informally called for src-before-dest, the spec was changed to
correspond to the dynamic and canonical operand order:
dest-before-src.  So we adapt to this.

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

--HG--
extra : moz-landing-system : lando
2019-10-09 13:44:55 +00:00
Alok Nikhil 7b15e6f065 Bug 1586440 - Use BytecodeLocation and BytecodeIterator in js::jit::AnalyzeBytecodeForIon, r=mgaudet
Differential Revision: https://phabricator.services.mozilla.com/D48301

--HG--
extra : moz-landing-system : lando
2019-10-10 00:02:36 +00:00
Kris Maglione 3dfef17d14 Bug 1587580 - Use the actual source filename and line number for SpecialPowers.spawn callback. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D48758

--HG--
extra : moz-landing-system : lando
2019-10-09 21:05:46 +00:00
Gurzau Raul 197f5544a3 Backed out changeset cc3b04156828 (bug 1562146) for SM build bustage at bug1562146.js on a CLOSED TREE. 2019-10-09 22:11:22 +03:00
Matthew Gaudet e621c66d0b Bug 1562146 - Handle zero-length spans in ScriptSource::substring r=jorendorff
Differential Revision: https://phabricator.services.mozilla.com/D46617

--HG--
extra : moz-landing-system : lando
2019-10-09 18:22:48 +00:00
Dave Townsend 1c67b00d98 Bug 1586216: Fallback to a synchronous channel load if the url preloader cannot load the ftl file. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D48726

--HG--
extra : moz-landing-system : lando
2019-10-09 17:50:33 +00:00
Adam Holm 537692356a Bug 1573062 - Use BytecodeLocation and BytecodeIterator in JitScript::printTypes. r=mgaudet
Replaced uses of `jsbytecode*` and `pcToOffset` with the bytecode
interface classes `BytecodeLocation` and `BytecodeIterator`.

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

--HG--
extra : moz-landing-system : lando
2019-10-09 16:55:24 +00:00
Jon Coppeard e37654c85a Bug 1572006 - Make js::gc::Statistics work in terms of GCRuntime rather than JSRuntime r=allstarschh
Differential Revision: https://phabricator.services.mozilla.com/D48547

--HG--
extra : moz-landing-system : lando
2019-10-09 11:43:20 +00:00
Jon Coppeard e6fefc3181 Bug 1572006 - Make GCParallelTask work in terms of GCRuntime rather than JSRuntime r=allstarschh
Differential Revision: https://phabricator.services.mozilla.com/D48546

--HG--
extra : moz-landing-system : lando
2019-10-09 11:41:47 +00:00
Jon Coppeard 630fe04ebb Bug 1572006 - Make GC iterators with in terms of GCRuntime rather than JSRuntime r=allstarschh
Differential Revision: https://phabricator.services.mozilla.com/D48545

--HG--
extra : moz-landing-system : lando
2019-10-09 11:41:32 +00:00
Emilio Cobos Álvarez ab7a52626a Bug 1587368 - Stop using -oldsyn bindgen version now that we pull newer syn and proc_macro versions anyway.
MANUAL PUSH: Cherry-picking upstream stuff, with reviewers that are not on phabricator.
2019-10-09 13:42:36 +02:00
Jon Coppeard 89ee604716 Bug 1585921 - Remove GCPtrHasher which is invalid, and replace with HeapPtrHasher r=sfink
Differential Revision: https://phabricator.services.mozilla.com/D48544

--HG--
extra : moz-landing-system : lando
2019-10-09 10:30:02 +00:00
Jon Coppeard f88eca81a5 Bug 1585921 - Use root marking functions to trace unbarriered pointers in GCPolicy traits since this is only safe when we're marking roots r=sfink
The root marking functions have assertions that will catch this being used outside of heap marking.

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

--HG--
extra : moz-landing-system : lando
2019-10-09 10:30:02 +00:00
Jon Coppeard f5b3722028 Bug 1585921 - Remove unnecessary static trace methods which are never called r=sfink
GCPolicy<T> calls the instance method for these types so these static methods aren't required.

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

--HG--
extra : moz-landing-system : lando
2019-10-09 10:27:15 +00:00
Jan de Mooij 09a15f9e11 Bug 1571446 follow-up - Don't use std::min to avoid weird linker errors in no-opt debug builds. CLOSED TREE
Differential Revision: https://phabricator.services.mozilla.com//D48671

--HG--
extra : histedit_source : 145ca6ac1d74e30c00c0a292f70be110bc154137
2019-10-09 13:16:24 +03:00