Emilio Cobos Álvarez
400567dcde
Bug 1606958 - Use FakeString for UTF8String. r=bzbarsky,froydnj
...
Differential Revision: https://phabricator.services.mozilla.com/D58683
--HG--
extra : moz-landing-system : lando
2020-01-07 21:37:12 +00:00
Arthur Iakab
dbec32e5b0
Backed out changeset 05d084629569 (bug 1606958) for causing Valgrind bustages.
2020-01-07 03:07:00 +02:00
Emilio Cobos Álvarez
ae30f1a7bb
Bug 1606958 - Use FakeString for UTF8String. r=bzbarsky
...
Differential Revision: https://phabricator.services.mozilla.com/D58683
--HG--
extra : moz-landing-system : lando
2020-01-06 21:24:10 +00:00
Emilio Cobos Álvarez
6bb42bfdf8
Bug 1449861 - Add codegen support for UTF8String. r=bzbarsky
...
Differential Revision: https://phabricator.services.mozilla.com/D58629
--HG--
extra : moz-landing-system : lando
2020-01-04 10:36:49 +00:00
Sylvestre Ledru
8d2f0d1b1f
Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
...
# ignore-this-changeset
Differential Revision: https://phabricator.services.mozilla.com/D54686
--HG--
extra : moz-landing-system : lando
2019-11-26 14:35:02 +00:00
Boris Zbarsky
733a6ca66b
Bug 1591514 part 2. Add assertions to FakeString that its mData is only initialized once and not used before initialization. r=mccr8
...
Also removes some unused API bits to make the number of entry points smaller
and safer.
Differential Revision: https://phabricator.services.mozilla.com/D50693
--HG--
extra : moz-landing-system : lando
2019-10-29 19:02:42 +00:00
Boris Zbarsky
168fcede40
Bug 1591514 part 1. Change bindings to use actual literal strings for string constants. r=mccr8
...
Differential Revision: https://phabricator.services.mozilla.com/D50692
--HG--
extra : moz-landing-system : lando
2019-10-29 00:26:28 +00:00
Boris Zbarsky
84e60db6d8
Bug 1591481 part 2. Don't force copying when external strings are passed to Web IDL bindings. r=mccr8
...
The codesize impact is approximately 0 (actually positive by a a few KB),
because AssignJSString is not inlined.
If we were to force-inline AssignJSString, that would actually _save_ ~115KB
based on bloaty measurements for linux64 shippable opt builds (so with LTO),
because then ConvertJSValueToString stops being inlined in bindings.
Given that ConvertJSValueToString pretty much always calls AssignJSString, so
there is no slowdown from changing which of them is inlined, this is _really_
tempting to do, but I don't want to mess with compiler inlining heuristics...
Inlining both AssignJSString and ConvertJSValueToString increases codesize by
~2MB, so that's definitely _not_ desirable.
Differential Revision: https://phabricator.services.mozilla.com/D50627
--HG--
extra : moz-landing-system : lando
2019-10-30 15:52:22 +00:00
Boris Zbarsky
40d45356a8
Bug 1591481 part 1. Make NormalizeUSVString fallible. r=mccr8
...
Differential Revision: https://phabricator.services.mozilla.com/D50691
--HG--
extra : moz-landing-system : lando
2019-10-29 00:24:10 +00:00
Sylvestre Ledru
265e672179
Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format
...
# ignore-this-changeset
--HG--
extra : amend_source : 4d301d3b0b8711c4692392aa76088ba7fd7d1022
2018-11-30 11:46:48 +01:00
Sylvestre Ledru
aa37bde79b
Bug 1489454 - Remove all trailing whitespaces (again) r=Ehsan
...
This also includes moving some files to the regular format.
Differential Revision: https://phabricator.services.mozilla.com/D5249
--HG--
extra : moz-landing-system : lando
2018-09-07 14:47:51 +00:00
Henri Sivonen
3a52652295
Bug 1349528 - Use encoding_rs for normalizing USVString. r=smaug
...
MozReview-Commit-ID: 9uG6j8UdfKR
Differential Revision: https://phabricator.services.mozilla.com/D3413
--HG--
extra : moz-landing-system : lando
2018-08-16 10:15:07 +00:00
Andi-Bogdan Postelnicu
88cc63910d
Bug 1453795 - DOM - Initialize member fields in classes/ structures. r=peterv
...
--HG--
extra : rebase_source : 249fc26e50bded4e94f5effa4308af0f1e54b908
2018-06-16 17:21:46 +03:00
Sebastian Hengst
0819f35e51
Backed out 4 changesets (bug 525063) on request from Andi. a=backout
...
Backed out changeset 516c4fb1e4b8 (bug 525063)
Backed out changeset 6ff8aaef2866 (bug 525063)
Backed out changeset bf13e4103150 (bug 525063)
Backed out changeset d7d2f08e051c (bug 525063)
2018-04-13 16:01:28 +03:00
Tristan Bourvon
a3a77c0312
Bug 525063 - Initialize uninitialized class attributes in m-c. r=ehsan
2018-04-10 21:11:02 +02:00
L. David Baron
1da1c4f2be
Bug 1448138 - Rename string DataFlags::SHARED to REFCOUNTED to make it clearer to those reading the code. r=erahm
...
MozReview-Commit-ID: 1mJuwY5dQkj
--HG--
extra : transplant_source : %B8%97%C2%AAa%A6%3D%E3%AC%9C%C1%15%99%FE%94%1A%E2K%81%F1
2018-03-23 17:31:37 -07:00
Kyle Machulis
a5bf8f2796
Bug 1428229 - Add comments about purposefully uninitialized variables in BindingDeclarations; r=bz
...
MozReview-Commit-ID: HnWjU3BbwBE
--HG--
extra : rebase_source : a9a5ea5057c8892cb77d02c3873384b20897acd7
2018-01-05 12:37:42 -08:00
Kyle Machulis
0aafef6a46
Bug 1428229 - Partial backout a4094a8fa08d (bug 1406820) due to optimization removals; r=bz
...
MozReview-Commit-ID: AZDXw8NbgHt
--HG--
extra : rebase_source : 49c0f308120d92ef7e2cb0fcbb8337c006959c9f
2018-01-05 13:44:25 -08:00
Jonathan Watt
84328b84e7
Bug 1406820 part 2. Fix some missing member initialization in dom/bindings code. r=qdot
2017-10-11 00:46:18 +01:00
L. David Baron
c59666d841
Bug 1343715 - Split nsTSubstring::mFlags into separate variables for class and data flags. r=dmajor
...
MozReview-Commit-ID: JW1p5BxpHKA
--HG--
extra : transplant_source : %20e%CF%FA%60%A2%1Bn%1A%C6%A2%DBAy%3C%E0b%0C%077
2017-07-10 12:23:10 -07:00
John Dai
afa50be601
Bug 1294100 - Part 3: Modify Codegen to generate including FakeString's binding files and fix build errors. r=bz
...
--HG--
rename : dom/bindings/BindingUtils.h => dom/bindings/FakeString.h
2016-09-01 18:10:54 +08:00