Commit Graph

72358 Commits

Author SHA1 Message Date
Ted Campbell
cc0b0ce09c Bug 1575055 - Privatize js::CompileOptions::strictMode. r=jandem
We already have an accessor to make sure this is can only be set but not
cleared so hide the underlying storage.

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

--HG--
extra : moz-landing-system : lando
2019-08-22 11:58:13 +00:00
Ted Campbell
18ba55b0b4 Bug 1575055 - Cleanup CompileOptions::setIntroductionInfo. r=jandem
The hasIntroductionInfo flag is equivalent to checking for the existance
introducerFilename so use that instead. Also remove unused setter for
the introducer script.

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

--HG--
extra : moz-landing-system : lando
2019-08-21 16:16:41 +00:00
Henri Sivonen
8ff12d0550 Bug 1575769 - Link jsrust to standalone SpiderMonkey unconditionally. r=bbouvier
Differential Revision: https://phabricator.services.mozilla.com/D43015

--HG--
extra : moz-landing-system : lando
2019-08-22 09:39:29 +00:00
Brian Hackett
9ba1b72aa3 Bug 1572596 Part 2 - Add debugger APIs to get the URLs associated with debuggee realms, and to create new sources, r=jimb.
Depends on D41682

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

--HG--
extra : moz-landing-system : lando
2019-08-22 00:44:12 +00:00
Brian Hackett
6f70f1e367 Bug 1572596 Part 1 - Add source URLs slot to global objects which is cleared on shrinking GC, r=jonco.
Differential Revision: https://phabricator.services.mozilla.com/D41682

--HG--
extra : moz-landing-system : lando
2019-08-22 00:07:41 +00:00
Paul Bone
94aab56280 Bug 1573774 - Assert that a thread isn't already running in Thread::create() r=luke
Depends on D42801

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

--HG--
extra : moz-landing-system : lando
2019-08-21 16:04:22 +00:00
Paul Bone
7f0adb4c75 Bug 1573774 - Protect a thread's id only during creation r=luke
Differential Revision: https://phabricator.services.mozilla.com/D42801

--HG--
extra : moz-landing-system : lando
2019-08-22 00:45:27 +00:00
Mike Hommey
250c3cbc9a Bug 844509 - Don't encode environment in get_cmd_output and old_configure. r=nalexander
The configure sandbox has wrapped subprocess methods to add its own
encoded environment if none is provided, since bug 1520394. It only
makes sense that it normalizes the environment that comes in too,
avoiding caller in the configure sandbox to have to do it themselves.

OTOH, and while we're here, none of get_cmd_output, old_configure or the
sandbox were actually using the right encoding for this conversion, so
fix the configure sandbox to use the right one, and make it stop using
encode(), which does deep recursion that is not necessary here, and that
I'm trying to remove entirely.

Also while here, remove an unused import of encode().

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

--HG--
extra : moz-landing-system : lando
2019-08-20 22:12:23 +00:00
Brian Hackett
5c367a54cb Bug 1572280 Part 2 - Add Debugger.Script.isFunction, r=jimb.
Depends on D41126

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

--HG--
extra : moz-landing-system : lando
2019-08-20 16:14:48 +00:00
Brian Hackett
6ff93d4c36 Bug 1572280 Part 1 - Add Debugger.Source.reparse(), r=jimb.
Differential Revision: https://phabricator.services.mozilla.com/D41126

--HG--
extra : moz-landing-system : lando
2019-08-22 00:02:02 +00:00
Brian Hackett
5b866f6d12 Bug 1559583 Part 1 - Add Debugger.Source.startLine, r=jimb.
Differential Revision: https://phabricator.services.mozilla.com/D40911

--HG--
extra : moz-landing-system : lando
2019-08-21 23:56:13 +00:00
Paul Bone
e7914ff959 Bug 1574047 - (part 4) Avoid repeating js:: in the Thread classes r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D42271

--HG--
extra : moz-landing-system : lando
2019-08-21 23:53:43 +00:00
Paul Bone
aeb5777a12 Bug 1574047 - (part 3) Refactoring in Thread.cpp r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D42077

--HG--
extra : moz-landing-system : lando
2019-08-21 23:53:43 +00:00
Paul Bone
cdeabb162b Bug 1574047 - (part 2) Merge common code from {Posix,Windows}Thread.cpp files r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D42076

--HG--
extra : moz-landing-system : lando
2019-08-21 23:35:00 +00:00
Paul Bone
23e2961c7f Bug 1574047 - (part 1) Rename the two existing Thread.cpp files r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D42268

--HG--
rename : js/src/threading/posix/Thread.cpp => js/src/threading/posix/PosixThread.cpp
rename : js/src/threading/windows/Thread.cpp => js/src/threading/windows/WindowsThread.cpp
extra : moz-landing-system : lando
2019-08-21 23:35:00 +00:00
Mark Banner
b3bdf13476 Bug 1551829 - Limit exectution scope of the spidermonkey-js processor to only the directories where it is required. r=mossop
This helps ensure that when running `--fix` across the entire tree, all places that can be are fixed correctly.

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

--HG--
extra : moz-landing-system : lando
2019-08-21 19:09:27 +00:00
Ted Campbell
b511871ba6 Bug 1575298 - Use Maybe for ScriptSource::introductionOffset. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D42686

--HG--
extra : moz-landing-system : lando
2019-08-21 18:54:03 +00:00
Ted Campbell
00cbe5361f Bug 1575298 - Use field initializers for js::ScriptSource. r=jandem
Also reorder the fields for better organization.

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

--HG--
extra : moz-landing-system : lando
2019-08-21 18:54:01 +00:00
Ted Campbell
95bbcd5be9 Bug 1575298 - Reorganize js::ScriptSource. r=jandem
Group fields together within class defintion and add a few more
comments.

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

--HG--
extra : moz-landing-system : lando
2019-08-21 18:54:00 +00:00
Jon Coppeard
266f4c6efb Bug 1575175 - Rename memory counter classes now they're used for both GC and malloc heaps r=sfink
This renames:
  HeapSize::gcBytes -> bytes (it's not just for GC heaps any more)
  ZoneThreshold -> HeapThreshold (to go with HeapSize)
  HeapThreshold::triggerBytes -> bytes (what else could it be?)

I renamed the ZoneAllocator members to make them more uniform/consitent so we now have gcHeapSize/gcHeapThreshold, mallocHeapSize/mallocHeapThreshold etc.

I also renamed the heap threshold classes.

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

--HG--
extra : moz-landing-system : lando
2019-08-21 15:14:31 +00:00
Jon Coppeard
1652ece8e3 Bug 1574877 - Relax assertions to allow GCManagedDeletePolicy to be used on helper threads r=sfink
Differential Revision: https://phabricator.services.mozilla.com/D42488

--HG--
extra : moz-landing-system : lando
2019-08-20 18:54:28 +00:00
Jon Coppeard
057ec26442 Bug 1575251 - Remove some unnecessary uses of shadow::Zone r=allstarschh
Differential Revision: https://phabricator.services.mozilla.com/D42667

--HG--
extra : moz-landing-system : lando
2019-08-20 18:52:58 +00:00
Steve Fink
8f11df0a9b Bug 1574986 - Report count of GC slices r=jonco
Depends on D42534

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

--HG--
extra : moz-landing-system : lando
2019-08-21 10:16:26 +00:00
Sylvestre Ledru
7759b614e2 Bug 1575249 - Ride along: remove +x permissions on source files r=Ehsan
Depends on D42672

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

--HG--
extra : moz-landing-system : lando
2019-08-21 09:57:03 +00:00
Mike Hommey
76e02a9e5d Bug 1575135 - Remove unused subprocess imports. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D42600

--HG--
extra : moz-landing-system : lando
2019-08-20 16:39:30 +00:00
Steve Fink
bedf24824b Bug 1572988 - test followup to prevent intermittent timeouts on arm64 simulator
Differential Revision: https://phabricator.services.mozilla.com/D42767

--HG--
extra : moz-landing-system : lando
2019-08-21 03:30:18 +00:00
Steve Fink
e306452ebf Bug 1572988 - add a test case for registration error checking
Differential Revision: https://phabricator.services.mozilla.com/D42742

--HG--
extra : moz-landing-system : lando
2019-08-21 00:53:44 +00:00
Bogdan Tara
d15cdd69b0 Backed out changeset d4d3fccf8ad4 (bug 1572988) for regress-1572988-nurseryRegisterCheck.js failures CLOSED TREE 2019-08-21 03:48:01 +03:00
Steve Fink
e6d856714e Bug 1572988 - add a test case for registration error checking
Differential Revision: https://phabricator.services.mozilla.com/D42742

--HG--
extra : moz-landing-system : lando
2019-08-21 00:18:58 +00:00
Steve Fink
51a2d0ed27 Bug 1574986 - Comment on how GCs are determined in the GC-ubench display, and mention the missing piece of information r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D42534

--HG--
extra : moz-landing-system : lando
2019-08-20 09:45:51 +00:00
Jim Porter
524862f585 Bug 1574654 - Revert the order of operations in XPCJSContext::InterruptScript from bug 1493225; r=smaug
This patch restores the order of the slow script checks in
XPJSContext::InterruptScript to avoid filling our logs with useless warnings
in debug builds.

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

--HG--
extra : moz-landing-system : lando
2019-08-20 09:07:25 +00:00
Mats Palmgren
2525944e34 Bug 1574994 part 1 - Remove/replace display:-moz-inline-grid and -moz-inline-stack in tests. r=emilio
I replaced the values with -moz-inline-box in the crashtests
rather than removing them.  I think they are still valuable
after replacing the display value.

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

--HG--
extra : moz-landing-system : lando
2019-08-19 21:19:04 +00:00
Yoshi Cheng-Hao Huang
f9533f14ee Bug 1574449 - revert sweepAtomIncrementally. r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D42598

--HG--
extra : moz-landing-system : lando
2019-08-20 18:58:04 +00:00
Jan de Mooij
07aa6ce2d3 Bug 1575188 - Optimize AutoWritableJitCode use in JitCode::traceChildren. r=jonco
We now only construct AutoWritableJitCode if a pointer embedded in the code
needs to be updated, instead of always when we are doing a compacting or nursery
GC. This matters because mprotect (twice) is pretty slow.

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

--HG--
extra : moz-landing-system : lando
2019-08-20 16:25:24 +00:00
Jan de Mooij
bd9e30d708 Bug 1574725 - Don't cancel Ion compilations in GlobalHelperThreadState::waitForAllThreadsLocked. r=jonco
Cancelling compilations from other runtimes is racy. We could restrict to the
caller's runtime, but waiting for all threads to finish should end up draining
the Ion compilation queue anyway (for that runtime) and we don't cancel other
task types there (except for Wasm but that has more complicated helper thread
usage).

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

--HG--
extra : moz-landing-system : lando
2019-08-20 14:45:28 +00:00
Ryan Hunt
9ef99dfd7f Bug 1574002 - Add wasmDis(func) testing function for viewing disassembly of Wasm exported function. r=lth
Differential Revision: https://phabricator.services.mozilla.com/D42224

--HG--
extra : moz-landing-system : lando
2019-08-20 15:43:02 +00:00
Ryan Hunt
9742f7b7e1 Bug 1574002 - Use jit::Disassemble for Cranelift JitSpew. r=lth
Differential Revision: https://phabricator.services.mozilla.com/D42223

--HG--
extra : moz-landing-system : lando
2019-08-20 15:42:45 +00:00
Ryan Hunt
9083315b94 Bug 1574002 - Add jit::Disassemble as a wrapper around existing in-tree disassemblers. r=lth
Differential Revision: https://phabricator.services.mozilla.com/D42052

--HG--
extra : moz-landing-system : lando
2019-08-20 15:42:32 +00:00
Ryan Hunt
dcc67e3355 Bug 1574002 - Build Zydis even when not using Cranelift. r=lth
The #ifdef(JS_JITSPEW) restriction is still kept.

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

--HG--
extra : moz-landing-system : lando
2019-08-20 15:42:25 +00:00
Jason Laster
009c63f073 Bug 1564168 - [jsdbg2] Debugger.prototype.enabled should be removed.
Differential Revision: https://phabricator.services.mozilla.com/D39414

--HG--
extra : moz-landing-system : lando
2019-08-19 21:47:05 +00:00
André Bargull
4f14d3395a Bug 1574180 - Part 7: Update test262 exclusions. r=khyperia
Differential Revision: https://phabricator.services.mozilla.com/D42159

--HG--
extra : source : 5bc09a0dde11f074c3d5abad0031887222dc5c8c
2019-08-16 20:21:06 +00:00
André Bargull
a3d57b3753 Bug 1574180 - Part 6: Update test262. r=khyperia
Update test262 to get the changes from <https://github.com/tc39/test262/pull/2299>.

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

--HG--
rename : js/src/tests/test262/language/statements/class/elements/prviate-accessor-is-visible-in-computed-properties.js => js/src/tests/test262/language/statements/class/elements/private-accessor-is-visible-in-computed-properties.js
rename : js/src/tests/test262/language/statements/class/elements/prviate-method-is-visible-in-computed-properties.js => js/src/tests/test262/language/statements/class/elements/private-method-is-visible-in-computed-properties.js
extra : source : de51f104550cb6838cc24ae198a28828ff8b384a
2019-08-16 20:20:17 +00:00
André Bargull
389967d506 Bug 1574180 - Part 5: Update test262 features list. r=khyperia
Depends on D42156

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

--HG--
extra : source : 69a6c6867bdee8c88418bba0e51ac5ee7ff2a137
2019-08-16 20:19:30 +00:00
André Bargull
c989d4ce91 Bug 1574180 - Part 4: Update comment for "name" property of TypeErrorThrower. r=khyperia
Depends on D42155

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

--HG--
extra : source : e2a74d92bdab90b336f5712f9039a827a635ad48
2019-08-16 20:19:23 +00:00
André Bargull
da28439836 Bug 1574180 - Part 3: Remove special-case for inferred empty name string. r=khyperia
An absent name and an empty string as the inferred name are now
indistinguishable, so we can remove the special case for empty strings in
ObjectEmitter.

Depends on D42154

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

--HG--
extra : source : 9d1a72c0bb0cb0f3350302187bd68ee013640d7a
2019-08-16 20:19:21 +00:00
André Bargull
4e76af3445 Bug 1574180 - Part 2: Assign "name" property for anonymous class expressions. r=khyperia
Default the "name" property of anonymous class expressions to the empty string
by removing the special case in `JSFunction::infallibleGetUnresolvedName()`.
With that change applied, `infallibleGetUnresolvedName()` never returns nullptr,
so we can remove nullptr handling in its callers. And additionally
`JSFunction::getUnresolvedName()` can be changed back to use `MutableHandleValue`
as its parameter, which also (re-)aligns the function with `getUnresolvedLength()`.

Depends on D42153

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

--HG--
extra : source : 721c8caa85e358e4ecc7943a30a9f9fda20cd753
2019-08-16 20:19:14 +00:00
André Bargull
2da2c57927 Bug 1574180 - Part 1: Use function closures instead of bound functions for cached getter functions. r=jorendorff
This ensures an empty string is used for the name and actually also matches
the spec since <https://github.com/tc39/ecma402/pull/208>.

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

--HG--
extra : source : 782ab98dcdc66444d76c0c2fd073f4cceb70e16f
2019-08-20 13:05:57 +00:00
Narcis Beleuzu
d27bf6c831 Backed out 7 changesets (bug 1574180) for jsreftest failures on resolve-element-function-name.js . CLOSED TREE
Backed out changeset 69a6c6867bde (bug 1574180)
Backed out changeset e2a74d92bdab (bug 1574180)
Backed out changeset 9d1a72c0bb0c (bug 1574180)
Backed out changeset 721c8caa85e3 (bug 1574180)
Backed out changeset 782ab98dcdc6 (bug 1574180)
Backed out changeset de51f104550c (bug 1574180)
Backed out changeset 5bc09a0dde11 (bug 1574180)

--HG--
rename : js/src/tests/test262/language/statements/class/elements/private-accessor-is-visible-in-computed-properties.js => js/src/tests/test262/language/statements/class/elements/prviate-accessor-is-visible-in-computed-properties.js
rename : js/src/tests/test262/language/statements/class/elements/private-method-is-visible-in-computed-properties.js => js/src/tests/test262/language/statements/class/elements/prviate-method-is-visible-in-computed-properties.js
2019-08-20 19:32:56 +03:00
Brindusan Cristian
746dfe8e6f Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-08-20 19:11:43 +03:00
Brindusan Cristian
e39319dacc Merge inbound to mozilla-central. a=merge
--HG--
rename : devtools/client/debugger/src/utils/workers.js => devtools/client/debugger/src/utils/threads.js
2019-08-20 19:06:08 +03:00
André Bargull
f2c31db645 Bug 1574180 - Part 5: Update test262 features list. r=khyperia
Depends on D42156

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

--HG--
extra : moz-landing-system : lando
2019-08-16 20:19:30 +00:00
André Bargull
6449cb3bd4 Bug 1574180 - Part 4: Update comment for "name" property of TypeErrorThrower. r=khyperia
Depends on D42155

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

--HG--
extra : moz-landing-system : lando
2019-08-16 20:19:23 +00:00
André Bargull
2900da90f1 Bug 1574180 - Part 3: Remove special-case for inferred empty name string. r=khyperia
An absent name and an empty string as the inferred name are now
indistinguishable, so we can remove the special case for empty strings in
ObjectEmitter.

Depends on D42154

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

--HG--
extra : moz-landing-system : lando
2019-08-16 20:19:21 +00:00
André Bargull
5e05a4da7e Bug 1574180 - Part 2: Assign "name" property for anonymous class expressions. r=khyperia
Default the "name" property of anonymous class expressions to the empty string
by removing the special case in `JSFunction::infallibleGetUnresolvedName()`.
With that change applied, `infallibleGetUnresolvedName()` never returns nullptr,
so we can remove nullptr handling in its callers. And additionally
`JSFunction::getUnresolvedName()` can be changed back to use `MutableHandleValue`
as its parameter, which also (re-)aligns the function with `getUnresolvedLength()`.

Depends on D42153

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

--HG--
extra : moz-landing-system : lando
2019-08-16 20:19:14 +00:00
André Bargull
cc009c6b87 Bug 1574180 - Part 1: Use function closures instead of bound functions for cached getter functions. r=jorendorff
This ensures an empty string is used for the name and actually also matches
the spec since <https://github.com/tc39/ecma402/pull/208>.

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

--HG--
extra : moz-landing-system : lando
2019-08-20 13:05:57 +00:00
André Bargull
361e8143de Bug 1574180 - Part 6: Update test262. r=khyperia
Update test262 to get the changes from <https://github.com/tc39/test262/pull/2299>.

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

--HG--
rename : js/src/tests/test262/language/statements/class/elements/prviate-accessor-is-visible-in-computed-properties.js => js/src/tests/test262/language/statements/class/elements/private-accessor-is-visible-in-computed-properties.js
rename : js/src/tests/test262/language/statements/class/elements/prviate-method-is-visible-in-computed-properties.js => js/src/tests/test262/language/statements/class/elements/private-method-is-visible-in-computed-properties.js
extra : moz-landing-system : lando
2019-08-16 20:20:17 +00:00
André Bargull
a54376e8fa Bug 1574180 - Part 7: Update test262 exclusions. r=khyperia
Differential Revision: https://phabricator.services.mozilla.com/D42159

--HG--
extra : moz-landing-system : lando
2019-08-16 20:21:06 +00:00
André Bargull
7790de7839 Bug 1572985: Sort "relevantExtensionKeys" to ensure the resolved locale's Unicode extension subtag is canonical. r=jwalden
Differential Revision: https://phabricator.services.mozilla.com/D41516

--HG--
extra : moz-landing-system : lando
2019-08-19 19:10:41 +00:00
Jon Coppeard
4259ff474f Bug 1574694 - Update memory info objects following changes to malloc accounting r=sfink
Differential Revision: https://phabricator.services.mozilla.com/D42490

--HG--
extra : moz-landing-system : lando
2019-08-20 09:57:06 +00:00
André Bargull
9694d385a0 Bug 1533328 - Part 8: Add comments explaining when <ctime> and ICU can return a different default time zone. r=jorendorff
Differential Revision: https://phabricator.services.mozilla.com/D41376

--HG--
extra : moz-landing-system : lando
2019-08-20 09:09:19 +00:00
André Bargull
df1430cb05 Bug 1533328 - Part 7: Remove separate 'localTZA_' field from DateTimeInfo. r=jorendorff
This field used to match "LocalTZA" from the ECMAScript specification when "LocalTZA"
was still a constant value. But in the current specification "LocalTZA" was changed to
a function to compute the local time zone adjustment at a given time. To avoid
confusion between `localTZA_` and "LocalTZA" from the specification, remove `localTZA_`
and instead only expose the `DateTimeInfo::localTZA()` function in contexts where the
old "LocalTZA" definition is still used (non-Intl or system ICU builds).

`localTZA_` was also used as a cache key for `DateObject` slots, replace the usage there
with `DateTimeInfo::utcToLocalStandardOffsetSeconds()` to make clear that the cache key
isn't tied to any spec calls to "LocalTZA".

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

--HG--
extra : moz-landing-system : lando
2019-08-20 09:08:56 +00:00
André Bargull
976ebfe8b5 Bug 1533328 - Part 6: Remove 'Adjustment' from DateTimeInfo methods and fields. r=jorendorff
Give these functions and fields a more general name to make clear they aren't tied
to the `localTZA_` field.

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

--HG--
extra : moz-landing-system : lando
2019-08-20 09:08:39 +00:00
André Bargull
6184767bfe Bug 1533328 - Part 5: Remove delay of ICU time zone updates. r=jorendorff
Part 1 ensures `DateTimeInfo::updateTimeZoneAdjustment()` is no longer called during
start-up, which enables us to resync ICU's time zone status right away. Furthermore
this change won't lead to a performance regression, because all callers to
`DateTimeInfo::updateTimeZoneAdjustment()` either also require an up-to-date ICU time
zone state (`DTI::{getDSTOffsetMilliseconds,getOffsetMilliseconds,timeZoneDisplayName}`)
or trigger an ICU time zone update anyway (`DTI::localTZA()` when called in
`DateObject::fillLocalTimeSlots()`).

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

--HG--
extra : moz-landing-system : lando
2019-08-20 09:08:16 +00:00
André Bargull
fd325a124b Bug 1533328 - Part 3: Switch 'reset' and 'update' method names in js::DateTimeInfo. r=jorendorff
That way `js::ResetTimeZoneInternal` is calling `js::DateTimeInfo::resetTimeZoneAdjustment`,
which aligns the use of 'reset' in the function names. And the method which actually checks
for updates is then called `js::DateTimeInfo::updateTimeZoneAdjustment`.

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

--HG--
extra : moz-landing-system : lando
2019-08-20 09:07:36 +00:00
André Bargull
052b93329d Bug 1533328 - Part 2: Move ICU time zone state into js::DateTimeInfo. r=jorendorff
This ensures the ICU time zone state is only resync'ed when an actual time zone
change was detected. Without this change the following script will resync the
ICU time zone state in each call to Intl.DateTimeFormat:
```
// js::DateTimeInfo is here in its initial state where no time zone info has
// been retrieved yet.

for (var i = 0; i < 10; ++i) {
  // Creating a new Realm triggers a time zone check. Because no time zone
  // info is yet available, a forced reset of the ICU time zone state is
  // requested.
  newGlobal();

  // The ICU time zone state was just resetted above, so this call will again
  // fetch the current system time zone.
  new Intl.DateTimeFormat();
}
```

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

--HG--
extra : moz-landing-system : lando
2019-08-20 09:07:29 +00:00
André Bargull
c8cbf8045e Bug 1533328 - Part 1: Avoid calling system time functions during start-up to avoid main-thread I/O. r=jorendorff
- Changes `DateTimeInfo::internalUpdateTimeZoneAdjustment` to set a flag to
  request an update instead of directly calling the system time functions.
- DateTimeInfo functions which require a valid time zone have been modified to
  call the new `acquireLockWithValidTimeZone` helper.

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

--HG--
extra : moz-landing-system : lando
2019-08-20 09:07:27 +00:00
André Bargull
7a584c3965 Bug 1573814: Use undefined for the initial slot values of Intl objects. r=jwalden
Now that the private slot accessors already handle `undefined`, we might as
well keep the initial value instead of manually setting the slots to nullptr.

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

--HG--
extra : histedit_source : 3b9c630abdb7ef2fdb0188f6f715606be8f82984
2019-08-14 15:29:34 +03:00
Mike Hommey
2bf1cc53d8 Bug 1555894 - Only enable cranelift on JS standalone builds. r=lth,nalexander
Differential Revision: https://phabricator.services.mozilla.com/D42261

--HG--
extra : moz-landing-system : lando
2019-08-19 13:12:25 +00:00
André Bargull
a7b67b5d56 Bug 1402379 - Part 4: Remove no longer needed #ifdef in Intl code. r=jwalden
Depends on D41770

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

--HG--
extra : moz-landing-system : lando
2019-08-19 18:42:25 +00:00
André Bargull
d741382cd1 Bug 1402379 - Part 3: Remove ICUStubs.h file. r=jwalden
Depends on D41769

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

--HG--
extra : moz-landing-system : lando
2019-08-19 18:39:04 +00:00
André Bargull
c8b6bf7f43 Bug 1402379 - Part 2: Don't build Intl sources when ENABLE_INTL_API is not set. r=jwalden
Depends on D41767

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

--HG--
extra : moz-landing-system : lando
2019-08-19 18:37:50 +00:00
André Bargull
b24e1821b8 Bug 1402379 - Part 1: Remove unused and unmaintainted jshint directives. r=jwalden
Differential Revision: https://phabricator.services.mozilla.com/D41767

--HG--
extra : moz-landing-system : lando
2019-08-19 18:35:00 +00:00
Jon Coppeard
03599eef81 Bug 1564012 - Add fuzz test for cross compartment pointers from debugger frame generator info to scripts r=jimb?
Differential Revision: https://phabricator.services.mozilla.com/D40601

--HG--
extra : moz-landing-system : lando
2019-08-19 19:51:13 +00:00
arthur.iakab
813ffcab93 Backed out 4 changesets (bug 1574002) for causing spidermonkey bustage on Disassemble.h CLOSED TREE
Backed out changeset ac0c1beee54f (bug 1574002)
Backed out changeset 3807af5c121a (bug 1574002)
Backed out changeset 9f6b91a72f1f (bug 1574002)
Backed out changeset 7e315ddebb02 (bug 1574002)
2019-08-19 21:21:53 +03:00
Ryan Hunt
500e76b466 Bug 1574002 - Add wasmDis(func) testing function for viewing disassembly of Wasm exported function. r=lth
Differential Revision: https://phabricator.services.mozilla.com/D42224

--HG--
extra : moz-landing-system : lando
2019-08-19 17:56:30 +00:00
Ryan Hunt
4b1f864ad8 Bug 1574002 - Use jit::Disassemble for Cranelift JitSpew. r=lth
Differential Revision: https://phabricator.services.mozilla.com/D42223

--HG--
extra : moz-landing-system : lando
2019-08-19 17:52:58 +00:00
Ryan Hunt
d0347517be Bug 1574002 - Add jit::Disassemble as a wrapper around existing in-tree disassemblers. r=lth
Differential Revision: https://phabricator.services.mozilla.com/D42052

--HG--
extra : moz-landing-system : lando
2019-08-19 17:57:42 +00:00
Ryan Hunt
4c9ae9a154 Bug 1574002 - Build Zydis even when not using Cranelift. r=lth
The #ifdef(JS_JITSPEW) restriction is still kept.

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

--HG--
extra : moz-landing-system : lando
2019-08-19 17:57:42 +00:00
Kashav Madan
8f75b0e335 Bug 1574319 - Remove ContentParent::Recv* skip-if annotations, r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D42374

--HG--
extra : moz-landing-system : lando
2019-08-16 21:00:17 +00:00
Benjamin Bouvier
2f3fc9c4ca Bug 1573550: Pass a null StackmapSink in Cranelift until we implement it; r=jseward
Differential Revision: https://phabricator.services.mozilla.com/D42478

--HG--
extra : moz-landing-system : lando
2019-08-19 10:44:56 +00:00
Benjamin Bouvier
1db724abed Bug 1573550: Cranelift: use the Windows calling convention on Windows; r=lth
Differential Revision: https://phabricator.services.mozilla.com/D41944

--HG--
extra : moz-landing-system : lando
2019-08-19 10:22:41 +00:00
Jon Coppeard
ec0afec70b Bug 1573879 - Remove some more unnecessary includes r=sfink
Differential Revision: https://phabricator.services.mozilla.com/D41989

--HG--
extra : moz-landing-system : lando
2019-08-19 09:58:26 +00:00
Jon Coppeard
19abd935f9 Bug 1573879 - Refactor ZoneAllocator to remove the dependency on JSRuntime r=sfink
Differential Revision: https://phabricator.services.mozilla.com/D41988

--HG--
extra : moz-landing-system : lando
2019-08-19 09:58:12 +00:00
Ciure Andrei
9a123fb597 Backed out changeset 81156ff3f4fa (bug 1571656) for causing browser_PageActions.js and test_insertTree_fixupOrSkipInvalidEntries.js to perma fail CLOSED TREE 2019-08-19 13:00:44 +03:00
Jon Coppeard
3e56e9eb4b Bug 1574339 - Use a default GC invocation kind if embedding callbacks finish the current GC as we're tring to start a slice r=sfink
Differential Revision: https://phabricator.services.mozilla.com/D42331

--HG--
extra : moz-landing-system : lando
2019-08-17 00:50:18 +00:00
Moritz Birghan
240771fa29 Bug 1571656 - Use Assert.jsm numeric comparison functions in tests r=mixedpuppy,MattN
Differential Revision: https://phabricator.services.mozilla.com/D40614

--HG--
extra : moz-landing-system : lando
2019-08-19 07:17:12 +00:00
Jon Coppeard
5912f376ab Bug 1573458 - Leave the atoms zone when performing a GC r=tcampbell
Entering the atoms zone with AutoAllocInAtomsZone is a bit of a special case and we don't support entering another realm in this state. Unfortunately this can happen during GC in a couple of place. The patch temporarily leaves the atoms zone during GC so that callbacks can enter whatever zones they like.

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

--HG--
extra : moz-landing-system : lando
2019-08-16 16:26:30 +00:00
Steve Fink
67c5ad8613 Bug 1572988 - error check registerMallocedBuffer r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D41847

--HG--
extra : moz-landing-system : lando
2019-08-17 01:15:44 +00:00
Mike Hommey
734aade396 Bug 1574421 - Don't build editline when we don't use it. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D42278

--HG--
extra : moz-landing-system : lando
2019-08-16 13:11:16 +00:00
Brian Hackett
091f2992d2 Bug 1573938 - Never collect wrapper JSObjects when recording/replaying, r=mccr8.
Differential Revision: https://phabricator.services.mozilla.com/D42011

--HG--
extra : moz-landing-system : lando
2019-08-16 20:51:12 +00:00
Ryan Hunt
cbd1250927 Bug 1573818 - Add NormalizeElemSegmentKind helper for converting between enum representations. r=bbouvier
Differential Revision: https://phabricator.services.mozilla.com/D42049

--HG--
extra : moz-landing-system : lando
2019-08-16 20:12:59 +00:00
Jan de Mooij
dd846f7248 Bug 1571446 part 2 - Use accessors instead of accessing jitScript_ directly in various JSScript methods. r=tcampbell
This makes it easier to change the jitScript_ field in later patches.

Depends on D42288

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

--HG--
extra : moz-landing-system : lando
2019-08-16 12:41:34 +00:00
Jan de Mooij
d42ec6a97b Bug 1571446 part 1 - Make JSScript::jitScript() assert hasJitScript() and add JSScript::maybeJitScript(). r=tcampbell
maybeJitScript() will become a bit slower in the future but many callers know
statically they have a script with a JitScript so by calling jitScript() there
we can avoid the hasJitScript() check in opt builds.

This is also consistent with the baselineScript() and ionScript() accessors.

I renamed jitScript() to jitScriptX() and then fixed all callers to call
the right method.

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

--HG--
extra : moz-landing-system : lando
2019-08-16 12:40:20 +00:00
Benjamin Bouvier
8227aa48e2 Bug 1573098: Build Spidermonkey Rust's library unconditionally; r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D41992

--HG--
extra : moz-landing-system : lando
2019-08-15 15:06:07 +00:00
Benjamin Bouvier
01bebbc58d Bug 1573817: Remove unused parameter in Instance::onMovingGrowMemory; r=luke
Differential Revision: https://phabricator.services.mozilla.com/D41969

--HG--
extra : moz-landing-system : lando
2019-08-14 18:54:30 +00:00
Benjamin Bouvier
b66e555948 Bug 1573817: Remove unused parameter from wasm::ProfilingFrameIterator; r=luke
Differential Revision: https://phabricator.services.mozilla.com/D41968

--HG--
extra : moz-landing-system : lando
2019-08-14 18:54:30 +00:00
Benjamin Bouvier
a1aaafbbcb Bug 1573817: Remove unused cx parameters from WasmDebug methods; r=yury
Differential Revision: https://phabricator.services.mozilla.com/D41967

--HG--
extra : moz-landing-system : lando
2019-08-14 18:54:29 +00:00
Benjamin Bouvier
0a82c8db8d Bug 1573817: Remove unused parameter in EffectiveCores; r=lth
Differential Revision: https://phabricator.services.mozilla.com/D41966

--HG--
extra : moz-landing-system : lando
2019-08-14 18:54:29 +00:00
Benjamin Bouvier
6a195d652a Bug 1573817: Remove unused parameter in emitBarrieredStore; r=lth
Differential Revision: https://phabricator.services.mozilla.com/D41965

--HG--
extra : moz-landing-system : lando
2019-08-14 18:54:29 +00:00
Benjamin Bouvier
7cba4f993a Bug 1573817: Remove unused parameters in checkDivideByZeroI32; r=lth
Differential Revision: https://phabricator.services.mozilla.com/D41964

--HG--
extra : moz-landing-system : lando
2019-08-14 18:54:29 +00:00