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

68663 Коммитов

Автор SHA1 Сообщение Дата
Csoregi Natalia 4a86022f41 Merge mozilla-central to autoland. CLOSED TREE 2019-01-14 19:19:46 +02:00
Jon Coppeard f784804b9a Bug 1519405 - Add enums for flags passed to Zone::discardJitCode() r=jandem 2019-01-14 13:31:44 +00:00
Jon Coppeard 78f8d4a2e2 Bug 1519397 - Fix non-unified build bustage r=me 2019-01-14 11:32:54 +00:00
Jon Coppeard cc1da19831 Bug 1519397 - Factor GC locking RAII classes out of vm/Runtime.h r=pbone 2019-01-14 11:02:35 +00:00
David Major 9ed87684ba Bug 1484835 - Extend the Windows JIT unwind handler to ARM64 r=luke
Because the .xdata format on ARM64 can only encode sizes up to 1M (much too small for our JIT code regions), we register a function table callback to provide RUNTIME_FUNCTIONs at runtime. Windows doesn't seem to care about the size fields on RUNTIME_FUNCTIONs that are created in this way, so the same RUNTIME_FUNCTION can work for any address in the region. We'll set up a generic one in RegisterExecutableMemory and the callback can just return a pointer to it.

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

--HG--
extra : moz-landing-system : lando
2019-01-14 14:06:24 +00:00
Tarek Ziadé c9ddafea1f Bug 1406872 - Remove perf monitoring code - r=jandem,Gijs
This patch removes the StopWatch code that was used in the first version of
about:performance, and not being used anymore.

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

--HG--
extra : moz-landing-system : lando
2019-01-14 14:09:09 +00:00
Jan de Mooij e97f479a8c Bug 1518753 part 8 - Add --more-compartments to some of the test configurations we use in automation. r=jorendorff
Differential Revision: https://phabricator.services.mozilla.com/D16173

--HG--
extra : moz-landing-system : lando
2019-01-12 10:51:11 +00:00
Jan de Mooij b59b6faf04 Bug 1518753 part 7 - Replace newGlobal() => newGlobal({newCompartment: true}) in jit-tests that fail with same-compartment realms. r=jorendorff
These tests mostly use either the debugger (requires separate compartemnts for
debugger/debuggee) or require a new compartment for things like nukeAllCCWs().

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

--HG--
extra : moz-landing-system : lando
2019-01-12 10:50:53 +00:00
Jan de Mooij b1dd83671b Bug 1518753 part 6 - Various fixes for jstests to work with same-compartment realms. r=anba
Differential Revision: https://phabricator.services.mozilla.com/D16171

--HG--
extra : moz-landing-system : lando
2019-01-12 10:50:12 +00:00
Jan de Mooij 4372b33619 Bug 1518753 part 5 - Stop using JSProtoKey for initial shapes. r=tcampbell
I added this optimization in bug 1299107 to share more shapes across
compartments. Unfortunately this doesn't play well with same-compartment
realms (ICs can misbehave) because it relies on compartments being isolated
from each other.

I think we should remove this optimization:

* Fixing the IC issue is impossible without deoptimizing everything.
* I added it mainly for chrome globals. The shared-JSM-global work has eliminated
  the need for this there.
* Same-compartment realms win memory back by eliminating CCWs etc.
* It's quite a lot of complicated code.

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

--HG--
extra : moz-landing-system : lando
2019-01-12 10:50:04 +00:00
Jan de Mooij ab79db896f Bug 1518753 part 4 - Fix IsRegExpPrototype to return false for cross-realm regexp prototypes. r=anba
Differential Revision: https://phabricator.services.mozilla.com/D16169

--HG--
extra : moz-landing-system : lando
2019-01-12 10:50:00 +00:00
Jan de Mooij e7781606e8 Bug 1518753 part 3 - Fix TypedArrayObject::ensureHasBuffer to create the buffer in the array's realm. r=anba
Differential Revision: https://phabricator.services.mozilla.com/D16168

--HG--
extra : moz-landing-system : lando
2019-01-12 10:49:58 +00:00
Jan de Mooij e2b5c3a588 Bug 1518753 part 2 - Fix some jit-tests to work with same-compartment realms. r=jorendorff
Differential Revision: https://phabricator.services.mozilla.com/D16167

--HG--
extra : moz-landing-system : lando
2019-01-12 10:48:23 +00:00
Jan de Mooij d84c5227d5 Bug 1518753 part 1 - Add --more-compartments JS shell flag, make same-compartment the default for newGlobal. r=jorendorff
We want to use this shell flag in automation. Some globals really need their
own compartment so tests can use newGlobal({newCompartment: true}) to opt-out.

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

--HG--
extra : moz-landing-system : lando
2019-01-12 10:48:00 +00:00
Narcis Beleuzu 7d7aca6a93 Merge inbound to mozilla-central. a=merge 2019-01-12 11:40:44 +02:00
Mike Hommey 367db61b4a Bug 1519319 - Move bindgen.configure include to js/moz.configure. r=froydnj
Bindgen is only used when building js or toolkit, so we only need to
include the configure part in js/moz.configure, which is included in
both cases.

Depends on D16293

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

--HG--
extra : moz-landing-system : lando
2019-01-11 22:17:54 +00:00
Noemi Erli 7cd3732360 Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-01-11 23:59:12 +02:00
Noemi Erli d9c49c81c5 Merge inbound to mozilla-central. a=merge 2019-01-11 23:54:33 +02:00
Tooru Fujisawa d59bf80ea2 Bug 1519322 - Wrap unhandled/handled promise properly in JS shell promise rejection tracker. r=jorendorff
Differential Revision: https://phabricator.services.mozilla.com/D16303

--HG--
extra : moz-landing-system : lando
2019-01-11 21:11:50 +00:00
Iain Ireland b6d084bad8 Bug 1480390: Replace TryNoteIter template op with a more general filter op r=tcampbell
Depends on D14784

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

--HG--
extra : moz-landing-system : lando
2019-01-11 18:43:24 +00:00
Iain Ireland cd3a5f3723 Bug 1517135: Remove dead declaration from BytecodeEmitter.h r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D16324

--HG--
extra : moz-landing-system : lando
2019-01-11 16:36:40 +00:00
Razvan Maries 642dd2cc11 Merge mozilla-central to autoland. a=merge on a CLOSED TREE 2019-01-11 17:33:16 +02:00
Iain Ireland f0e7a28b46 Bug 1480390: Update comment for JSTryNoteKind r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D14784

--HG--
extra : moz-landing-system : lando
2019-01-10 22:29:13 +00:00
Iain Ireland fce1e90420 Bug 1480390: Move ForOfIterClose logic inside TryNoteIter r=tcampbell
This patch was intended to be a pure refactoring of existing code with
no side-effects, moving the logic for handling for-of/for-of-iterclose
trynotes inside TryNoteIter to avoid duplicating logic in all users of
TryNoteIter. However, it turns out that there was a subtle preexisting
bug in TryNoteIter that is fixed by the refactoring. Specifically, the
logic to skip from a for-of-iterclose to its enclosing for-of must run
before the logic to skip trynotes based on stack depth. Otherwise, the
stack depth code may filter out the enclosing for-of (see the attached
test case for an example) and we will skip too many try-notes.

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

--HG--
extra : moz-landing-system : lando
2019-01-11 18:05:36 +00:00
Jan de Mooij e2eb313127 Bug 1511891 part 9 - Call recordreplay::AdvanceExecutionProgressCounter also for eval frames in InterpreterFrame::prologue. r=bhackett
I think this is the right thing to do but I'm not sure.

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

--HG--
extra : moz-landing-system : lando
2019-01-11 09:16:22 +00:00
Jan de Mooij aa9b0c47ba Bug 1511891 part 8 - Move CheckGlobalOrEvalDeclarationConflicts to EnvironmentObject.cpp and call it also in the interpreter. r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D13706

--HG--
extra : moz-landing-system : lando
2019-01-11 09:15:41 +00:00
Jan de Mooij 2e86f8f057 Bug 1511891 part 7 - Change jit::CheckGlobalOrEvalDeclarationConflicts signature to make it less Baseline-specific. r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D13705

--HG--
extra : moz-landing-system : lando
2019-01-11 09:14:58 +00:00
Jan de Mooij 6032002978 Bug 1511891 part 6 - Merge two DefLexicalOperation functions into one and have the JITs call it directly. r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D13704

--HG--
extra : moz-landing-system : lando
2019-01-11 09:14:17 +00:00
Jan de Mooij b9ee882ac8 Bug 1511891 part 5 - Refactor DefLexicalOperation to make it easier to call directly from JIT code in the next patch. r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D13703

--HG--
extra : moz-landing-system : lando
2019-01-11 09:13:31 +00:00
Jan de Mooij c95d95c2e8 Bug 1511891 part 4 - Move DefLexicalOperation from Interpreter-inl.h to Interpreter.cpp. r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D13702

--HG--
extra : moz-landing-system : lando
2019-01-11 09:12:51 +00:00
Jan de Mooij f219481a64 Bug 1511891 part 3 - Refactor DefVarOperation so interpreter and JITs can call it directly. r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D13701

--HG--
extra : moz-landing-system : lando
2019-01-11 09:12:20 +00:00
Jan de Mooij 8317a24737 Bug 1511891 part 2 - Move DefVarOperation from Interpreter-inl.h to Interpreter.cpp. r=tcampbell
No change in behavior.

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

--HG--
extra : moz-landing-system : lando
2019-01-11 09:12:15 +00:00
Jan de Mooij b13151dfe1 Bug 1511891 part 1 - Add BindVarOperation and use it for JSOP_BINDVAR in interpreter and JITs. r=tcampbell
This also adds a GetVariablesObject helper so we don't have to duplicate the
logic there.

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

--HG--
extra : moz-landing-system : lando
2019-01-11 09:10:19 +00:00
Daniel Varga f0a9c979bb Merge mozilla-inbound to mozillia-central. a=merge 2019-01-11 06:14:14 +02:00
Sean Stangl 56c0daa179 Bug 1518957 - Implement ARM64 truncation and remove unused emitRoundDouble(). r=nbp
--HG--
extra : amend_source : 6d7336b98d91c2f252431d38823731b394e30dd7
2019-01-10 23:16:27 +02:00
Ashley Hauck 0c9af78f5c Bug 1514919 - Do not constant-fold the same nodes more than once. r=jorendorff
Differential Revision: https://phabricator.services.mozilla.com/D14813

--HG--
extra : moz-landing-system : lando
2019-01-09 21:27:39 +00:00
Mike Hommey 65e1e6bb41 Bug 1519040 - Remove some unused old-configure assignments. r=mshal
Differential Revision: https://phabricator.services.mozilla.com/D16159

--HG--
extra : moz-landing-system : lando
2019-01-10 22:02:04 +00:00
Coroiu Cristina 1468575650 Merge mozilla-central to autoland a=merge on a CLOSED TREE 2019-01-10 23:45:07 +02:00
Iain Ireland c13d092342 Bug 1517135: Improve performance of BytecodeEmitter::finishTakingSrcNotes r=djvj
Differential Revision: https://phabricator.services.mozilla.com/D16106

--HG--
extra : moz-landing-system : lando
2019-01-10 20:59:11 +00:00
Noemi Erli 7d19be646b Merge mozilla-central to inbound. a=merge CLOSED TREE 2019-01-12 00:00:06 +02:00
André Bargull b9d9aca13e Bug 1518833: Handle cross-compartment wrapped TypedArray in @@toStringTag. r=jorendorff 2019-01-09 08:45:57 -08:00
André Bargull 6de4d9b81c Bug 1518764: Handle dead proxies in intrinsic_ConstructorForTypedArray by switching to UnwrapAndDowncastValue. r=jandem 2019-01-09 08:13:05 -08:00
André Bargull 47a7b89662 Bug 1394386: Don't enforce tenure allocation for TypedArrays from inlined constructor ool-path. r=jandem 2019-01-09 01:52:31 -08:00
André Bargull 085ce9ea7b Bug 1518837: Reuse input register in LGuardToClass. r=jandem 2019-01-09 09:04:15 -08:00
wartmanm 5407707949 Bug 1513095 - Improve performance when loading breakpoints on pages with many scripts r=loganfsmyth
Only attempt to add breakpoints for the current source in Thread._addSource(),
reducing the number of costly Debugger::findScripts() calls made when loading a
page.

In addition, speed up findScripts() itself by moving the cheaper URL/source
checks in commonFilter() ahead of the line number checks.

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

--HG--
extra : moz-landing-system : lando
2019-01-10 17:50:52 +00:00
Jon Coppeard d087597227 Bug 981991 - Make most poisoning unconditional r=jandem 2019-01-10 13:21:46 +00:00
Jon Coppeard cde26c3387 Bug 981991 - Replace JS_*_POISON macros with inline functions r=jandem 2019-01-10 13:21:45 +00:00
Jon Coppeard 57b972724c Bug 1518824 - Poison old ObjectGroup properties array during sweeping r=tcampbell 2019-01-10 11:00:20 +00:00
Jon Coppeard 2755f84c3d Bug 1518193 - Use new free task to also free nursery buffers r=sfink 2019-01-10 11:00:20 +00:00
Jon Coppeard f0e4f0cea3 Bug 1518193 - Use new free task to also free JIT LIFO data freed after minor GC r=sfink 2019-01-10 11:00:20 +00:00