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

69904 Коммитов

Автор SHA1 Сообщение Дата
Jan de Mooij b5d931909b Bug 1530937 part 13 - Convert Ion oolCallVMs and remove old CodeGenerator callVM overload. r=nbp
Differential Revision: https://phabricator.services.mozilla.com/D22946

--HG--
extra : moz-landing-system : lando
2019-03-11 13:30:29 +00:00
Gurzau Raul d14e34fe58 Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-03-11 18:54:51 +02:00
Gurzau Raul a08c8c580a Merge autoland to mozilla-central. a=merge 2019-03-11 18:49:16 +02:00
Tooru Fujisawa 1347d58019 Bug 1533711 - Provide class with method chain in filter_utils.py for BinAST invalid file test. r=Yoric
Differential Revision: https://phabricator.services.mozilla.com/D22888

--HG--
extra : moz-landing-system : lando
2019-03-11 16:04:04 +00:00
Tooru Fujisawa 1f1e82a655 Bug 1533620 - Verify that catch scope has correct item. r=Yoric
Depends on D22647

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

--HG--
extra : moz-landing-system : lando
2019-03-11 14:36:08 +00:00
Tooru Fujisawa de43947668 Bug 1532517 - Check identifier syntax in BinTokenReaderMultipart. r=Yoric
There was some case that IsIdentifier check is missing after readIdentifierName.
Moved the check to readIdentifierName itself.

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

--HG--
extra : moz-landing-system : lando
2019-03-11 15:23:30 +00:00
Gurzau Raul c6eb3b6485 Backed out 2 changesets (bug 1532376) for causing Bug 1534118 a=backout
Backed out changeset 82a1c7087806 (bug 1532376)
Backed out changeset 1b4fd78107e2 (bug 1532376)
2019-03-11 12:27:26 +02:00
Gurzau Raul 2a8520e51a Merge autoland to mozilla-central. a=merge 2019-03-11 11:33:57 +02:00
Gurzau Raul 1c921ba7fe Backed out changeset b8137cbaf9cf (bug 1532946) for causing bug 1534118. 2019-03-11 08:54:20 +02:00
Jason Orendorff c1de49ae80 Bug 1495072 - Part 2: Implement new, faster proposed await semantics. r=arai
This patch implements the proposal in this pull request:
<https://github.com/tc39/ecma262/pull/1250>

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

--HG--
extra : moz-landing-system : lando
2019-03-11 15:24:01 +00:00
Jason Orendorff 84b416be15 Bug 1495072 - Part 1: Add some comments in Promise.cpp detailing algorithm steps. r=arai
This also changes a few functions to follow the `unwrapped` convention.

This does not do the job thoroughly for our whole implementation of promises
and async generators; but the patch casts enough light that I can see what I'm
doing in part 2.

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

--HG--
extra : moz-landing-system : lando
2019-03-11 15:23:46 +00:00
Jon Coppeard 8311f852fb Bug 1532376 - Assert that the group's shouldPretenure flag is respected when creating an object r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D22326

--HG--
extra : source : 82a1c708780619b605a5c0f63cd8046f3e992692
2019-03-06 16:38:29 +00:00
Jon Coppeard fe432882de Bug 1532376 - Fix places where we don't respect the shouldPretenure flag when creating an object r=jandem
This adds an overload of GetInitialHeap that takes an ObjectGroup* instead of a Class* and also takes into account whether the group's shouldPreTenure flag is set.  I moved this to JSObject-inl.h too.

I removed the heap parameter in a few places, in particular in NewDenseCopyOnWriteArray which required a bunch of changes elsewhere including the JITs.  I left the heap parameter intact for environment objects where we may have reason prefer these objects to be allocated in the tenure heap.  It's possible we should just remove all these parameters too and make allocation more uniform.

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

--HG--
extra : source : 1b4fd78107e2bcf7fe0f44038176ca745b07cd88
2019-03-06 16:38:25 +00:00
arthur.iakab 9232befab9 Backed out 2 changesets (bug 1532376) on request of pascalc for causing Bug 1534118 a=backout
Backed out changeset 82a1c7087806 (bug 1532376)
Backed out changeset 1b4fd78107e2 (bug 1532376)
2019-03-10 14:53:49 +02:00
Razvan Maries 913f406aec Merge mozilla-inbound to mozilla-central a=merge 2019-03-09 23:51:51 +02:00
Jan de Mooij d105968a3d Bug 1533302 part 3 - Use UniquePtr for CompartmentPrivate's XPCWrappedNativeScope. r=mccr8
`CompartmentPrivate::GetScope()` was added so callers don't have to do `scope.get()`
manually. The `scope` field is now private and was renamed to `mScope`.

Also replaces some `CompartmentPrivate::Get(obj)->scope` instances with
`ObjectScope(obj)`. It's equivalent but shorter.

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

--HG--
extra : moz-landing-system : lando
2019-03-09 10:44:18 +00:00
André Bargull 2f06ea1477 Bug 1530745 - Part 6: Change JSOP_RESUME immediate back to UINT8. r=arai
And add more assertions to document implicit requirements about opcode lengths.

Depends on D22670

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

--HG--
extra : moz-landing-system : lando
2019-03-08 12:38:47 +00:00
André Bargull fdc89b3f4a Bug 1530745 - Part 5: Move duplicate code for standalone function compilation into a separate function. r=arai
Depends on D22669

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

--HG--
extra : moz-landing-system : lando
2019-03-08 12:38:43 +00:00
André Bargull cc2d6c1784 Bug 1530745 - Part 4: Remove INTERPRETED_METHOD_GENERATOR_OR_ASYNC in favour of using only INTERPRETED_METHOD. r=arai
Depends on D22668

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

--HG--
extra : moz-landing-system : lando
2019-03-08 12:37:02 +00:00
André Bargull d6d62140a2 Bug 1530745 - Part 3: Add a helper to retrieve the prototype for a specific function type. r=arai
Depends on D22667

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

--HG--
extra : moz-landing-system : lando
2019-03-08 12:36:14 +00:00
André Bargull 6cfbd3c507 Bug 1530745 - Part 2: Move declarations from JSFunction.h as static entries to JSFunction.cpp. r=arai
Depends on D22665

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

--HG--
extra : moz-landing-system : lando
2019-03-08 12:34:49 +00:00
André Bargull 3d353e0d51 Bug 1530745 - Part 1: Make JSFunction::asyncKind() work with native and self-hosted functions. r=arai
Differential Revision: https://phabricator.services.mozilla.com/D22665

--HG--
extra : moz-landing-system : lando
2019-03-08 12:33:56 +00:00
André Bargull 3d85755385 Bug 1527974: Use non-shared memmove in self-hosting intrinsics when possible. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D22508

--HG--
extra : moz-landing-system : lando
2019-03-08 13:23:12 +00:00
Benjamin Bouvier 48f0d69763 Bug 1532689: Use Cranelift features to include only architecture-specific support; r=froydnj
This introduces features in the jsrust crate, so we can enable/disable
compilation for a specific platform at compile-time. It also does only select
the architecture targeted by the JIT, which should result in slightly lower
compilation times on every platform, and lower binary sizes too.

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

--HG--
extra : moz-landing-system : lando
2019-03-11 13:09:58 +00:00
Jan de Mooij ae04e89ca6 Bug 1527822 - Allow inlining some cross-realm native calls in IonBuilder. r=anba
This adds the basic infrastructure and uses it for some Math natives and the
Array constructor.

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

--HG--
extra : moz-landing-system : lando
2019-03-11 10:35:32 +00:00
Jon Coppeard dcd3e9f680 Bug 1532946 - Tidy allocation functions by renaming overloads for object and string allocation r=sfink
This patch attempts to make things clearer by renaming the functions used for allocating objects and strings to AllocateObject and AllocateString, rather than having everything be called Allocate.  Allocate is still used for atoms though which is a little strange but was hard to change.

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

--HG--
extra : moz-landing-system : lando
2019-03-11 07:02:39 +00:00
Jason Orendorff e6312a3716 Bug 1533413 - Add Symbol.matchAll to list of expected RegExp methods. r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D22583

--HG--
extra : moz-landing-system : lando
2019-03-11 10:20:38 +00:00
Jan de Mooij a7db0bb709 Bug 1522837 part 13 - Implement emitFormalArgAccess in BaselineCodeGen. r=djvj
Differential Revision: https://phabricator.services.mozilla.com/D19174

--HG--
extra : moz-landing-system : lando
2019-03-10 19:44:06 +00:00
Jan de Mooij 84f0267fa7 Bug 1522837 part 12 - Support JSOP_NEWARRAY and JSOP_INITELEM_ARRAY in BaselineCodeGen. r=djvj
Differential Revision: https://phabricator.services.mozilla.com/D19173

--HG--
extra : moz-landing-system : lando
2019-03-10 19:43:44 +00:00
Jan de Mooij e554148a4e Bug 1522837 part 11 - Implement some simple ops in BaselineInterpreterCodeGen. r=djvj
Differential Revision: https://phabricator.services.mozilla.com/D18253

--HG--
extra : moz-landing-system : lando
2019-03-10 19:43:26 +00:00
Jan de Mooij 036413341f Bug 1522837 part 10 - Add interpreter fields to BaselineFrame. r=djvj
Differential Revision: https://phabricator.services.mozilla.com/D18252

--HG--
extra : moz-landing-system : lando
2019-03-10 19:43:08 +00:00
Jeff Walden 84d0d8d760 Bug 1533636 - Remove an unused PodOperations.h #include from XDR code. r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D22651

--HG--
extra : rebase_source : 04a42040c22c299802687d4a3bef1a1de9d355cf
2019-03-04 18:21:06 -08:00
Jeff Walden aef6aaf376 Bug 1533636 - Define XDRBufferBase::{is,set}Aligned only once, and move #ifdef DEBUG into function definitions. r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D22650

--HG--
extra : rebase_source : 7b3cc90b759505fbe23142bf57b74e4ee3adf44c
2019-03-04 18:01:08 -08:00
Julian Seward 89ae1fc929 Bug 1533204 - Crash [@ js::jit::CompileRuntime::mainContextPtr] with asm.js. r=jandem.
This patch ensures that resetOsiPointRegs will not be called on safepoints
associated with Wasm code, in CodeGenerator::generateBody.

--HG--
extra : rebase_source : adba60818120db23026be1e63fb1a808d28c4af1
2019-03-11 17:38:44 +01:00
Tom Schuster dd5582f412 Bug 1532421 - Use ValueType in BaselineIC's TypeCheckPrimitiveSetStub. r=mgaudet
This also makes sure that ValueType::PrivateGCThing isn't used, similar to ValueType::Magic.

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

--HG--
extra : moz-landing-system : lando
2019-03-07 16:39:01 +00:00
Bogdan Tara 036d607c2a Backed out changeset ed3b55f9d326 (bug 1532689) for causing build bustages CLOSED TREE 2019-03-08 20:22:38 +02:00
Logan Smyth 0a2f537c4d Bug 1533571 - Do not mark the return opcode as breakable for expression-body arrow functions. r=jlast
Differential Revision: https://phabricator.services.mozilla.com/D22617

--HG--
extra : moz-landing-system : lando
2019-03-08 14:54:18 +00:00
Ashley Hauck 380b78e1c5 Bug 1533399 - Fix field positions. r=jorendorff
Differential Revision: https://phabricator.services.mozilla.com/D22519

--HG--
extra : moz-landing-system : lando
2019-03-08 15:40:01 +00:00
Iain Ireland 54ccd86c68 Bug 1533733: Delete obsolete workaround r=mgaudet
Differential Revision: https://phabricator.services.mozilla.com/D22705

--HG--
extra : moz-landing-system : lando
2019-03-08 15:28:40 +00:00
Benjamin Bouvier 9558207189 Bug 1532689: Use Cranelift features to include only architecture-specific support; r=froydnj
This introduces features in the jsrust crate, so we can enable/disable
compilation for a specific platform at compile-time. It also does only select
the architecture targeted by the JIT, which should result in slightly lower
compilation times on every platform, and lower binary sizes too.

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

--HG--
extra : moz-landing-system : lando
2019-03-08 13:47:35 +00:00
Jan de Mooij 94d1ed4cac Bug 1530937 part 12 - Convert remaining inline callVMs in CodeGenerator.cpp. r=tcampbell
* Moves NewArrayWithGroup from CodeGenerator.cpp to builtin/Array.cpp

* GetProperty has various overloads so I added GetValueProperty. I considered
  *renaming* that GetProperty overload to GetValueProperty but there are quite
  a lot of callers in VM code where GetProperty is probably closer to the spec
  language.

* Ion called js::GetElement and js::CallElement which forwarded to GetElementOperation.
  This was changed to call GetElementOperation directly (eliminates a VM wrapper).

Depends on D22677

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

--HG--
extra : moz-landing-system : lando
2019-03-08 14:56:38 +00:00
Jan de Mooij 6f558829a7 Bug 1530937 part 11 - Convert even more callVMs in CodeGenerator.cpp. r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D22677

--HG--
extra : moz-landing-system : lando
2019-03-08 14:52:16 +00:00
Brian Hackett e1619b5368 Bug 1533523 - Fire Debugger::onNewScript for default class constructors, r=loganfsmyth.
Differential Revision: https://phabricator.services.mozilla.com/D22580

--HG--
extra : moz-landing-system : lando
2019-03-07 20:56:11 +00:00
shindli ff642e0697 Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-03-08 15:54:05 +02:00
shindli 6c4127e860 Merge inbound to mozilla-central. a=merge 2019-03-08 15:50:01 +02:00
Andrea Marchesini 8e20bbbc9a Bug 1525245 - Stabilize cookiePolicy/cookiePermission for live documents - part 12 - nsICookieSettings for the channel creation, r=ckerschb,asuth,Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D21538

--HG--
extra : moz-landing-system : lando
2019-03-08 09:04:11 +00:00
Jan de Mooij caa37e0fbf Bug 1533302 part 2 - Tie XPCWrappedNativeScope lifetime to CompartmentPrivate. r=mccr8
XPCWrappedNativeScope is now allocated and destroyed with the CompartmentPrivate
that owns it. In follow-up bugs we could merge the two classes (see bug 1032928).

This also removes the dying-scopes list. XPCJSRuntime now stores the list of all
scopes as mozilla::LinkedList.

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

--HG--
extra : moz-landing-system : lando
2019-03-08 13:28:47 +00:00
Jan de Mooij b196cb4d46 Bug 1533302 part 1 - Remove unused XPCWrappedNativeScope::IsDyingScope. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D22491

--HG--
extra : moz-landing-system : lando
2019-03-07 19:05:36 +00:00
Ashley Hauck a58ef8a203 Bug 1528038 - Split field-related BytecodeEmitter behavior into separate methods. r=jorendorff
Differential Revision: https://phabricator.services.mozilla.com/D21523

--HG--
extra : moz-landing-system : lando
2019-03-08 13:00:47 +00:00
Paul Bone 9a8337af9d Bug 1532857 - Use SubChunkLimit when re-enabling the nursery r=jonco
I should have included this change in Bug 1527532.

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

--HG--
extra : moz-landing-system : lando
2019-03-06 12:57:04 +00:00
Mike Hommey 24bccfea9f Bug 1532883 - Add missing configuration for nasm on hazard and plain builds. r=dmajor
Differential Revision: https://phabricator.services.mozilla.com/D22451

--HG--
extra : moz-landing-system : lando
2019-03-07 14:44:32 +00:00
Benjamin Bouvier e84c6bd970 Bug 1532689: Bump Cranelift to 0.29 in Spidermonkey; r=sunfish
This adds new code to provide the module-relative initial function offset for
each function, and adds checks that the bytecode / code offsets are correct.

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

--HG--
rename : third_party/rust/cranelift-codegen-meta/src/base/settings.rs => third_party/rust/cranelift-codegen-meta/src/shared/settings.rs
rename : third_party/rust/cranelift-codegen-meta/src/base/types.rs => third_party/rust/cranelift-codegen-meta/src/shared/types.rs
extra : rebase_source : fd70523925d5d0655917bd9068f7ed35836c714a
extra : histedit_source : e64727d7be746dc3f327909db83f091602e259a9%2Cfc2a4335c2adada30a265a50fa76ef75a2b00bad
2019-03-05 18:34:50 +01:00
Benjamin Bouvier 216ad268c0 Bug 1532689: Use a ModuleEnvironment pointer (instead of a reference) to work around a bindgen bug; r=sunfish
The structure layout was incorrectly computed because of the reference, meaning
that the data located after the reference was incorrect. In particular, it
means the minimal memory size wasn't correctly read. This works around it by
using a pointer, and rename a few function parameters to make their role
clearer.

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

--HG--
extra : rebase_source : 77d341968bd40df311b49aeeebe12437ca0d6c57
2019-03-05 18:31:26 +01:00
shindli a0e5b5dae7 Merge mozilla-central to inbound. a=merge CLOSED TREE 2019-03-08 11:42:48 +02:00
Lars T Hansen c566ab8381 Bug 1532927 - Secondary wasm opcodes are not bytes. r=luke
Changes to decoding, dispatch, and encoding to handle a uint32_t
representation for the secondary opcode.

Also a drive-by fix to remove an orphaned enum in WasmTypes.h

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

--HG--
extra : rebase_source : 6d598437e69fb93b722a9df9b48ab8d36897070f
extra : histedit_source : 92c6aa6ada4d8c6f8616945af8839205749d3b92
2019-03-06 12:49:28 +01:00
arthur.iakab 6ac3e940d9 Merge autoland to mozilla-central a=merge 2019-03-08 06:38:18 +02:00
arthur.iakab 85ad02d41a Merge inbound to mozilla-central a=merge 2019-03-07 23:58:42 +02:00
Ciure Andrei 712dd2bb8c Backed out 16 changesets (bug 1525245) for perma failing test_document_cookie.html CLOSED TREE
Backed out changeset 3fd27215698f (bug 1525245)
Backed out changeset d9a9e8e77873 (bug 1525245)
Backed out changeset 0e6f7be92e3f (bug 1525245)
Backed out changeset 6790802e2fa5 (bug 1525245)
Backed out changeset a5a9e01116ed (bug 1525245)
Backed out changeset 66e19a0c38dd (bug 1525245)
Backed out changeset fb90d51ba853 (bug 1525245)
Backed out changeset 4772db3625b3 (bug 1525245)
Backed out changeset 9affaf0cb998 (bug 1525245)
Backed out changeset a91b7ebe8bdd (bug 1525245)
Backed out changeset c2a13a7480e1 (bug 1525245)
Backed out changeset abe4482fa137 (bug 1525245)
Backed out changeset b3920c0bcf84 (bug 1525245)
Backed out changeset 0821b81f2724 (bug 1525245)
Backed out changeset 70bed2ad7899 (bug 1525245)
Backed out changeset 5f72ba232cc8 (bug 1525245)
2019-03-07 17:54:18 +02:00
Doug Thayer cc84fd752b Bug 1533056 - Move test_startup_caches out of marionette unit tests r=whimboo
Renamed the test to reflect that it is really just a test of the script preloader
as well. I just moved it to get it close to the ScriptPreloader and near existing
tests.

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

--HG--
rename : testing/marionette/harness/marionette_harness/tests/unit/test_startup_caches.py => js/xpconnect/tests/marionette/test_preloader_telemetry.py
extra : moz-landing-system : lando
2019-03-07 06:30:38 +00:00
Ashley Hauck 6e6fbf08a6 Bug 1532921 - Implement .initializers local variable. r=jorendorff
Differential Revision: https://phabricator.services.mozilla.com/D22290

--HG--
extra : moz-landing-system : lando
2019-03-07 16:10:03 +00:00
Ted Campbell 94421cd86a Bug 1533420 - Remove JSScript::ExplicitUseStrict flag. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D22524

--HG--
extra : moz-landing-system : lando
2019-03-07 16:08:17 +00:00
André Bargull 5a32c1b092 Bug 1533168 - Part 2: Enable previously skipped tests. r=jwalden
Differential Revision: https://phabricator.services.mozilla.com/D22403

--HG--
extra : moz-landing-system : lando
2019-03-07 14:36:50 +00:00
André Bargull 0132c7a411 Bug 1533168 - Part 1: Update test262 - Mar 06 2018 edition. r=jwalden
Differential Revision: https://phabricator.services.mozilla.com/D22402

--HG--
extra : moz-landing-system : lando
2019-03-07 14:40:20 +00:00
André Bargull 8ed3709904 Bug 1531202 - Part 2: Reimport test262. r=jwalden
Differential Revision: https://phabricator.services.mozilla.com/D21678

--HG--
extra : moz-landing-system : lando
2019-03-07 14:42:25 +00:00
André Bargull 2c8853ce51 Bug 1531202 - Part 1: Don't prepend reftest entries in test262 'raw' tests. r=jwalden
- Add separate function to import fixture files instead of treating them like
  test files. This simplifies the code structure a bit and avoids unnecessary
  output spew, because the test262 test record parser no longer complains about
  missing yaml frontmatter.
- Write reftest terms into a new test262/jstests.list file for raw tests.
- Allow including nested jstests.list files in _parse_external_manifest.

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

--HG--
extra : moz-landing-system : lando
2019-03-07 14:42:25 +00:00
Ted Campbell ccec2820d5 Bug 1533196 - Remove JSScript::FunHasAnyAliasedFormal flag r=jandem
This flag is only used by IonAnalysis and rarely so it should be
computed there instead of in all script/function code paths.

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

--HG--
extra : moz-landing-system : lando
2019-03-07 09:34:05 +00:00
Nicolas B. Pierron 324a5a5901 Bug 1532599 - Force expected crashes on unexpected magic values. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D22120

--HG--
extra : moz-landing-system : lando
2019-03-06 20:23:43 +00:00
Andrea Marchesini 6856f88972 Bug 1525245 - Stabilize cookiePolicy/cookiePermission for live documents - part 12 - nsICookieSettings for the channel creation, r=ckerschb,asuth,Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D21538

--HG--
extra : moz-landing-system : lando
2019-03-07 10:21:15 +00:00
Ashley Hauck ac789b8f73 Bug 1528039 - Make Reflect.Parse work for fields. r=jorendorff
Differential Revision: https://phabricator.services.mozilla.com/D21537

--HG--
extra : moz-landing-system : lando
2019-03-07 03:22:11 +00:00
Coroiu Cristina d234f2549a Merge mozilla-central to autoland a=merge on a CLOSED TREE 2019-03-07 06:39:14 +02:00
Coroiu Cristina 24aacfe9a4 Merge inbound to mozilla-central a=merge 2019-03-07 06:34:11 +02:00
Sean Stangl 3bc83a5a93 Bug 1528869 - Enable IonMonkey in the ARM64 shell, but keep it disabled in the browser. r=nbp
Enable IonMonkey in the ARM64 shell, but keep it disabled in the browser.

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

--HG--
extra : moz-landing-system : lando
2019-03-07 03:57:23 +00:00
Ted Campbell 258f9ffb1f Bug 1533003 - Split JSScript::initFromFunctionBox r=jandem
Split into one part for JSScript internal initialization of flags and a
second part for linking the JSFunction and JSScript only after the
script is fully initialized.

Depends on D22322

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

--HG--
extra : moz-landing-system : lando
2019-03-06 18:12:30 +00:00
Ted Campbell f80d62d852 Bug 1533003 - Add SharedScriptData::InitFromEmitter r=jandem
Depends on D22321

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

--HG--
extra : moz-landing-system : lando
2019-03-06 18:09:27 +00:00
Ted Campbell c5c0086ee2 Bug 1533003 - Add PrivateScriptData::InitFromEmitter r=jandem
Depends on D22320

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

--HG--
extra : moz-landing-system : lando
2019-03-06 18:06:35 +00:00
Ted Campbell 228743c20b Bug 1533003 - Split out inner-function scope linking in script compile r=jandem
When compiling a script with lazy inner functions, we now know the
scopes that those inner functions belong too and need to save this
information on the inner function itself (as enclosingScope). This patch
makes that process more explicit in JSScript initialization so we can
better reason about error / OOM paths.

Depends on D22319

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

--HG--
extra : moz-landing-system : lando
2019-03-06 18:04:10 +00:00
Ted Campbell d380864cd7 Bug 1533003 - JSScript::fullyInitFromEmitter group flag init r=jandem
Depends on D22318

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

--HG--
extra : moz-landing-system : lando
2019-03-06 18:03:12 +00:00
Ted Campbell 085f166748 Bug 1533003 - JSScript::fullyInitFromEmitter group POD fields r=jandem
Depends on D22317

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

--HG--
extra : moz-landing-system : lando
2019-03-06 18:01:34 +00:00
Ted Campbell 8a693c6d8d Bug 1533003 - Cleanup JSScript::fullyInitFromEmitter error handling r=jandem
Use an ExitScope similar to to XDRScript for more consistency.

Depends on D22316

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

--HG--
extra : moz-landing-system : lando
2019-03-06 17:59:06 +00:00
Ted Campbell 10940b7d27 Bug 1533003 - Compute JSScript::NeedsFunctionEnvironmentObjects directly from BCE r=jandem
Depends on D22315

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

--HG--
extra : moz-landing-system : lando
2019-03-06 17:55:38 +00:00
Ted Campbell 327f2137b8 Bug 1533003 - Compute JSScript::FunHasAnyAliasedFormal directly from BCE r=jandem
Compute this flag directly from BytecodeEmitter data structures instead
of needing to access the partially initialized script while setting its
own flags.

Depends on D22313

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

--HG--
extra : moz-landing-system : lando
2019-03-06 17:42:18 +00:00
Ted Campbell e0eaf32604 Bug 1533003 - Remove JSScript::initFromModuleContext r=jandem
This removes the redundant set of TreatAsRunOnce which is instead set by
CompileOptions before we start compiling. The IsModule flag is now set
directly similar to IsForEval.

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

--HG--
extra : moz-landing-system : lando
2019-03-06 17:34:39 +00:00
Brian Hackett 5ce011d7de Bug 1532366 - Don't record changes to ScriptSource atomic counter, r=loganfsmyth.
Differential Revision: https://phabricator.services.mozilla.com/D22309

--HG--
extra : moz-landing-system : lando
2019-03-06 19:59:34 +00:00
André Bargull bc7119be42 Bug 1532265 - Part 2: Handle closed generators in async function resume. r=arai
Debugger or OOM errors can close the generator after JSOP_ASYNCAWAIT enqueued
a promise job for AsyncFunctionResume. Change AsyncFunctionResume to handle
this case and also try to reject the result promise with the pending OOM error
if possible.

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

--HG--
extra : moz-landing-system : lando
2019-03-06 16:24:35 +00:00
André Bargull fea797f99e Bug 1532265 - Part 1: Skip over InterpretGeneratorResume in IsTopMostAsyncFunctionCall. r=arai
- Remove nullptr checks for `calleeTemplate` because it can't be null for
  function frames.
- Always skip over `InterpretGeneratorResume` to ensure baseline sees the same
  number of debugger enter-frame events as interpreter.

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

--HG--
extra : moz-landing-system : lando
2019-03-06 16:29:24 +00:00
Sean Stangl aad36dec25 Bug 1532996 - Disable test262 atomic tests if ARM64_SIMULATOR. r=jwalden
Atomic tests are invalid in the ARM64 Simulator, because it lacks proper atomics emulation.

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

--HG--
extra : moz-landing-system : lando
2019-03-07 00:57:54 +00:00
Jason Orendorff e726943dcf Bug 1531830 - Part 2: Update test262 to run matchAll tests unconditionally. r=jwalden
The previous patch makes both String.prototype.matchAll and Symbol.matchAll
unconditional features.

This patch was made by first making the changes to test262-update.py, then
re-running it against the test262 revision already indicated by
js/src/tests/test262/GIT-INFO: `python test262-update.py --revision
59b89a1c834faadc359aecc882587b513877b59b`.

Depends on D22370

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

--HG--
extra : moz-landing-system : lando
2019-03-07 00:01:49 +00:00
Jason Orendorff eecd28a654 Bug 1531830 - Part 1: Ship String.prototype.matchAll and Symbol.matchAll. r=jwalden
No pref; the feature is not risky or complicated enough to warrant it. It's
easy enough to back this out if need be.

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

--HG--
extra : moz-landing-system : lando
2019-03-07 00:50:39 +00:00
Steve Fink 7c4355ade7 Bug 1524435 - Stop using JSRope::new_<NoGC> when allocating test ropes r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D22033

--HG--
extra : moz-landing-system : lando
2019-03-07 00:27:57 +00:00
arthur.iakab 93997623bd Merge mozilla-central to autoland a=merge on a CLOSED TREE 2019-03-08 00:14:12 +02:00
Robin Templeton f7f334f105 Bug 1532289 - Fix missing pre-write barrier for BigInt values in Ion r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D21941

--HG--
extra : moz-landing-system : lando
2019-03-07 09:32:08 +00:00
Jan de Mooij 2267287530 Bug 1530937 part 10 - Convert more callVMs in CodeGenerator.cpp. r=nbp
Differential Revision: https://phabricator.services.mozilla.com/D22523

--HG--
extra : moz-landing-system : lando
2019-03-07 17:49:04 +00:00
Dorel Luca ac34e1d973 Backed out 16 changesets (bug 1525245) for Android failures. CLOSED TREE
Backed out changeset 9f8a1b410320 (bug 1525245)
Backed out changeset 0ef284a9a1d5 (bug 1525245)
Backed out changeset 835e5f642a03 (bug 1525245)
Backed out changeset 362f5a8d033c (bug 1525245)
Backed out changeset 9da3ab33cf67 (bug 1525245)
Backed out changeset 6aacd2d6e835 (bug 1525245)
Backed out changeset 8ff9e8f45e02 (bug 1525245)
Backed out changeset 2020227181cc (bug 1525245)
Backed out changeset fc3c64c330b9 (bug 1525245)
Backed out changeset 2762bf88e050 (bug 1525245)
Backed out changeset ffc10fdc50a6 (bug 1525245)
Backed out changeset bb6ade1207d7 (bug 1525245)
Backed out changeset 1875eb5085e4 (bug 1525245)
Backed out changeset 7e4f67a6d6f1 (bug 1525245)
Backed out changeset e671fc9581eb (bug 1525245)
Backed out changeset b89f5def8d0d (bug 1525245)
2019-03-06 21:07:49 +02:00
Jan Henning 50c69a3713 Bug 1529863 - Remove remnants of unused browser.firstrun and browser.snippets prefs. r=geckoview-reviewers,whimboo,esawin
"browser.firstrun.*" seems to have been unused since the end of XUL-based
Fennec, whereas the code referencing the "browser.snippets.*" prefs was removed
in bug 1482836.

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

--HG--
extra : moz-landing-system : lando
2019-03-06 14:59:46 +00:00
Jan de Mooij 446dc0db91 Bug 1533070 - Get rid of static initializers in GC.cpp by marking some functions/statics constexpr. r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D22335

--HG--
extra : moz-landing-system : lando
2019-03-06 17:38:11 +00:00
Andrea Marchesini 4fabb4a2a8 Bug 1525245 - Stabilize cookiePolicy/cookiePermission for live documents - part 12 - nsICookieSettings for the channel creation, r=ckerschb,asuth,Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D21538

--HG--
extra : moz-landing-system : lando
2019-03-06 17:04:06 +00:00
Jan de Mooij 9efa0b1b31 Bug 1530937 part 9 - Convert callVMs for Ion IC fallback functions. r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D22284

--HG--
extra : moz-landing-system : lando
2019-03-06 17:03:15 +00:00
Jan de Mooij 7d039c5756 Bug 1530937 part 8 - Convert some Ion callVMs that already exist in VMFunctionList-inl.h. r=nbp
Depends on D22278

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

--HG--
extra : moz-landing-system : lando
2019-03-06 15:56:21 +00:00
Jan de Mooij b2669a46f1 Bug 1530937 part 7 - Move callVM and oolCallVM methods from CodeGeneratorShared to CodeGenerator. r=nbp
They're only used in CodeGenerator.cpp so we can now move some of the helper
classes and templates from the header file to the cpp file.

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

--HG--
extra : moz-landing-system : lando
2019-03-06 15:56:21 +00:00
Csoregi Natalia 5916c8397a Merge inbound to mozilla-central. a=merge 2019-03-06 18:11:32 +02:00