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

69244 Коммитов

Автор SHA1 Сообщение Дата
Jan de Mooij 6b8698ce2d Bug 1526588 - Fix some issues with js::GetFirstGlobalInCompartment and XPCWrappedNativeScope::UpdateWeakPointersInAllScopesAfterGC. r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D19493

--HG--
extra : moz-landing-system : lando
2019-02-13 06:41:44 +00:00
Logan Smyth e962578670 Bug 1518661 - Part 3: Adjust call-expression positions. r=jimb,jorendorff
When we mark call expressions as breakpoints, we want to make it as likely
as possible that the call has its own unique positon. The existing logic
means that it is more likely that the beginning of a call will align
with the start of an expression statement or other debuggable step point.
By using the property-access location, we're less likely to collide.

Thid also adds a new bytecodes that were missed in the original code that
added this position handling logic.

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

--HG--
extra : moz-landing-system : lando
2019-02-13 02:55:21 +00:00
Logan Smyth a84a4fb897 Bug 1518661 - Part 1: Pass PropertyName* directly instead of creating ID. r=jimb,jorendorff
This is just a bit of cleanup I'd noticed while writing new implementations of these.

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

--HG--
extra : moz-landing-system : lando
2019-02-13 02:54:57 +00:00
Razvan Maries dcc3ecb682 Merge mozilla-central to autoland. a=merge on a CLOSED TREE 2019-02-13 07:23:59 +02:00
Andreea Pavel e754faad17 Backed out 3 changesets (bug 1518661) for failing test_promise_rejections_from_jsimplemented.html
Backed out changeset d381785b0c4c (bug 1518661)
Backed out changeset 4a8b38e5373b (bug 1518661)
Backed out changeset 64ebb085a6b3 (bug 1518661)

--HG--
extra : rebase_source : 7e4c5c4cd0b2ea9e48238e6083fdfc01b3f9bd16
2019-02-13 04:27:22 +02:00
Robin Templeton 1f7be18a3c Bug 1527482 - Check for BigInts in ValueToSourceForError r=arai
Differential Revision: https://phabricator.services.mozilla.com/D19590

--HG--
extra : moz-landing-system : lando
2019-02-12 23:21:53 +00:00
Logan Smyth 2efd56750c Bug 1518661 - Part 3: Adjust call-expression positions. r=jimb,jorendorff
When we mark call expressions as breakpoints, we want to make it as likely
as possible that the call has its own unique positon. The existing logic
means that it is more likely that the beginning of a call will align
with the start of an expression statement or other debuggable step point.
By using the property-access location, we're less likely to collide.

Thid also adds a new bytecodes that were missed in the original code that
added this position handling logic.

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

--HG--
extra : moz-landing-system : lando
2019-02-12 23:46:27 +00:00
Logan Smyth 0fc26dd98e Bug 1518661 - Part 1: Pass PropertyName* directly instead of creating ID. r=jimb,jorendorff
This is just a bit of cleanup I'd noticed while writing new implementations of these.

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

--HG--
extra : moz-landing-system : lando
2019-02-12 23:45:18 +00:00
Sean Stangl c82dda2439 Bug 1523015 - Summary: Enable Ion on ARM64, but disable in-browser by pref. r=nbp
Differential Revision: https://phabricator.services.mozilla.com/D19448

--HG--
extra : moz-landing-system : lando
2019-02-12 22:50:27 +00:00
Andy Wingo 3179147c0e Bug 1527155 - Uniformly signal OOM if StringToBigInt result too large r=jwalden,terpri
Differential Revision: https://phabricator.services.mozilla.com/D19468

--HG--
extra : moz-landing-system : lando
2019-02-12 17:05:04 +00:00
David Major e68d42b99d Bug 1525416 - Teach libffi/src/closures.c about ARM64_WIN64 r=froydnj
I added ARM64_WIN64 to every line that mentioned X86_WIN32 and X86_WIN64.

This makes sure the allocation routines do the proper VirtualProtect on the trampolines.

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

--HG--
extra : moz-landing-system : lando
2019-02-12 21:44:46 +00:00
Andreea Pavel 75e2827f6a Backed out changeset 1b9f4cb229fa (bug 1523015) arm64 bustages 2019-02-12 23:26:09 +02:00
Sean Stangl 3f2e7fbb67 Bug 1523015 - Summary: Enable Ion on ARM64, but disable in-browser by pref. r=nbp
Differential Revision: https://phabricator.services.mozilla.com/D19448

--HG--
extra : moz-landing-system : lando
2019-02-12 13:02:01 +00:00
Andy Wingo 0f6dea9684 Bug 1526840 - Adapt ToBoolean Ion type inference for false BigInt values r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D19477

--HG--
extra : moz-landing-system : lando
2019-02-12 15:49:54 +00:00
Jonathan Kingston 3421b8fcff Bug 1520868 - Replacing AsyncOpen2 with AsyncOpen always r=valentin
Replacing js and text occurences of asyncOpen2
Replacing open2 with open

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

--HG--
rename : layout/style/test/test_asyncopen2.html => layout/style/test/test_asyncopen.html
extra : moz-landing-system : lando
2019-02-12 16:08:25 +00:00
Lars T Hansen 8ddcdf2399 Bug 1526579 - Rabaldr arm64 stack alignment fix. r=bbouvier
Problem: When a stack chunk had to be popped as part of a control flow
instruction, the amount to pop was not always computed as a multiple
of ChunkSize.  The reason is that the fixed amount of stack that
should not be popped isn't necessarily a multiple of ChunkSize, yet
this was assumed.

A small adjustment to the calculation fixes that.

Also added an assertion that would have caught this problem more
easily.

Also did some desirable drive-by fixes to clarify documentation and to
factor the resulting code.

The TC sets up a situation where we require a chunk to be created and
then destroyed in the 'else' arm of the 'if', at the same time as the
fixed amount of stack is not a multiple of ChunkSize.

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

--HG--
extra : rebase_source : 08e8bde715995babd535d73c691335be9fef983a
2019-02-12 10:39:23 +01:00
Paul Bignier e410929cbc bug 1245108 - Fixed uninitialized variables warnings in js/ r=luke 2019-02-12 18:29:39 +01:00
Coroiu Cristina e6104a10ba Merge mozilla-central to inbound a=merge on a CLOSED TREE 2019-02-12 18:36:58 +02:00
Luke Wagner ba4477e0c7 Bug 1401675 - Baldr: factor out OpIter::checkIsSubtype() (r=lth)
--HG--
extra : rebase_source : 55edcecdf3358664bd07b10cd26af9fbd9252fa5
2019-02-12 09:42:55 -06:00
Luke Wagner 7acdfe6c73 Bug 1401675 - Baldr: use Pair to optimize out empty values instead of specialization (r=lth)
--HG--
extra : rebase_source : b571d71a2d386f0736efd837038791e156b0f91a
2019-02-12 09:39:05 -06:00
Luke Wagner 9961263e94 Bug 1401675 - Baldr: factor out Decoder::readValType() (r=lth)
--HG--
extra : rebase_source : 23365590c86d8801a55af865e03b3f5590b79443
2019-02-12 09:37:48 -06:00
Luke Wagner d714b634da Bug 1520931 - Fix EXIT_FAILURE typos in JS shell main() (r=me)
--HG--
extra : rebase_source : 57abffa26181867bb6585e0e15ea3dd049428b46
2019-02-12 09:33:51 -06:00
André Bargull 927d20aab8 Bug 1523791: Set "name" property as part of ClassDefinitionEvaluation. r=jorendorff 2019-02-12 05:10:11 -08:00
Bogdan Tara 0908d27514 Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-02-12 07:27:04 +02:00
Bogdan Tara 87a0b11003 Merge inbound to mozilla-central. a=merge 2019-02-12 07:25:23 +02:00
Paul Bone c61e524554 Bug 1526858 - Rename needIdleTimeCollection() r=sfink
Rename this method and use it a little more generally.

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

--HG--
extra : moz-landing-system : lando
2019-02-11 16:52:53 +00:00
Csoregi Natalia 5d10478fe1 Backed out 3 changesets (bug 1518661) for failures on dom/bindings/test/test_exception_options_from_jsimplemented.html. CLOSED TREE
Backed out changeset aeaa74707320 (bug 1518661)
Backed out changeset 12df8c46ef78 (bug 1518661)
Backed out changeset a4ff0bd9ff80 (bug 1518661)
2019-02-12 06:25:57 +02:00
Logan Smyth 1677d55556 Bug 1518661 - Part 3: Adjust call-expression positions. r=jimb,jorendorff
When we mark call expressions as breakpoints, we want to make it as likely
as possible that the call has its own unique positon. The existing logic
means that it is more likely that the beginning of a call will align
with the start of an expression statement or other debuggable step point.
By using the property-access location, we're less likely to collide.

Thid also adds a new bytecodes that were missed in the original code that
added this position handling logic.

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

--HG--
extra : moz-landing-system : lando
2019-02-12 01:28:27 +00:00
Logan Smyth bad4488ed3 Bug 1518661 - Part 1: Pass PropertyName* directly instead of creating ID. r=jimb,jorendorff
This is just a bit of cleanup I'd noticed while writing new implementations of these.

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

--HG--
extra : moz-landing-system : lando
2019-02-12 01:27:22 +00:00
Robin Templeton 7fa3608ebd Bug 1526838 - Fix TypedArray value conversion for BigInts r=jwalden
Differential Revision: https://phabricator.services.mozilla.com/D19456

--HG--
extra : moz-landing-system : lando
2019-02-12 02:36:34 +00:00
Boris Zbarsky 5a9a821d67 Bug 1526624 followup. Fix clang-format issues in WrapperFactory. r=me 2019-02-11 16:58:23 -05:00
Bogdan Tara 2c0ee18d6e Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-02-11 23:59:48 +02:00
Bogdan Tara 12bbbc3d51 Merge inbound to mozilla-central. a=merge 2019-02-11 23:55:15 +02:00
Boris Zbarsky bc348929b6 Bug 1515582. Remove the separate XBL scope setup. r=bholley
With these changes, XBL just runs in the window scope of whatever document it's
attached to.  Since (outside of tests and "remote XUL") we no longer attach XBL
to web documents, this is fine.  And "remote XUL" already ran without the XBL
scope.

Native anonymous content, which used to be placed in the XBL scope to hide it
from the page, is now placed in the unprivileged junk scope, so it stays hidden
from the page.

dom/xbl/test/test_bug944407.xul is being removed because we are changing the
behavior it's trying to test for.  Since we now always put the XBL in the same
scope as the page, script is enabled for the XBL if and only if it's enabled for
the page.

dom/base/test/test_bug419527.xhtml, dom/events/test/test_bug391568.xhtml,
dom/xbl/test/test_bug1086996.xhtml are being switched to a chrome test because
otherwise the XBL can't see the getAnonymousNodes method.

All the XBL bits are being removed from test_interfaces because we no longer
have a separate XBL scope to test the behavior of.

js/xpconnect/tests/mochitest/test_nac.xhtml is being removed because XBL no
longer has access to NAC unless the page it's attached to does too, so the test
doesn't really make sense.

layout/xul/test/test_bug1197913.xul is being switched to a chrome test because
its XUL elements use bindings that rely on APIs that are not exposed to normal
web content.

layout/reftests/bugs/495385-2f.xhtml is being removed because I can't think of
a sane way to test that in the new world, short of running the reftest as
chrome.  And it doesn't seem worthwhile to look for a way to do that.

dom/xbl/test/test_bug1098628_throw_from_construct.xhtml now needs to
expectUncaughtException(), because the exception is now being thrown in Window
scope.

dom/xbl/test/test_bug1359859.xhtml needs to expectUncaughtException() as needed
and not use XPCNativeWrapper (which it doesn't need to anyway now).

dom/xbl/test/test_bug389322.xhtml, dom/xbl/test/test_bug400705.xhtml,
dom/xbl/test/test_bug401907.xhtml, dom/xbl/test/test_bug403162.xhtml,
dom/xbl/test/test_bug526178.xhtml, dom/xbl/test/test_bug639338.xhtml don't need
to use XPCNativeWrapper anymore.

dom/xbl/test/test_bug821850.html is being removed because it exists only to test XBL scopes.

dom/xbl/test/file_bug950909.xml is being changed to work without a separate XBL
scope (though whether the test still makes sense at that point is a bit questionable).

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

--HG--
extra : moz-landing-system : lando
2019-02-11 21:51:47 +00:00
Boris Zbarsky d2adb96413 Bug 1526624. Fix Xray waivers to deal with multiple globals per compartment. r=bholley
In the new setup, they are still same-compartment with their target, but may
not be same-realm (due to transplants).

We could make them be same-realm by adjusting FixWaiverAfterTransplant, but
this is conceptually simpler.

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

--HG--
extra : moz-landing-system : lando
2019-02-11 21:07:45 +00:00
Luke Wagner b24f045f07 Bug 1520931 - Remove unused import from jit_tests.py (r=me) 2019-02-11 12:06:00 -06:00
Luke Wagner 00b06e5cf6 Bug 1520931 - Remove nestedShell() testing function (r=bbouvier)
--HG--
extra : rebase_source : f50c0402b5db46cd10c92806ce192293551ad162
2019-02-11 11:43:00 -06:00
Luke Wagner fc9dea6cc7 Bug 1520931 - Remove asm.js cache hooks JS API (r=bbouvier)
--HG--
extra : rebase_source : aac95865af1b87970d49b89edbec0acad6c74219
2019-02-11 11:41:57 -06:00
Ted Campbell afa4710312 Bug 1525924 - Part 9: Reorder steps of XDRScript r=jandem
This makes XDRScript better follow the field layout of JSScript.

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

--HG--
extra : moz-landing-system : lando
2019-02-11 14:55:19 +00:00
Ted Campbell 7ba8ad622f Bug 1525924 - Part 8: Move allocation into ScriptSource::XDR r=jandem
This moves the allocation of the ScriptSource object into
ScriptSource::XDR instead of being done in the caller. A
MutableHandle<ScriptSourceHolder> is used to manage both
ScriptSource::refCount as well as tracing Atoms from BinAST.

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

--HG--
extra : moz-landing-system : lando
2019-02-11 14:55:09 +00:00
Ted Campbell f821e00b29 Bug 1525924 - Part 7: Make ScriptSource::performXDR a static method r=jandem
Make the method static so that in a follow-up the allocation of the
object can be absorbed in the method.

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

--HG--
extra : moz-landing-system : lando
2019-02-11 14:55:05 +00:00
Ted Campbell c1c0f3b30e Bug 1525924 - Part 6: Factor out PrivateScriptData::XDR r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D19010

--HG--
extra : moz-landing-system : lando
2019-02-11 14:54:59 +00:00
Ted Campbell 6825c8fe68 Bug 1525924 - Part 5: Factor out js::XDRInnerObject r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D19009

--HG--
extra : moz-landing-system : lando
2019-02-11 14:54:49 +00:00
Ted Campbell 85d6e41560 Bug 1525924 - Part 4: Factor out js::XDRScope r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D19008

--HG--
extra : moz-landing-system : lando
2019-02-11 14:57:21 +00:00
Ted Campbell 23e6311c1d Bug 1525924 - Part 3: Factor out JSTryNote/ScopeNote::XDR r=jandem
Also change JSTryNote::kind to uint32_t to absorb alignment padding of
structure.

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

--HG--
extra : moz-landing-system : lando
2019-02-11 14:54:36 +00:00
Ted Campbell 54e18182d2 Bug 1525924 - Part 2: Factor out WithScope::XDR r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D19006

--HG--
extra : moz-landing-system : lando
2019-02-11 14:54:32 +00:00
Ted Campbell b217fadccd Bug 1525924 - Part 1: Factor out SharedScriptData::XDR r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D19005

--HG--
extra : moz-landing-system : lando
2019-02-11 14:55:17 +00:00
Ted Campbell 3639d364a2 Bug 1525505 - Pass source extents to JSScript constructor in XDRScript r=jandem
There is no existing bug, but passing correct values to constructor is
more predictable for future.

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

--HG--
extra : moz-landing-system : lando
2019-02-11 14:54:20 +00:00
Ted Campbell 77de5ed9e7 Bug 1525505 - XDR ScriptSource before Script r=jandem
This ensures the script source is properly ininitialized before calling
JSScript::Create. This fixes issues with LCov when the script comes from
an XDR-based cache.

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

--HG--
extra : moz-landing-system : lando
2019-02-11 14:54:11 +00:00
Ted Campbell 61e61f073f Bug 1525505 - Fix bug in XDRState::codeCString r=jandem,nbp
Sanity check was reading out-of-range value. This caused more XDR decode
failures than expected, but non-cache load would recover anyways. With
fix, a few more cases will support XDR caching.

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

--HG--
extra : moz-landing-system : lando
2019-02-11 14:54:02 +00:00