Gabriele Svelto
eeb9bfc398
Bug 1600545 - Remove useless inclusions of header files generated from IDL files in accessible/, browser/, caps/, chrome/, devtools/, docshell/, editor/, extensions/, gfx/, hal/, image/, intl/, ipc/, js/, layout/, and media/ r=Ehsan
...
The inclusions were removed with the following very crude script and the
resulting breakage was fixed up by hand. The manual fixups did either
revert the changes done by the script, replace a generic header with a more
specific one or replace a header with a forward declaration.
find . -name "*.idl" | grep -v web-platform | grep -v third_party | while read path; do
interfaces=$(grep "^\(class\|interface\).*:.*" "$path" | cut -d' ' -f2)
if [ -n "$interfaces" ]; then
if [[ "$interfaces" == *$'\n'* ]]; then
regexp="\("
for i in $interfaces; do regexp="$regexp$i\|"; done
regexp="${regexp%%\\\|}\)"
else
regexp="$interfaces"
fi
interface=$(basename "$path")
rg -l "#include.*${interface%%.idl}.h" . | while read path2; do
hits=$(grep -v "#include.*${interface%%.idl}.h" "$path2" | grep -c "$regexp" )
if [ $hits -eq 0 ]; then
echo "Removing ${interface} from ${path2}"
grep -v "#include.*${interface%%.idl}.h" "$path2" > "$path2".tmp
mv -f "$path2".tmp "$path2"
fi
done
fi
done
Differential Revision: https://phabricator.services.mozilla.com/D55443
2019-12-06 09:16:44 +00:00
David Major
0fdd756458
Bug 1574573 - Disambiguate a use of Handle in XPCShellEnvironment.cpp r=Ehsan
...
Otherwise it could also refer to Handle from MacTypes.h.
Differential Revision: https://phabricator.services.mozilla.com/D42358
2019-08-17 01:06:19 +00:00
Boris Zbarsky
4e9674d574
Bug 1559468 part 1. Move JS_DefineProfilingFunctions into InitClassesWithNewWrappedGlobal. r=mccr8
...
All callers of InitClassesWithNewWrappedGlobal already call it.
Differential Revision: https://phabricator.services.mozilla.com/D35457
2019-06-20 21:44:03 +00:00
Sylvestre Ledru
ad31adba4c
Bug 1547143 - Format the tree: Be prescriptive with the pointer style (left) r=Ehsan
...
# ignore-this-changeset
Depends on D28954
Differential Revision: https://phabricator.services.mozilla.com/D28956
2019-05-01 08:47:10 +00:00
Jeff Walden
3eefa63cdf
Bug 1543458 - Compile lines of UTF-8 interactive input to xpcshell and jsshell without inflating to UTF-16. r=arai
...
Differential Revision: https://phabricator.services.mozilla.com/D26956
2019-04-10 09:42:58 -07:00
Jeff Walden
18e4e31cbc
Bug 1543455 - Make JS::CompileUtf8{,ForNonSyntacticScope} omit Utf8 from their names and take SourceText<Utf8Unit>&. r=arai
...
Differential Revision: https://phabricator.services.mozilla.com/D26951
2019-04-09 17:03:32 -07:00
Jeff Walden
c8129e4979
Bug 1542910 - Make all script compilation APIs directly return a JSScript*, rather than returning a success code and returning the JSScript* via outparam that exactly duplicates the success code value's meaning. r=arai
...
Differential Revision: https://phabricator.services.mozilla.com/D26616
2019-04-09 17:58:52 +00:00
Brindusan Cristian
dabc16c840
Backed out changeset 53e379a5738f (bug 1542910) as requested by waldo on irc. CLOSED TREE
2019-04-09 20:43:52 +03:00
Jeff Walden
81b88216c3
Bug 1542910 - Make all script compilation APIs directly return a JSScript*, rather than returning a success code and returning the JSScript* via outparam that exactly duplicates the success code value's meaning. r=arai
...
Differential Revision: https://phabricator.services.mozilla.com/D26616
2019-04-09 17:24:31 +00:00
Noemi Erli
3ccf087a4b
Backed out changeset d470f958ea61 (bug 1542910) for bustages in testEmptyWindowIsOmitted.cpp
2019-04-09 19:24:46 +03:00
Jeff Walden
e4ed700966
Bug 1542910 - Make all script compilation APIs directly return a JSScript*, rather than returning a success code and returning the JSScript* via outparam that exactly duplicates the success code value's meaning. r=arai
...
Differential Revision: https://phabricator.services.mozilla.com/D26616
2019-04-09 03:50:03 +00:00
Boris Zbarsky
a96fdaa7b5
Bug 1541513 part 1. Stop requiring a JSContext for JS_SetAllNonReservedSlotsToUndefined. r=jandem
...
Differential Revision: https://phabricator.services.mozilla.com/D25999
2019-04-05 07:36:32 +00:00
Ehsan Akhgari
498e2df734
Bug 1521000 - Part 2: Adjust our clang-format rules to include spaces after the hash for nested preprocessor directives r=sylvestre
...
# ignore-this-changeset
2019-01-18 10:16:18 +01:00
Jeff Walden
7fc7661fe0
Bug 1517624 - Move JSPropertySpec and JSFunctionSpec definitions into a new js/public/PropertySpec.h header. r=arai
2019-01-03 15:37:01 -06:00
Sylvestre Ledru
2e72341c11
Bug 1513205 - Also update the tests to match the Google coding style r=Ehsan
...
# ignore-this-changeset
Differential Revision: https://phabricator.services.mozilla.com/D14595
2018-12-14 18:10:35 +00:00
Benjamin Bouvier
5e1b39e9bd
Bug 1511383: Update vim modelines after clang-format; r=sylvestre
...
- modify line wrap up to 80 chars; (tw=80)
- modify size of tab to 2 chars everywhere; (sts=2, sw=2)
2018-11-30 16:39:55 +01:00
Ted Campbell
c56aace77f
Bug 1506475 - Add JS::AutoSuppressWarningReporter. r=jwalden
...
Differential Revision: https://phabricator.services.mozilla.com/D11586
2018-11-30 04:01:10 +00:00
Jeff Walden
28b00b916d
Bug 1485800 - Rename SourceBufferHolder to SourceText, and add a <typename Unit> template parameter to it so it can hold putative UTF-8 or UTF-16 source text. r=tcampbell, r=fitzgen
2018-11-08 18:42:48 -08:00
Jeff Walden
bea599041d
Bug 1503086 - Initialize all SourceBufferHolders with a fallible function that in all cases assumes ownership of given-ownership data. r=tcampbell, r=bz, r=mrbkap on some finicky worker code lightly touched here
2018-10-23 12:27:16 -07:00
Jason Orendorff
672ca504f2
Bug 1491939 - Part 3: Centralize configuration of JS realm options from prefs. r=baku
...
Depends on D6554
Differential Revision: https://phabricator.services.mozilla.com/D6555
2018-09-25 14:11:13 +00:00
Jeff Walden
74721b784a
Bug 1491137 - Remove the two setUTF8(bool) CompileOptions functions now that the underlying field they alter is gone. r=jandem
2018-09-18 08:41:41 -07:00
Jeff Walden
be54b3b723
Bug 1491137 - Remove JS_Compile{,UC}Script, because except for argument ordering they're exactly identical to existing JS::Compile* functions. r=jandem
2018-09-13 16:41:00 -07:00
Jeff Walden
7f32c5be1a
Bug 1491137 - Rename JS_BufferIsCompilableUnit to JS_Utf8BufferIsCompilableUnit, consistent with how it already interprets that data, and propagate that presumption of UTF-8-ness a little bit further along into callers. r=jandem
2018-09-13 13:30:38 -07:00
Jeff Walden
496248c740
Bug 1491137 - Rename the JS::Compile function that accepts FILE* to JS::CompileUtf8File, because every caller passes a file with UTF-8 content. r=jandem
2018-09-13 01:21:52 -07:00
Ehsan Akhgari
9634a7015c
Bug 1489147 - Remove the XPCOM component registration for nsXPConnect; r=mccr8
...
We move the XPConnect() singleton accessor to nsIXConnect to make it available for consumers outside of XPConnect. Most of the consumers of the singleton accessor just need the nsIXPConnect public interface, except for the IsShuttingDown() member which this patch adds to nsIXPConnect as well.
Differential Revision: https://phabricator.services.mozilla.com/D5151
2018-09-06 16:39:35 -04:00
shindli
2a30b3f57b
Backed out changeset d4ae1994c20c (bug 1489147) for bustages in JSDebugger.cpp on a CLOSED TREE
2018-09-06 22:12:44 +03:00
Ehsan Akhgari
da297b837d
Bug 1489147 - Remove the XPCOM component registration for nsXPConnect; r=mccr8
...
We move the XPConnect() singleton accessor to nsIXConnect to make it available for consumers outside of XPConnect. Most of the consumers of the singleton accessor just need the nsIXPConnect public interface, except for the IsShuttingDown() member which this patch adds to nsIXPConnect as well.
Differential Revision: https://phabricator.services.mozilla.com/D5151
2018-09-06 14:52:07 -04:00
André Bargull
95b5032706
Bug 1485066 - Part 8: Rename JS_EncodeString to JS_EncodeStringToLatin1. r=Waldo
2018-09-05 06:05:03 -07:00
André Bargull
dd284e9095
Bug 1485066 - Part 1: Remove JSAutoByteString. r=Waldo
2018-09-05 02:25:42 -07:00
Cosmin Sabou
2e80dfe4e6
Backed out 14 changesets (bug 1485066) for build bustages on MessageManagerFuzzer. CLOSED TREE
...
Backed out changeset e40f67f15bf1 (bug 1485066)
Backed out changeset f09bc4d5fdcc (bug 1485066)
Backed out changeset 939e27aa2d59 (bug 1485066)
Backed out changeset d50fcf82556c (bug 1485066)
Backed out changeset 5cbc0ae0117a (bug 1485066)
Backed out changeset 09b5382e0baf (bug 1485066)
Backed out changeset 6676e8fedcb3 (bug 1485066)
Backed out changeset 28e7e61c11ec (bug 1485066)
Backed out changeset b08b0cfc1dbe (bug 1485066)
Backed out changeset 8defc9eabfac (bug 1485066)
Backed out changeset bf167b0a3af3 (bug 1485066)
Backed out changeset 4f89260d5e30 (bug 1485066)
Backed out changeset c22fc17c9d87 (bug 1485066)
Backed out changeset d35bb63dbc1d (bug 1485066)
2018-09-05 15:54:03 +03:00
André Bargull
ba9ef3713c
Bug 1485066 - Part 8: Rename JS_EncodeString to JS_EncodeStringToLatin1. r=Waldo
2018-09-05 02:26:49 -07:00
André Bargull
17c0208769
Bug 1485066 - Part 1: Remove JSAutoByteString. r=Waldo
2018-09-05 02:25:42 -07:00
Jeff Walden
c2d1ce9999
Bug 1486577 - Don't #include "js/CompilationAndEvaluation.h" in jsapi.h, minimizing the scope of that header and reducing translation-unit size of anything that needs JSAPI but doesn't need to compile/evaluate JavaScript. r=jandem
2018-08-24 22:51:49 -05:00
Jeff Walden
21f00f0eaf
Bug 1486577 - Don't #include js/SourceBufferHolder.h in jsapi.h, and instead require users to do so -- a minor translation-unit size improvement for anyone who never has to use SourceBufferHolder other than by reference. r=jandem
2018-08-24 21:01:58 -05:00
Jeff Walden
48bbbc435b
Bug 1033916 - Move JSAutoByteString out of jsapi.h into js/public/AutoByteString.h, incidentally breaking the jsfriendapi.h -> jsapi.h dependency. r=jandem
2018-08-20 07:46:08 -07:00
Jan de Mooij
9d3bc542f6
Bug 1479363 part 10 - Use JSAutoRealm instead of JSAutoRealmAllowCCW in other directories. r=mrbkap
2018-08-02 19:30:17 +02:00
Jon Coppeard
e3be65283a
Bug 1475228 - Make synchronous compile APIs take SourceBufferHolders exclusively r=jandem r=fitzgen
2018-07-17 14:30:22 +01:00
Andreea Pavel
5c486b2ecc
Backed out 8 changesets (bug 1475228) for wpt failures e.g. html/semantics/scripting-1/the-script-element/execution-timing/088.html on a CLOSED TREE
...
Backed out changeset b2d18ea619ec (bug 1475228)
Backed out changeset 45d3ffe3308e (bug 1475228)
Backed out changeset 02b27f8441be (bug 1475228)
Backed out changeset b82c2cf4b3f1 (bug 1475228)
Backed out changeset 2bc8f24dc3fc (bug 1475228)
Backed out changeset 6104ea971587 (bug 1475228)
Backed out changeset 7c83633262db (bug 1475228)
Backed out changeset 34fb24d52f08 (bug 1475228)
2018-07-30 16:49:02 +03:00
Jon Coppeard
e812d24682
Bug 1475228 - Make synchronous compile APIs take SourceBufferHolders exclusively r=jandem
2018-07-17 14:30:22 +01:00
Jan de Mooij
fddc23c346
Bug 1478955 part 1 - Rename JSAutoRealm to JSAutoRealmAllowCCW. r=luke
2018-07-28 12:12:26 +02:00
Margareta Eliza Balazs
1739369e2a
Backed out 7 changesets (bug 1475228) for causing Spidermonkey rust failures on Linux x64 debug
...
Backed out changeset e91802969fb7 (bug 1475228)
Backed out changeset 623af73419eb (bug 1475228)
Backed out changeset bf96bd78dc11 (bug 1475228)
Backed out changeset 104817d51d1b (bug 1475228)
Backed out changeset d3829c85f650 (bug 1475228)
Backed out changeset 74d10b32b3ea (bug 1475228)
Backed out changeset dde64fbe2f0d (bug 1475228)
2018-07-17 17:57:55 +03:00
Jon Coppeard
cbd30f9aa1
Bug 1475228 - Make synchronous compile APIs take SourceBufferHolders exclusively r=jandem
2018-07-17 14:30:22 +01:00
Jan de Mooij
a5852e9033
Bug 1466501 part 1 - Refactor ZoneSpecifier and add a sameCompartmentAs option to newGlobal in the shell. r=luke
2018-06-07 10:02:10 +02:00
Jan de Mooij
9e4208462a
Bug 1461605 part 1 - Rename CompartmentOptions to RealmOptions. r=luke,bz
2018-05-17 10:59:45 +02:00
Jan de Mooij
e5f8a28c84
Bug 1461292 part 1 - Rename JSAutoCompartment to JSAutoRealm. r=bz,luke
2018-05-16 10:53:16 +02:00
Tom Schuster
d9af6f9cfe
Bug 1255800 - Make computeThis return a boolean for easier error handling. r=jorendorff
2018-03-23 13:09:04 +01:00
Tom Schuster
6698b9aad3
Bug 1255800 - Remove JS_THIS_OBJECT from dom/xpconnect. r=bz
2018-03-07 14:35:22 +01:00
Jan de Mooij
e0ff069329
Bug 1417844 part 4 - Remove more JSVersion code. r=evilpie
2017-11-17 12:13:42 +01:00
Jan de Mooij
e6e5785154
Bug 1417844 part 2 - Remove JSVersion from CompileOptions, CompartmentBehaviors, scripts. r=evilpie
2017-11-17 12:12:39 +01:00
Andrew McCreight
b6eea894a0
Bug 1176342, part 1 - De-COM InitClassesWithNewWrappedGlobal. r=mrbkap
...
MozReview-Commit-ID: EfRQW3QUXCG
2017-09-18 16:35:39 -07:00