Commit Graph

62054 Commits

Author SHA1 Message Date
Sebastian Hengst
aa78440a09 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: EE6DcCgHufi
2017-10-09 11:19:20 +02:00
Nicholas Nethercote
8a68e6fb83 Bug 1403868 (part 4) - Reduce tools/profiler/public/*.h to almost nothing in non-MOZ_GECKO_PROFILER builds. r=mstange.
Currently the Gecko Profiler defines a moderate amount of stuff when
MOZ_GECKO_PROFILER is undefined. It also #includes various headers, including
JS ones. This is making it difficult to separate Gecko's media stack for
inclusion in Servo.

This patch greatly simplifies how things are exposed. The starting point is:

- GeckoProfiler.h can be #included unconditionally;

- everything else from the profiler must be guarded by MOZ_GECKO_PROFILER.

In practice this introduces way too many #ifdefs, so the patch loosens it by
adding no-op macros for a number of the most common operations.

The net result is that #ifdefs and macros are used a bit more, but almost
nothing is exposed in non-MOZ_GECKO_PROFILER builds (including
ProfilerMarkerPayload.h and GeckoProfiler.h), and understanding what is exposed
is much simpler than before.

Note also that in BHR, ThreadStackHelper is now entirely absent in
non-MOZ_GECKO_PROFILER builds.
2017-10-04 09:11:18 +11:00
Nicholas Nethercote
d225f7151b Bug 1400460 - Rename nsIAtom as nsAtom. r=hiro.
(Path is actually r=froydnj.)

Bug 1400459 devirtualized nsIAtom so that it is no longer a subclass of
nsISupports. This means that nsAtom is now a better name for it than nsIAtom.

MozReview-Commit-ID: 91U22X2NydP

--HG--
rename : xpcom/ds/nsIAtom.h => xpcom/ds/nsAtom.h
extra : rebase_source : ac3e904a21b8b48e74534fff964f1623ee937c67
2017-10-03 09:05:19 +11:00
Kris Maglione
30d4691c07 Bug 1404741: Don't call mozJSComponentLoader::CompilationScope during URLPreloader critical section. r=mccr8
The URLPreloader's initialization code accesses the Omnijar cache off-main
thread. It can do so safely only as long as the main thread is blocked, or
running code which is guaranteed never to touch Omnijar, while its critical
section runs.

While that was guaranteed for previous versions of the code, some invariants
changed when we began using the component loader's shared global for initial
compilation. Once the global is created, we can safely use it to initialize
compilation. But creating the global invokes a large amount of Gecko code,
some of which touches Omnijar in the process.

MozReview-Commit-ID: 48WoIZtGPTo

--HG--
extra : rebase_source : 9bd5d884e32cfa59c022edb00078aac050acb20b
2017-10-06 15:09:11 -07:00
Jan de Mooij
dafafd391d Bug 1406340 - Remove ArgumentsRectifierReg and just load argc from the stack. r=bbouvier 2017-10-07 19:18:26 +02:00
Jan de Mooij
6af5aecee0 Bug 1405701 - Fix new.target in Baseline OSR eval frames. r=tcampbell 2017-10-07 19:16:34 +02:00
yuyin
648a8d589e Bug 1404590 - MIPS: Split append code in function appendRawCode(). r=luke 2017-09-30 00:51:00 -04:00
yuyin
ad082e2a4b Bug 1404590 - MIPS64: Fix MacroAssembler::PopStackPtr. r=luke
SizeWord can not use on 64-bit.
2017-09-30 00:51:00 -04:00
yuyin
111885032e Bug 1404590 - Implement missing functions on mips64. r=luke
Also see bug 1393723.
2017-09-30 00:50:00 -04:00
Sebastian Hengst
5d61e2eec8 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: JDCYKq7yKwb
2017-10-07 10:45:11 +02:00
Sebastian Hengst
b834f0d177 merge autoland to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 7Ez95T2ivfR
2017-10-07 10:37:39 +02:00
David Major
7e599076a6 Bug 1405735 - Make worker JS context options respect safe mode. r=billm
--HG--
extra : amend_source : 94345cc176019885832a57c5d441b3ed5cc63973
2017-10-06 12:50:50 -04:00
Luke Wagner
959ca13d21 Bug 1347644 - Fix possible deadlock with PromiseHelperTasks (r=lth)
MozReview-Commit-ID: 2aR2V1Dt4Bl

--HG--
extra : rebase_source : 0d838066a306ceccd9afedd28dc29ed4ddc1eb7e
2017-10-06 10:41:22 -05:00
Luke Wagner
167ed7fd6b Bug 1347644 - Baldr: fix race in POSIX Thread impl (r=till)
MozReview-Commit-ID: K0oRcTtuPbO

--HG--
extra : rebase_source : 720ee66364c070b0407c3f31bb212eaf99bc1603
2017-10-06 10:40:51 -05:00
Luke Wagner
69790ff8a2 Bug 1347644 - Baldr: refactor promise compile tasks in prepration for streaming (r=till)
* * *
[mq]: blah

MozReview-Commit-ID: 6n7zT8hdnZD

--HG--
extra : rebase_source : 1e3835bada50e2b5299666872ea7cdfcf4e46775
2017-10-06 10:40:44 -05:00
Luke Wagner
c31f8ceeb0 Bug 1347644 - Propagate quit() out of drainJobQueue() (r=till)
MozReview-Commit-ID: IKMsOr0nDtG

--HG--
extra : rebase_source : 33770384f3f9d508417a65b8a1f58039ab05a18a
2017-10-06 10:40:30 -05:00
Tom Schuster
f8668104df Bug 1404659 - Constant fold in/hasOwn with a definite slot or known unboxed offset. r=jandem 2017-10-06 17:45:52 +02:00
Nicolas B. Pierron
79edd7ebf7 Bug 1405795 - Use UniquePtr for the single-linked lists of LifoAlloc. r=jandem,luke 2017-10-06 15:15:19 +00:00
Jan de Mooij
efc24170f6 Bug 1347984 - Check for dead object proxies in TriggerPromiseReactions. r=till 2017-10-06 20:11:07 +02:00
Lars T Hansen
b162433297 Bug 1402939 - Completely ban unaligned exclusive accesses on ARM simulator. r=bbouvier
--HG--
extra : source : 55d13c787d96450c4cd4b02f843516cd988cd8a3
2017-09-29 17:36:55 +02:00
Lars T Hansen
460164fd6a Bug 1404760 - wasm baseline, disable branch optimization for int64 on x86 to avoid register starvation. r=bbouvier
--HG--
extra : source : c80e87f3242679c9e9548592f27173871824b681
2017-10-02 10:45:26 +02:00
Christian Holler
566f9ff84a Bug 1406081 - Add GCOV signal handlers to JS shell. r=jandem
MozReview-Commit-ID: PKChrt45KO

--HG--
extra : rebase_source : 76440b58b4bb9936926f072b5959e48d54b57b86
2017-10-05 18:32:51 +02:00
Mike Hommey
4fe7459180 Bug 1403366 - Stop requiring argv[0] for XRE_GetBinaryPath and the underlying BinaryPath::Get. r=froydnj
--HG--
extra : rebase_source : ac7bb0d7766fce5b6325c34c2868b26eec594e18
2017-09-28 10:37:27 +09:00
Robert Helmer
b5691ba8af Bug 1348981 - provide method to re-initialize URLPreloader for xpcshell tests r=kmag
MozReview-Commit-ID: rnjEJc1Uir

--HG--
extra : rebase_source : ee273d624c3d4a4ec21506574f1e203fce4b2d45
2017-09-21 11:24:14 -07:00
Robert Helmer
cb1aad0897 Bug 1348981 - add Cu.readURI helper for sync file reading on startup r=kmag
MozReview-Commit-ID: 1yz25afCUDs

--HG--
extra : rebase_source : 549e28b7ceeb6556156d8f6e4d2a7470852d64c0
2017-09-19 12:13:08 -07:00
Wes Kocher
d8985b6e57 Merge inbound to central, a=merge
MozReview-Commit-ID: IUFdbLdYFhX
2017-10-04 16:37:59 -07:00
Jon Coppeard
5a57adf461 Bug 1384049 - Trigger an incremental GC based on malloc memory counters r=pbone 2017-10-04 15:45:30 +01:00
Tom Schuster
e9b18c4d63 Bug 1405457 - Scalar replacement for call objects. r=nbp 2017-10-04 16:41:45 +02:00
Tom Ritter
26f1bc6cd8 Bug 1404147 Cast constants to the type they are compared to r=smaug
MozReview-Commit-ID: JQDZTBOALZm

--HG--
extra : rebase_source : 5cb3ed5da7f99defd524247ff798c9c501ef851a
2017-09-28 17:47:43 -05:00
Zibi Braniecki
fef60ef862 Bug 1403318 - Expose Intl.PluralRules. r=anba
MozReview-Commit-ID: qxU4dWBO94

--HG--
extra : rebase_source : ce10c69018defcd71e2e8e83eb48d8413b478b88
2017-09-27 19:16:10 +02:00
Jon Coppeard
bb53eafa1b Bug 1341093 - Transfer malloc bytes when zones are merged r=sfink 2017-10-04 13:22:29 +01:00
Jon Coppeard
fe8c0b3d83 Bug 1405274 - Add a dynamic malloc bytes threshold r=sfink 2017-10-04 13:20:32 +01:00
Jon Coppeard
9bd7df8b2f Bug 1405274 - Make malloc counters count up instead of down r=sfink 2017-10-04 13:20:32 +01:00
Jon Coppeard
df11828d61 Bug 1405274 - Always update runtime malloc counter too when malloc memory is associated with a zone r=sfink 2017-10-04 13:20:32 +01:00
Benjamin Bouvier
92f5733cdc Bug 1404714: inIon() should return false when in wasm; r=nbp
MozReview-Commit-ID: 76qU9UjcROt

--HG--
extra : rebase_source : 1d42abab89e3a839d29ad6f8cd800e7b05259606
2017-10-03 19:57:05 +02:00
Benjamin Bouvier
70df0d4656 Bug 1403873: Rename JitProfilingFrameIterator to JSJitProfilingFrameIterator; r=luke
(and associated methods in ProfilingFrameIterator: jitIter=>jsJitIter, isJit=>isJSJit)

MozReview-Commit-ID: CaYxMlOsg7W

--HG--
extra : rebase_source : 87506558b17ce59dd2943e4579ff639d3ceefcbc
2017-10-03 20:25:21 +02:00
Benjamin Bouvier
d5ee809c5d Bug 1403873: Move JitProfilingFrameIterator to JSJitFrameIter.cpp; r=jandem
MozReview-Commit-ID: 9aepFd0A9Xs

--HG--
extra : rebase_source : d913a135101db48a3e9439fbeb21190d8c2ecd70
2017-10-03 20:17:14 +02:00
Sebastian Hengst
5e0b457b10 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: EVLGo1zCANb
2017-10-04 11:13:24 +02:00
Wes Kocher
8962ceb779 Backed out changeset 0b08540034c0 (bug 1405330) for failures in browser_toolbox_options_enable_serviceworkers_testing.js a=backout
MozReview-Commit-ID: HLiQlGjWI13
2017-10-03 16:35:11 -07:00
Sebastian Hengst
1d5497084d Backed out changeset 582d112281f9 (bug 1403366) 2017-10-04 01:27:07 +02:00
Sebastian Hengst
4be222f271 Backed out changeset f397bfb365e1 (bug 1348981) 2017-10-04 01:00:21 +02:00
Sebastian Hengst
3c14e73ba8 Backed out changeset 199b3fe8114f (bug 1348981) 2017-10-04 01:00:15 +02:00
Mike Hommey
3b34606aa6 Bug 1403366 - Stop requiring argv[0] for XRE_GetBinaryPath and the underlying BinaryPath::Get. r=froydnj
--HG--
extra : rebase_source : ac7bb0d7766fce5b6325c34c2868b26eec594e18
2017-09-28 10:37:27 +09:00
Wes Kocher
9e15b5649f Merge m-c to autoland, a=merge
MozReview-Commit-ID: 43R3aNMoMyN
2017-10-03 14:58:01 -07:00
André Bargull
a419b4281c Bug 1403911 - Part 16: Special case Latin-1 strings in encodeURI/decodeURI. r=jandem
--HG--
extra : rebase_source : c0454807aa322d9a0a0219f0f817e7383f1ef22f
2017-10-03 16:11:08 +02:00
André Bargull
fbc26e9d48 Bug 1403911 - Part 15: Generate ASCII lookup tables for Unicode methods. r=jandem
--HG--
extra : rebase_source : 3784168520952875e41f3b3cfdd4f85261a11c43
2017-10-03 16:11:08 +02:00
André Bargull
ec6356170a Bug 1403911 - Part 14: Move JSSubString struct to its remaining callers. r=jandem
--HG--
extra : rebase_source : 693353d446e624a8701772487e9fb9f950a9befb
2017-10-03 16:11:08 +02:00
André Bargull
28acf13893 Bug 1403911 - Part 13: Remove unused methods from RegExpStatics class. r=jandem
--HG--
extra : rebase_source : d06a09eb416c75da0121548f90770056a19d48b3
2017-10-03 16:11:08 +02:00
André Bargull
d607068c85 Bug 1403911 - Part 12: Inline RegExp flag validation and correct return type. r=jandem
--HG--
extra : rebase_source : 2a4f230705de05951b05094daf67cd10a94031bd
2017-10-03 16:11:08 +02:00
André Bargull
315414bde6 Bug 1403911 - Part 11: Call internal self-hosting function through CallSelfHostedFunction to reduce code duplication. r=jandem
--HG--
extra : rebase_source : f5a4c64f4fa3bcadd421b61ea5aa854f9314fd79
2017-10-03 16:11:08 +02:00