gecko-dev/dom
Boris Zbarsky d36e5a4ea5 Bug 1214364 part 4. Only output full-featured Init methods for dictionaries that need them. r=peterv
Dictionaries that we never initialize with JS values don't need a full-featured
Init() method.  Instead, we output a cut-down Init() method that doesn't even
take a JSContext and Value as argument, and skips as much work as it can.  It
uses constant-false for "is the value present?", but also, to avoid compilation
errors due to use of `cx` and `val` in now-dead conversion code, it tells the
native-to-JS conversion machinery that the value is always missing, which lets
it skip most of the the work it would normally try to do and just output
initialization to the default value.  We only need to do this for members that
have default values; the others either remain no-passed or are required members
with no default-initialization behavior.

This saves about 330KB of codesize on Linux64 without PGO and 285KB with PGO.

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

--HG--
extra : moz-landing-system : lando
2019-10-28 20:24:31 +00:00
..
abort
animation Bug 1591121 - Disable some tests on Android; r=geckoview-reviewers,snorp 2019-10-25 13:30:06 +00:00
audiochannel Bug 1585156 - Remove useless inclusions of nsIDOMWindow.h and nsIDOMWindowUtils.h r=smaug 2019-09-30 22:06:47 +00:00
base Bug 1586750, don't compile event handlers on unloaded windows r=peterv 2019-10-28 21:08:50 +00:00
battery
bindings Bug 1214364 part 4. Only output full-featured Init methods for dictionaries that need them. r=peterv 2019-10-28 20:24:31 +00:00
broadcastchannel
browser-element Bug 1585119 - Re-enable many more mochitests on Android; r=geckoview-reviewers,snorp 2019-10-18 14:35:20 +00:00
cache Bug 1591491. Add more use of FakeString::ShareOrDependUpon. r=froydnj 2019-10-28 20:41:59 +00:00
canvas Bug 1580462 - Store iframe's FeaturePolicy in browsingContext to inherit cross origin document. r=baku,farre 2019-10-23 19:39:00 +00:00
chrome-webidl Bug 1214364 part 4. Only output full-featured Init methods for dictionaries that need them. r=peterv 2019-10-28 20:24:31 +00:00
clients Bug 1583859 - ExecutionReadyPromise should not be exclusive. r=perry 2019-10-23 17:55:38 +00:00
commandhandler Bug 1585156 - Remove useless inclusions of nsIDOMWindow.h and nsIDOMWindowUtils.h r=smaug 2019-09-30 22:06:47 +00:00
console Bug 1582892. Expose the number of strings in a Web IDL enum in a nice way. r=edgar 2019-10-23 03:54:39 +00:00
credentialmanagement
crypto Bug 1585119 - Re-enable many mochitests on android; r=geckoview-reviewers,snorp 2019-10-15 15:07:09 +00:00
debugger
docs
encoding Bug 1586358 - Replace existing instances of GENERATED_FILES with references to the GeneratedFile template r=firefox-build-system-reviewers,mshal 2019-10-07 21:15:19 +00:00
events Bug 1586750, don't compile event handlers on unloaded windows r=peterv 2019-10-28 21:08:50 +00:00
fetch Bug 824857: Support IDL stringifier attributes r=bzbarsky 2019-10-23 04:55:54 +00:00
file Bug 1590022 - Use union return value for FileReader.result, r=smaug 2019-10-22 11:53:18 +00:00
filehandle
filesystem Bug 1585284 - Use nsIGlobalObject in any Blob/File CTOR, r=smaug 2019-10-21 05:33:33 +00:00
flex
gamepad Bug 1585156 - Remove useless inclusions of nsIDOMWindow.h and nsIDOMWindowUtils.h r=smaug 2019-09-30 22:06:47 +00:00
geolocation Bug 1585297- Use Principal->SchemeIs in nsGeolocation.cpp r=ckerschb 2019-10-01 12:54:56 +00:00
grid
html Bug 1589027 - Fix object.tabIndex should return 0 by default; r=smaug 2019-10-28 15:50:59 +00:00
imptests Bug 1194860 - Remove dom/imptests; r=jgraham 2019-10-15 08:22:15 +00:00
indexedDB Bug 1591132 - Make it easy to switch on and off these assertions in different build configurations. r=froydnj 2019-10-28 23:27:30 +00:00
interfaces Bug 1476659, remove invertSelection from mozilla-central, r=NeilDeakin 2019-10-28 20:58:38 +00:00
ipc Bug 1587062 - Move SandboxFlags from DocShell to BrowsingContext; r=smaug 2019-10-28 11:48:30 +00:00
jsurl
l10n Bug 1513325 - Remove textbox binding. r=emilio,dao 2019-10-09 09:27:28 +00:00
locales Bug 1587577 - Remove support for the mfenced element. r=emilio 2019-10-17 15:53:31 +00:00
localstorage Bug 1589626 - LSNG: Add a check for null quota object; r=ttung 2019-10-18 14:13:37 +00:00
manifest Bug 1587793 - re-associate manifest with a browser when getting them from cache r=snorp 2019-10-24 04:58:13 +00:00
mathml Bug 1575870. Remove support for XLink on MathML elements. r=emilio 2019-10-05 21:47:38 +00:00
media Bug 1591712 - Remove useless OwnerDoc() checks in MediaPlayackDelayPolicy. r=alwu 2019-10-28 17:29:08 +00:00
messagechannel
midi
network
notification Backed out 2 changesets (bug 1591803) for causing build busatges on PermissionManager.idl. CLOSED TREE 2019-10-28 22:12:01 +02:00
offline Bug 1575934 - Create the channels used to download and verify appcache entries with the cookie settings belonging to the document which created the appcache; r=baku 2019-10-15 17:32:54 +00:00
payments Bug 1589285 part 3. Use the new GetString methods for Web IDL enums in various places. r=edgar 2019-10-17 23:40:57 +00:00
performance Bug 1571219 - Refactor PerformanceMeasure to avoid double-reducing timestamps r=baku 2019-10-23 11:42:10 +00:00
permission Bug 1582892. Expose the number of strings in a Web IDL enum in a nice way. r=edgar 2019-10-23 03:54:39 +00:00
plugins Bug 1591102 - Let some SpecialPowers.pushPermissions callers use promises r=jdm 2019-10-27 15:28:41 +00:00
power Bug 1585156 - Remove useless inclusions of nsIDOMWindow.h and nsIDOMWindowUtils.h r=smaug 2019-09-30 22:06:47 +00:00
presentation Bug 1585284 - Use nsIGlobalObject in any Blob/File CTOR, r=smaug 2019-10-21 05:33:33 +00:00
prio
promise Bug 1591655 - Remove the unnecessary |proto| argument from |JS::NewPromiseObject| and its callers, seeing as all callers pass |nullptr| (and therefore uniformly request the default prototype). r=jandem,bzbarsky 2019-10-26 08:14:05 +00:00
prototype Bug 1510785 - Only build XBL related code when MOZ_XBL is defined. r=bzbarsky 2019-10-08 23:52:14 +00:00
push Bug 1591102 - Let some SpecialPowers.pushPermissions callers use promises r=jdm 2019-10-27 15:28:41 +00:00
quota Backed out changeset e48111fd8ea2 (bug 1586189) as per Tom's request. CLOSED TREE 2019-10-28 16:17:46 +02:00
reporting Bug 1585119 - Re-enable many more mochitests on Android; r=geckoview-reviewers,snorp 2019-10-18 14:35:20 +00:00
res
script Bug 1588899 - P1. Move classification flags related method to nsIClassifiedChannel. r=Ehsan,baku 2019-10-19 04:30:24 +00:00
security Bug 1590321 - Rewrite browser_test_referrer_loadInOtherProcess.js to work with fission enabled r=ckerschb 2019-10-28 09:44:30 +00:00
serviceworkers Bug 1591491. Add more use of FakeString::ShareOrDependUpon. r=froydnj 2019-10-28 20:41:59 +00:00
simpledb
smil Bug 1587142 - Remove most XBL tests in dom/ r=bzbarsky 2019-10-25 22:38:08 +00:00
storage
svg Bug 1510785 - Only build XBL related code when MOZ_XBL is defined. r=bzbarsky 2019-10-08 23:52:14 +00:00
system Bug 1587836 - update permissions related Bugzilla components stored in moz.build files. r=johannh 2019-10-11 08:44:00 +00:00
tests Bug 1587142 - Remove most XBL tests in dom/ r=bzbarsky 2019-10-25 22:38:08 +00:00
u2f
url Bug 824857: Support IDL stringifier attributes r=bzbarsky 2019-10-23 04:55:54 +00:00
vr
webauthn Bug 1582892. Expose the number of strings in a Web IDL enum in a nice way. r=edgar 2019-10-23 03:54:39 +00:00
webbrowserpersist Bug 1586681 - Ensure URIFIxup uses the right engine when there's a separate PB engine. r=Standard8,Gijs 2019-10-12 12:37:51 +00:00
webgpu Backed out changeset 71d5a7f29d05 (bug 1586396) for breaking the wpts. CLOSED TREE 2019-10-16 08:12:32 +03:00
webidl Bug 1214364 part 4. Only output full-featured Init methods for dictionaries that need them. r=peterv 2019-10-28 20:24:31 +00:00
websocket Bug 1585284 - Force global in Blob CTOR, r=smaug 2019-10-21 05:33:19 +00:00
workers Bug 1591491. Add more use of FakeString::ShareOrDependUpon. r=froydnj 2019-10-28 20:41:59 +00:00
worklet Bug 1591491. Add more use of FakeString::ShareOrDependUpon. r=froydnj 2019-10-28 20:41:59 +00:00
xbl Bug 1587142 - Remove most XBL tests in dom/ r=bzbarsky 2019-10-25 22:38:08 +00:00
xhr Bug 1591491. Add more use of FakeString::ShareOrDependUpon. r=froydnj 2019-10-28 20:41:59 +00:00
xml Bug 1585119 - Re-enable many mochitests on android; r=geckoview-reviewers,snorp 2019-10-15 15:07:09 +00:00
xslt Bug 1587905 - Remove useless variable 'typeTest' declaration & assignation r=Ehsan 2019-10-10 22:48:49 +00:00
xul Bug 1587142 - Remove most XBL tests in dom/ r=bzbarsky 2019-10-25 22:38:08 +00:00
jar.mn
moz.build Backed out changeset 8fb923925923 (bug 1194860) for causing perma mda3 failures in dom/media/webaudio/test/test_convolverNodeChannelInterpretationChanges.html CLOSED TREE 2019-10-14 19:27:08 +03:00