Tooru Fujisawa
eec3a72247
Bug 1862814 - Part 2: Use 1-origin column number in script-related dump. r=iain
...
Differential Revision: https://phabricator.services.mozilla.com/D193376
2023-11-22 12:31:33 +00:00
Natalia Csoregi
e0d56104a6
Backed out 14 changesets (bug 1865005, bug 1864168, bug 1864155, bug 1862814, bug 1862693) for causing bustage on nsRFPService.cpp. CLOSED TREE
...
Backed out changeset a4f3e7625abf (bug 1865005)
Backed out changeset ab38141e470b (bug 1862814)
Backed out changeset a679b50dc4a9 (bug 1862814)
Backed out changeset e340886ce62a (bug 1862814)
Backed out changeset 1378502e64b0 (bug 1862814)
Backed out changeset 8ee94e5e79c2 (bug 1862814)
Backed out changeset 6d4ef1cdfabb (bug 1864168)
Backed out changeset 2c30c4d757fc (bug 1864168)
Backed out changeset d4db9576559b (bug 1864168)
Backed out changeset 8ffec0d83028 (bug 1864168)
Backed out changeset fa77d852b494 (bug 1864168)
Backed out changeset f6646771a26a (bug 1864168)
Backed out changeset 7bd0ff6986df (bug 1864155)
Backed out changeset 39867b503289 (bug 1862693)
2023-11-22 14:01:55 +02:00
Tooru Fujisawa
22b9ae6db8
Bug 1862814 - Part 2: Use 1-origin column number in script-related dump. r=iain
...
Differential Revision: https://phabricator.services.mozilla.com/D193376
2023-11-22 11:13:57 +00:00
Tooru Fujisawa
438dbbd9d1
Bug 1862692 - Part 17: Use 1-origin column number type in JS::ReadOnlyCompileOptions. r=iain
...
Differential Revision: https://phabricator.services.mozilla.com/D193030
2023-11-09 11:41:11 +00:00
Tooru Fujisawa
d2ffe31339
Bug 1846194 - Remove off-thread compilation and decode API. r=nbp
...
Differential Revision: https://phabricator.services.mozilla.com/D185125
2023-09-01 03:43:21 +00:00
Tooru Fujisawa
1c1f4d9c1a
Bug 1847469 - Part 26: Use column number types in JS::CompileOptions. r=iain
...
Differential Revision: https://phabricator.services.mozilla.com/D185764
2023-08-16 17:31:42 +00:00
Tooru Fujisawa
fd20ced4b2
Bug 1847469 - Part 25: Use uint32_t for line and column in JS::CompileOptions as a preparation to use column number types. r=iain
...
Differential Revision: https://phabricator.services.mozilla.com/D185763
2023-08-16 17:31:42 +00:00
Cristian Tuns
77d753c741
Backed out 27 changesets (bug 1847469) for causing spidermonkey bustages in Script.cpp CLOSED TREE
...
Backed out changeset 9d6e2651a013 (bug 1847469)
Backed out changeset 9b72d668efd2 (bug 1847469)
Backed out changeset 86abf5cf0a22 (bug 1847469)
Backed out changeset 46833087f8ac (bug 1847469)
Backed out changeset f3e2207fdeec (bug 1847469)
Backed out changeset aed75776cfff (bug 1847469)
Backed out changeset 8292a38bd99f (bug 1847469)
Backed out changeset 1320f83fb8c7 (bug 1847469)
Backed out changeset df9f925f9837 (bug 1847469)
Backed out changeset 69f32cf1862a (bug 1847469)
Backed out changeset b2ddddec8818 (bug 1847469)
Backed out changeset 056eed7abc97 (bug 1847469)
Backed out changeset 5df4f43ac0bf (bug 1847469)
Backed out changeset cb57923f6532 (bug 1847469)
Backed out changeset a0993f2a2195 (bug 1847469)
Backed out changeset 782499fbedf2 (bug 1847469)
Backed out changeset cf84fb98c5e1 (bug 1847469)
Backed out changeset 1fa5ab59814b (bug 1847469)
Backed out changeset f5f78944df81 (bug 1847469)
Backed out changeset aa14337bf5c6 (bug 1847469)
Backed out changeset 6757db4575d7 (bug 1847469)
Backed out changeset 236ff135701e (bug 1847469)
Backed out changeset 9b4d5b435020 (bug 1847469)
Backed out changeset a0f789621bc8 (bug 1847469)
Backed out changeset c19b81f48055 (bug 1847469)
Backed out changeset b4521e546d7e (bug 1847469)
Backed out changeset f26a10289316 (bug 1847469)
2023-08-16 07:08:01 -04:00
Tooru Fujisawa
61148c67b2
Bug 1847469 - Part 26: Use column number types in JS::CompileOptions. r=iain
...
Differential Revision: https://phabricator.services.mozilla.com/D185764
2023-08-16 10:26:34 +00:00
Tooru Fujisawa
62e334b5fa
Bug 1847469 - Part 25: Use uint32_t for line and column in JS::CompileOptions as a preparation to use column number types. r=iain
...
Differential Revision: https://phabricator.services.mozilla.com/D185763
2023-08-16 10:26:34 +00:00
Tooru Fujisawa
352024abc2
Bug 1746374 - Use the number of UTF-16 code units as column number. r=iain
...
Differential Revision: https://phabricator.services.mozilla.com/D185372
2023-08-11 08:11:48 +00:00
Tooru Fujisawa
d35c29f8ff
Bug 1846913 - Part 2: Clarify origin of column number fields and methods. r=iain
...
Differential Revision: https://phabricator.services.mozilla.com/D185371
2023-08-11 08:11:48 +00:00
Tooru Fujisawa
987ebddbf4
Bug 1845702 - Make OwningCompileOptions movable. r=bthrall
...
Differential Revision: https://phabricator.services.mozilla.com/D184736
2023-08-10 10:03:12 +00:00
Tooru Fujisawa
0f428f2820
Bug 1845416 - Add JS::ReadOnlyDecodeOptions and JS::OwningDecodeOptions. r=bthrall
...
Differential Revision: https://phabricator.services.mozilla.com/D184543
2023-08-10 10:03:11 +00:00
Tooru Fujisawa
554fe76cc1
Bug 1843944 - Copy PrefableCompileOptions from the initial parse to DelazifyTask. r=nbp
...
Differential Revision: https://phabricator.services.mozilla.com/D183830
2023-07-19 00:08:58 +00:00
Tooru Fujisawa
1e83a61d17
Bug 1841016 - Part 1: Reflect user pref to JavaScript validator. r=sefeng,bthrall
...
Differential Revision: https://phabricator.services.mozilla.com/D182460
2023-07-12 21:12:38 +00:00
Tooru Fujisawa
f1a3c2b5a7
Bug 1840996 - Add PrefableCompileOptions and use it in ContextOptions and CompileOptions. r=bthrall
...
Differential Revision: https://phabricator.services.mozilla.com/D182458
2023-07-12 21:12:37 +00:00
Iulian Moraru
3604b19784
Backed out 2 changesets (bug 1840839, bug 1841016) for causing wasm crashes. a=backout
...
Backed out changeset 87054cc1f0e8 (bug 1841016)
Backed out changeset fc3e4979b00e (bug 1840839)
2023-07-08 01:03:14 +03:00
Iulian Moraru
a2f55d6c89
Backed out changeset c989d589866f (bug 1840996) for causing wasm crashes. a=backout
2023-07-08 00:43:15 +03:00
Tooru Fujisawa
cd2ecade10
Bug 1841016 - Reflect user pref to JavaScript validator. r=sefeng,bthrall
...
Differential Revision: https://phabricator.services.mozilla.com/D182460
2023-07-06 21:19:12 +00:00
Tooru Fujisawa
b78d6837dc
Bug 1840996 - Add PrefableCompileOptions and use it in ContextOptions and CompileOptions. r=bthrall
...
Differential Revision: https://phabricator.services.mozilla.com/D182458
2023-07-06 21:19:11 +00:00
Tooru Fujisawa
821cf76d29
Bug 1836422 - Part 1: Rewrite ScriptPreloader with JS::FrontendContext-based APIs. r=bthrall,mccr8
...
This is a direct translation from JS::DecodeMultiStencilsOffThread APIs to
JS::FrontendContext-based APIs, without changing the batch behavior.
Differential Revision: https://phabricator.services.mozilla.com/D179765
2023-07-04 13:47:30 +00:00
Tooru Fujisawa
714aab9c72
Bug 1837965 - Support initializing JS::OwningCompileOptions with JS::FrontendContext. r=nbp
...
Differential Revision: https://phabricator.services.mozilla.com/D181199
2023-06-28 11:36:41 +00:00
Tom Schuster
792564caeb
Bug 1834744 - Split up RealmBehaviors::shouldResistFingerprinting in js/src. r=spidermonkey-reviewers,jandem
...
Differential Revision: https://phabricator.services.mozilla.com/D179534
2023-06-07 10:52:30 +00:00
Tooru Fujisawa
04f7f80fe7
Bug 1831845 - Part 1: Use JS::ConstUTF8CharsZ in JS::TransitiveCompileOptions::{filename_,introducerFilename_}. r=nbp
...
Differential Revision: https://phabricator.services.mozilla.com/D179504
2023-06-06 07:16:08 +00:00
Cosmin Sabou
d06859d1a4
Backed out 4 changesets (bug 1831845) for causing spidermonkey bustages. CLOSED TREE
...
Backed out changeset a9765ccd45b1 (bug 1831845)
Backed out changeset 0d23be10f378 (bug 1831845)
Backed out changeset 5c31df65197e (bug 1831845)
Backed out changeset 11e79bc5149a (bug 1831845)
2023-06-06 07:54:03 +03:00
Tooru Fujisawa
35eeaa8070
Bug 1831845 - Part 1: Use JS::ConstUTF8CharsZ in JS::TransitiveCompileOptions::{filename_,introducerFilename_}. r=nbp
...
Differential Revision: https://phabricator.services.mozilla.com/D179504
2023-06-06 04:29:07 +00:00
André Bargull
82e4d977ce
Bug 1492090 - Part 5: Use UTF-8 for script file names. r=nbp
...
Differential Revision: https://phabricator.services.mozilla.com/D151449
2023-05-23 12:11:39 +00:00
André Bargull
8c9431d7d0
Bug 1492090 - Part 1: Fix some comments, remove a #define, and make one fclose call more robust. r=tcampbell
...
Differential Revision: https://phabricator.services.mozilla.com/D151445
2023-05-23 12:11:38 +00:00
Butkovits Atila
3ecaf19a83
Backed out 9 changesets (bug 1492090) for causing Xpcshell failures at test_async_response_sending.js.
...
Backed out changeset 7201691d9e37 (bug 1492090 )
Backed out changeset a488d7627491 (bug 1492090 )
Backed out changeset c4547e2db877 (bug 1492090 )
Backed out changeset 1377e06cff9f (bug 1492090 )
Backed out changeset a872a1fd5147 (bug 1492090 )
Backed out changeset 768f35c0db6b (bug 1492090 )
Backed out changeset 65e26a85981e (bug 1492090 )
Backed out changeset a42a6210de08 (bug 1492090 )
Backed out changeset 87a02a089678 (bug 1492090 )
2023-05-22 23:27:29 +03:00
André Bargull
584c45d3c4
Bug 1492090 - Part 5: Use UTF-8 for script file names. r=nbp
...
Differential Revision: https://phabricator.services.mozilla.com/D151449
2023-05-22 12:28:15 +00:00
André Bargull
6735d290cf
Bug 1492090 - Part 1: Fix some comments, remove a #define, and make one fclose call more robust. r=tcampbell
...
Differential Revision: https://phabricator.services.mozilla.com/D151445
2023-05-22 12:28:14 +00:00
Stanca Serban
c3cb3a44fc
Backed out 9 changesets (bug 1492090) for causing multiple xpcshell failures.
...
Backed out changeset 1e0705e94f79 (bug 1492090 )
Backed out changeset aeee4b4981b4 (bug 1492090 )
Backed out changeset ed83091dfdb5 (bug 1492090 )
Backed out changeset d2604a65c523 (bug 1492090 )
Backed out changeset e4aad0fb85b9 (bug 1492090 )
Backed out changeset 4e7c4724e994 (bug 1492090 )
Backed out changeset bc39eac4ecca (bug 1492090 )
Backed out changeset 8e3b95812c39 (bug 1492090 )
Backed out changeset ddb2eb1a1c62 (bug 1492090 )
2023-05-12 15:15:55 +03:00
André Bargull
3319c5bf4d
Bug 1492090 - Part 5: Use UTF-8 for script file names. r=nbp
...
Differential Revision: https://phabricator.services.mozilla.com/D151449
2023-05-12 10:30:05 +00:00
André Bargull
b01b482582
Bug 1492090 - Part 1: Fix some comments, remove a #define, and make one fclose call more robust. r=tcampbell
...
Differential Revision: https://phabricator.services.mozilla.com/D151445
2023-05-12 10:30:05 +00:00
Tooru Fujisawa
e74237df91
Bug 1829281 - Support initializing CompileOptions without JSContext. r=bthrall
...
Differential Revision: https://phabricator.services.mozilla.com/D176511
2023-05-11 10:18:37 +00:00
Tom Schuster
1a1c694c53
Bug 1827576 - Add shouldResistFingerprinting_ to CompileOptions. r=arai
...
Differential Revision: https://phabricator.services.mozilla.com/D176142
2023-04-24 12:22:55 +00:00
Ted Campbell
e8fc6fb63e
Bug 1828150 - Remove unused JS::CompileOptions::useFdlibmForSinCosTan. r=mgaudet
...
The mechanism remains but it affects runtime behaviour and not parse behaviour
so the CompileOption field isn't needed.
Differential Revision: https://phabricator.services.mozilla.com/D175491
2023-04-14 17:50:06 +00:00
Andi-Bogdan Postelnicu
d016916382
Bug 1519636 - Reformat recent changes to the Google coding style. r=glandium
...
Updated with clang-format version 15.0.5 (taskcluster-MKK8dHUpQkGfPLA793lizg)
# ignore-this-changeset
Differential Revision: https://phabricator.services.mozilla.com/D168658
2023-02-13 15:02:07 +00:00
Nicolas B. Pierron
050fe026f7
Bug 1774796 - Add largest-first delazification strategy. r=arai
...
This patch adds a new off-thread delazification strategy, which adds a bit of
overhead to queue function with a priority order, which put the largest function
as the first functions to be delazified.
The intent of this new strategy is to limit the usage of main-thread
delazification to the smallest function, in case where the main-thread would win
the delazification race.
Differential Revision: https://phabricator.services.mozilla.com/D149651
2022-06-20 13:33:49 +00:00
Sylvestre Ledru
9ffafce8cc
Bug 1519636 - Reformat recent changes to the Google coding style r=andi,media-playback-reviewers,necko-reviewers,padenot,dragana
...
# ignore-this-changeset
Differential Revision: https://phabricator.services.mozilla.com/D148375
2022-06-07 12:32:55 +00:00
Nicolas B. Pierron
8b894b8b6d
Bug 1756003 part 2 - Compare concurrent and on-demand delazification. r=arai
...
Adds a delazification mode, which spawn a concurrent depth-first delazification
of all function to fill the stencil cache, to later compare cached results with
stencils produced by on-demand delazification.
The delazification mode also works when being used from a main-thread top-level
compilation, in which case the delazification tasks are created and potentially
blocking the main thread, while the delazification is happening.
This way of doing help comparing on-demand delazification, based on instantiated
stencils with concurrent delazification, based on stencils. Which is a good
mode for fuzzing purposes.
Differential Revision: https://phabricator.services.mozilla.com/D145992
2022-05-17 10:53:04 +00:00
Iulian Moraru
6e8e12c880
Backed out 3 changesets (bug 1756003) for causing multiple thread sanitizer failures. CLOSED TREE
...
Backed out changeset cf1af3ce0798 (bug 1756003)
Backed out changeset 672e8694ef7d (bug 1756003)
Backed out changeset 3b6f96fb26fa (bug 1756003)
2022-05-14 04:00:29 +03:00
Tooru Fujisawa
52dba63eee
Bug 1766761 - Part 1: Add compile option to de-optimize module global variables. r=jonco
...
This is necessary for putting all global `var`s in `ModuleEnvironmentObject`,
instead of local slot, so that they're accessible in Part 4 patch.
Differential Revision: https://phabricator.services.mozilla.com/D146033
2022-05-13 22:02:38 +00:00
Cristian Tuns
5159848da7
Backed out 8 changesets (bug 1766976, bug 1768922, bug 1769029, bug 1766761, bug 1768060) for causing spidermonkey failures on Modules.cpp CLOSED TREE
...
Backed out changeset da102935dfd2 (bug 1769029)
Backed out changeset e080258f38a7 (bug 1768922)
Backed out changeset 36e9e0301a24 (bug 1766976)
Backed out changeset dd28b0eb27ef (bug 1768060)
Backed out changeset 682c4afbcfe9 (bug 1766761)
Backed out changeset a7a37e912b90 (bug 1766761)
Backed out changeset d8099b6d970b (bug 1766761)
Backed out changeset 435acc6d6abd (bug 1766761)
2022-05-13 12:49:49 -04:00
Nicolas B. Pierron
76afd6b691
Bug 1756003 part 2 - Compare concurrent and on-demand delazification. r=arai
...
Adds a delazification mode, which spawn a concurrent depth-first delazification
of all function to fill the stencil cache, to later compare cached results with
stencils produced by on-demand delazification.
The delazification mode also works when being used from a main-thread top-level
compilation, in which case the delazification tasks are created and potentially
blocking the main thread, while the delazification is happening.
This way of doing help comparing on-demand delazification, based on instantiated
stencils with concurrent delazification, based on stencils. Which is a good
mode for fuzzing purposes.
Differential Revision: https://phabricator.services.mozilla.com/D145992
2022-05-13 16:41:29 +00:00
Tooru Fujisawa
87b980d7b6
Bug 1766761 - Part 1: Add compile option to de-optimize module global variables. r=jonco
...
This is necessary for putting all global `var`s in `ModuleEnvironmentObject`,
instead of local slot, so that they're accessible in Part 4 patch.
Differential Revision: https://phabricator.services.mozilla.com/D146033
2022-05-13 15:23:14 +00:00
Bogdan Szekely
251982c2e1
Backed out 4 changesets (bug 1756003, bug 1764280) for causing build bustages on ScriptLoader.cpp. CLOSED TREE
...
Backed out changeset 51b6c13941b6 (bug 1764280)
Backed out changeset 399a9a92ff78 (bug 1756003)
Backed out changeset 2dc65ba6edce (bug 1756003)
Backed out changeset 5b982beda860 (bug 1756003)
2022-05-13 15:48:34 +03:00
Nicolas B. Pierron
59a992981b
Bug 1756003 part 2 - Compare concurrent and on-demand delazification. r=arai
...
Adds a delazification mode, which spawn a concurrent depth-first delazification
of all function to fill the stencil cache, to later compare cached results with
stencils produced by on-demand delazification.
The delazification mode also works when being used from a main-thread top-level
compilation, in which case the delazification tasks are created and potentially
blocking the main thread, while the delazification is happening.
This way of doing help comparing on-demand delazification, based on instantiated
stencils with concurrent delazification, based on stencils. Which is a good
mode for fuzzing purposes.
Differential Revision: https://phabricator.services.mozilla.com/D145992
2022-05-13 12:19:46 +00:00
Jon Coppeard
550328f6f1
Bug 1432901 - Part 13: Re-enable compile option to disallow top-level await r=yulia
...
Differential Revision: https://phabricator.services.mozilla.com/D145795
2022-05-10 12:58:10 +00:00