gecko-dev/dom/chrome-webidl
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
..
BrowsingContext.webidl Bug 1587062 - Move SandboxFlags from DocShell to BrowsingContext; r=smaug 2019-10-28 11:48:30 +00:00
ChannelWrapper.webidl Bug 1588899 - P1. Move classification flags related method to nsIClassifiedChannel. r=Ehsan,baku 2019-10-19 04:30:24 +00:00
ChromeUtils.webidl Bug 1214364 part 1. Only output conversions to/from JSON for dictionaries that need it. r=peterv 2019-10-23 15:58:29 +00:00
DOMLocalization.webidl Bug 1423562 part 3. Remove [PrimaryGlobal] and require explicit [Exposed] annotations on everything. r=edgar 2019-09-27 15:26:14 +00:00
DebuggerNotification.webidl Bug 1423562 part 3. Remove [PrimaryGlobal] and require explicit [Exposed] annotations on everything. r=edgar 2019-09-27 15:26:14 +00:00
DebuggerNotificationObserver.webidl Bug 1578173 part 2. Convert chrome-webidl bits to constructor operations. r=edgar 2019-09-11 20:55:26 +00:00
DebuggerUtils.webidl Bug 1214364 part 1. Only output conversions to/from JSON for dictionaries that need it. r=peterv 2019-10-23 15:58:29 +00:00
DocumentL10n.webidl Bug 1423562 part 3. Remove [PrimaryGlobal] and require explicit [Exposed] annotations on everything. r=edgar 2019-09-27 15:26:14 +00:00
DominatorTree.webidl
Flex.webidl Bug 1423562 part 3. Remove [PrimaryGlobal] and require explicit [Exposed] annotations on everything. r=edgar 2019-09-27 15:26:14 +00:00
HeapSnapshot.webidl
InspectorUtils.webidl Bug 1423562 part 3. Remove [PrimaryGlobal] and require explicit [Exposed] annotations on everything. r=edgar 2019-09-27 15:26:14 +00:00
IteratorResult.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
JSWindowActor.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
L10nOverlays.webidl Bug 1423562 part 3. Remove [PrimaryGlobal] and require explicit [Exposed] annotations on everything. r=edgar 2019-09-27 15:26:14 +00:00
Localization.webidl Bug 1214364 part 3. Only output ToObjectInternal methods for dictionaries that need it. r=peterv 2019-10-28 23:20:11 +00:00
MatchGlob.webidl Bug 1578173 part 2. Convert chrome-webidl bits to constructor operations. r=edgar 2019-09-11 20:55:26 +00:00
MatchPattern.webidl Bug 1578173 part 2. Convert chrome-webidl bits to constructor operations. r=edgar 2019-09-11 20:55:26 +00:00
MessageManager.webidl Bug 1580168 Part 1 - Add processID and isParent accessors to ProcessMessageManager, r=nika. 2019-10-09 20:49:28 +00:00
MozDocumentObserver.webidl Bug 1423562 part 3. Remove [PrimaryGlobal] and require explicit [Exposed] annotations on everything. r=edgar 2019-09-27 15:26:14 +00:00
MozSharedMap.webidl Bug 1423562 part 3. Remove [PrimaryGlobal] and require explicit [Exposed] annotations on everything. r=edgar 2019-09-27 15:26:14 +00:00
MozStorageAsyncStatementParams.webidl Bug 1423562 part 3. Remove [PrimaryGlobal] and require explicit [Exposed] annotations on everything. r=edgar 2019-09-27 15:26:14 +00:00
MozStorageStatementParams.webidl Bug 1423562 part 3. Remove [PrimaryGlobal] and require explicit [Exposed] annotations on everything. r=edgar 2019-09-27 15:26:14 +00:00
MozStorageStatementRow.webidl Bug 1423562 part 3. Remove [PrimaryGlobal] and require explicit [Exposed] annotations on everything. r=edgar 2019-09-27 15:26:14 +00:00
PlacesEvent.webidl Bug 1578173 part 2. Convert chrome-webidl bits to constructor operations. r=edgar 2019-09-11 20:55:26 +00:00
PlacesObservers.webidl Bug 1578173 part 2. Convert chrome-webidl bits to constructor operations. r=edgar 2019-09-11 20:55:26 +00:00
PrecompiledScript.webidl
PrioEncoder.webidl
PromiseDebugging.webidl Bug 1423562 part 3. Remove [PrimaryGlobal] and require explicit [Exposed] annotations on everything. r=edgar 2019-09-27 15:26:14 +00:00
SessionStoreUtils.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
StructuredCloneHolder.webidl Bug 1578173 part 2. Convert chrome-webidl bits to constructor operations. r=edgar 2019-09-11 20:55:26 +00:00
TelemetryStopwatch.webidl Bug 1562680. Implement the new syntax for Web IDL dictionary defaulting. r=peterv 2019-07-03 07:52:35 +00:00
WebExtensionContentScript.webidl Bug 1578173 part 2. Convert chrome-webidl bits to constructor operations. r=edgar 2019-09-11 20:55:26 +00:00
WebExtensionPolicy.webidl Bug 1580816 Part 1: Add isPrivileged to WebExtensionPolicy r=zombie 2019-10-01 23:58:26 +00:00
WindowGlobalActors.webidl Bug 1576714 - Part 3: Initiate subframe process switches from the parent, r=kmag 2019-10-15 16:19:16 +00:00
XULFrameElement.webidl Bug 1587819. Convert [HTMLConstructor] to being an extended attribute on constructor operations. r=edgar 2019-10-17 15:38:39 +00:00
XULMenuElement.webidl Bug 1587819. Convert [HTMLConstructor] to being an extended attribute on constructor operations. r=edgar 2019-10-17 15:38:39 +00:00
XULTextElement.webidl Bug 1587819. Convert [HTMLConstructor] to being an extended attribute on constructor operations. r=edgar 2019-10-17 15:38:39 +00:00
XULTreeElement.webidl Bug 1587819. Convert [HTMLConstructor] to being an extended attribute on constructor operations. r=edgar 2019-10-17 15:38:39 +00:00
moz.build Bug 1538056 Part 1 - Notify devtools about HTML file contents, r=hsivonen. 2019-08-04 21:33:07 +00:00