Граф коммитов

72 Коммитов

Автор SHA1 Сообщение Дата
Tooru Fujisawa d06cc89e5d Bug 1658631 - Part 3: Support instantiating stencil in main thread for off-thread script/module compilation. r=tcampbell
If useOffThreadParseGlobal option is set to false, ParseTask generates
CompilationInfo, that contains both input and stencil output,
and the main thread grabs it and instantiate it on the main thread, when
finishing the compilation.

Differential Revision: https://phabricator.services.mozilla.com/D88594
2020-09-01 23:50:17 +00:00
Tooru Fujisawa 8d0f9a9d84 Bug 1658631 - Part 2: Add frontend::ParseModuleToStencil. r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D88593
2020-09-01 23:50:07 +00:00
Tooru Fujisawa 6eecdba324 Bug 1662140 - Add javascript.options.off_thread_parse_global pref and --no-off-thread-parse-global shell option. r=tcampbell
This adds the preference, JS shell option, and {ContextOptions,CompileOptions} fields,
but the value isn't read and the code always acts as it's set to true.

Differential Revision: https://phabricator.services.mozilla.com/D88922
2020-08-31 23:32:14 +00:00
Adam Vandolder c9aad0c1b1 Bug 1435826 - Add pref for private methods. r=jorendorff
Differential Revision: https://phabricator.services.mozilla.com/D86556
2020-08-14 14:11:02 +00:00
André Bargull 81db6d47d5 Bug 1635839 - Part 4: Add an option for private class fields, disabled by default r=jorendorff
Differential Revision: https://phabricator.services.mozilla.com/D74105
2020-06-02 20:58:04 +00:00
Csoregi Natalia 66c89e56e0 Backed out 5 changesets (bug 1635839) for failures on not-iterable.js. CLOSED TREE
Backed out changeset a9ccc860736e (bug 1635839)
Backed out changeset 593a8860ad50 (bug 1635839)
Backed out changeset 9cae1becce65 (bug 1635839)
Backed out changeset 0f28dc01529f (bug 1635839)
Backed out changeset e90011b2f167 (bug 1635839)
2020-06-02 17:11:15 +03:00
André Bargull b85b762d0c Bug 1635839 - Part 4: Add an option for private class fields, disabled by default r=jorendorff
Differential Revision: https://phabricator.services.mozilla.com/D74105
2020-06-02 12:29:59 +00:00
Denis Palmeiro d1ffff7a12 Bug 1501608 - Remove the ELEMENT_SLOT in the ScriptSourceObject and instead use a callback function to return the script element based on the value of the privateValue in the SSO. r=jonco,smaug
We can reduce the size of the SSO by removing the element slot entirely, and instead retrieve the element through a callback function.  The callback will take in the value in the private slot of the SSO, which is either a LoadedScript* (from the browser) or a JSObject* (from the shell).  In addition, this removes the requirement of having a script dom element ready when parsing a JS script which can open up new opportunities for performance.

Differential Revision: https://phabricator.services.mozilla.com/D70417
2020-05-12 19:28:15 +00:00
Logan Smyth 208709890a Bug 1628853 - Expose a feature flag to enable/disable //# sourceXX= parsing. r=arai
These pragmas can be used to influence stack trace filenames, and to affect
how and where files show up in developer tools. In some circumstances, it can
be nice to disable allof that functionality in order to ensure that you get
the stack trace and debug information as SpiderMonkey sees it.

Differential Revision: https://phabricator.services.mozilla.com/D72103
2020-05-08 00:37:21 +00:00
Ted Campbell 7b6639a92d Bug 1635109 - Cleanup CompileOptions constructors. r=caroline
Remove (unused) ability to clone TransitiveCompileOptions& since we now
expect these options to no long vary within a compilation. The only cloning
of CompileOptions should be of the complete ReadOnlyCompileOptions set in
order to make adjustments before the compile starts.

Depends on D73694

Differential Revision: https://phabricator.services.mozilla.com/D73695
2020-05-05 17:01:50 +00:00
Ted Campbell 3f21ee5757 Bug 1635109 - Move more options to TransitiveCompileOptions. r=caroline
The nonSyntacticScope and skipFilenameValidation options do not vary
throughout compilation so they should be TransitiveCompileOptions.

Differential Revision: https://phabricator.services.mozilla.com/D73694
2020-05-05 17:58:09 +00:00
Dorel Luca 159241fe4b Backed out changeset 4107b758e7ae (bug 1501608) as requested by dev 2020-05-02 15:03:19 +03:00
Denis Palmeiro 792169d380 Bug 1501608 - Remove the ELEMENT_SLOT in the ScriptSourceObject and instead use a callback function to return the script element based on the value of the privateValue in the SSO. r=jonco,smaug
We can reduce the size of the SSO by removing the element slot entirely, and instead retrieve the element through a callback function.  The callback will take in the value in the private slot of the SSO, which is either a LoadedScript* (from the browser) or a JSObject* (from the shell).  In addition, this removes the requirement of having a script dom element ready when parsing a JS script which can open up new opportunities for performance.

Differential Revision: https://phabricator.services.mozilla.com/D70417
2020-04-30 16:21:23 +00:00
Ted Campbell bf5048548e Bug 1620495 - Remove references to LazyScript in comments r=mgaudet
Differential Revision: https://phabricator.services.mozilla.com/D66876

--HG--
extra : moz-landing-system : lando
2020-03-16 19:49:55 +00:00
Tom Schuster 82fbd1a7b3 Bug 1275508 - Remove werror. r=jandem
This passes jit-test and jstest locally. I still see some references
in jsapi-tests/binast, but I haven't looked into running those yet.

The asm.js warning stuff is a bit confusing. It seems like there are multiple mistakes?

asmLink claims that it should issue a warning. But it sets "werror", so this would always
throw an exception if linking actually threw an exception.

Some tests using assertAsmDirectiveFail aren't even valid JS programs ..

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

--HG--
extra : moz-landing-system : lando
2020-03-11 12:20:21 +00:00
Tom Schuster 3946b3eaea Bug 1619177 - Remove remaining extra warnings code. r=tcampbell,mccr8
Differential Revision: https://phabricator.services.mozilla.com/D65830

--HG--
extra : moz-landing-system : lando
2020-03-10 22:59:41 +00:00
André Bargull fd2afd2541 Bug 1616882 - Part 2: Remove class fields option. r=tcampbell
Depends on D63506

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

--HG--
extra : moz-landing-system : lando
2020-03-09 14:24:48 +00:00
Philip Chimento 1fab6fc78e Bug 1426865 - Add default visibility to JSAPI symbols. r=sfink
Depends on D49098

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

--HG--
extra : moz-landing-system : lando
2019-10-27 22:34:11 +00:00
Jan de Mooij 7081cf6275 Bug 1577280 - Add a script filename validation callback. r=tcampbell
This is a process-wide callback that can be used by embedders to block parsing
or decoding of scripts that are considered unsafe.

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

--HG--
extra : moz-landing-system : lando
2019-09-20 07:41:30 +00:00
Ted Campbell a7526cb49d Bug 1575055 - Avoid duplicating CompileOptions constructor code. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D42562

--HG--
extra : moz-landing-system : lando
2019-09-18 15:05:53 +00:00
Ted Campbell b47af937d5 Bug 1575055 - Remove redundant overrides in ReadOnlyCompileOptions. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D42561

--HG--
extra : moz-landing-system : lando
2019-09-18 15:05:46 +00:00
Ted Campbell 559cc45195 Bug 1575055 - Unify JS::CompileOptions::canLazilyParse and forceFullParse_. r=jandem
If either the Realm or the request needs full-parsing, we disable lazy
parsing.

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

--HG--
extra : moz-landing-system : lando
2019-09-18 15:05:42 +00:00
Ted Campbell 5aa2fa2264 Bug 1575055 - Privatize js::CompileOptions::strictMode. r=jandem
We already have an accessor to make sure this is can only be set but not
cleared so hide the underlying storage.

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

--HG--
extra : moz-landing-system : lando
2019-09-18 15:05:35 +00:00
Ted Campbell f6f8dc5112 Bug 1575055 - Remove unused CompileOptions::setIntroductionScript. r=jandem
We should always use setIntroductionInfo instead.

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

--HG--
extra : moz-landing-system : lando
2019-09-18 15:05:28 +00:00
Cosmin Sabou 8b02e5fb07 Backed out 5 changesets (bug 1575055) for xpcshell failures on js/CompileOptions.h. CLOSED TREE
Backed out changeset 6ba35efeddf6 (bug 1575055)
Backed out changeset 6039cf3a63f0 (bug 1575055)
Backed out changeset aa3a237d49d8 (bug 1575055)
Backed out changeset aa9f3f8f1f2c (bug 1575055)
Backed out changeset 400ea400fba2 (bug 1575055)
2019-08-22 17:08:22 +03:00
Ted Campbell bb991b5d3a Bug 1575055 - Avoid duplicating CompileOptions constructor code. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D42562

--HG--
extra : moz-landing-system : lando
2019-08-22 13:08:03 +00:00
Ted Campbell a48949b99c Bug 1575055 - Remove redundant overrides in ReadOnlyCompileOptions. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D42561

--HG--
extra : moz-landing-system : lando
2019-08-22 13:08:01 +00:00
Ted Campbell 179e9bf7ab Bug 1575055 - Unify JS::CompileOptions::canLazilyParse and forceFullParse_. r=jandem
If either the Realm or the request needs full-parsing, we disable lazy
parsing.

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

--HG--
extra : moz-landing-system : lando
2019-08-22 13:07:57 +00:00
Ted Campbell 3cab8e70c6 Bug 1575055 - Privatize js::CompileOptions::strictMode. r=jandem
We already have an accessor to make sure this is can only be set but not
cleared so hide the underlying storage.

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

--HG--
extra : moz-landing-system : lando
2019-08-22 13:08:10 +00:00
Ted Campbell 6e9b305ee3 Bug 1575055 - Cleanup CompileOptions::setIntroductionInfo. r=jandem
The hasIntroductionInfo flag is equivalent to checking for the existance
introducerFilename so use that instead. Also remove unused setter for
the introducer script.

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

--HG--
extra : moz-landing-system : lando
2019-08-22 13:07:53 +00:00
Noemi Erli 1353cb7336 Backed out 5 changesets (bug 1575055) for causing build bustages in mozJSComponentLoader.cpp CLOSED TREE
Backed out changeset e29819477913 (bug 1575055)
Backed out changeset f770e1398276 (bug 1575055)
Backed out changeset 3ee4fd0e20e0 (bug 1575055)
Backed out changeset 51f0929a5c8d (bug 1575055)
Backed out changeset 45f0e989e56e (bug 1575055)
2019-08-22 15:15:16 +03:00
Ted Campbell 64ba0d5e30 Bug 1575055 - Avoid duplicating CompileOptions constructor code. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D42562

--HG--
extra : moz-landing-system : lando
2019-08-22 11:59:42 +00:00
Ted Campbell 094cb37502 Bug 1575055 - Remove redundant overrides in ReadOnlyCompileOptions. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D42561

--HG--
extra : moz-landing-system : lando
2019-08-21 16:17:03 +00:00
Ted Campbell e43da611d4 Bug 1575055 - Unify JS::CompileOptions::canLazilyParse and forceFullParse_. r=jandem
If either the Realm or the request needs full-parsing, we disable lazy
parsing.

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

--HG--
extra : moz-landing-system : lando
2019-08-22 08:25:09 +00:00
Ted Campbell cc0b0ce09c Bug 1575055 - Privatize js::CompileOptions::strictMode. r=jandem
We already have an accessor to make sure this is can only be set but not
cleared so hide the underlying storage.

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

--HG--
extra : moz-landing-system : lando
2019-08-22 11:58:13 +00:00
Ted Campbell 18ba55b0b4 Bug 1575055 - Cleanup CompileOptions::setIntroductionInfo. r=jandem
The hasIntroductionInfo flag is equivalent to checking for the existance
introducerFilename so use that instead. Also remove unused setter for
the introducer script.

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

--HG--
extra : moz-landing-system : lando
2019-08-21 16:16:41 +00:00
Andy Wingo 673d9945f5 Bug 1570886 - Remove enableBigInt run-time flag r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D40389

--HG--
extra : moz-landing-system : lando
2019-08-07 14:41:36 +00:00
Razvan Maries 2d23034c48 Backed out changeset 145b187e750f (bug 1570886) for perma xpcshell fails on test_objectgrips-08.js. CLOSED TREE 2019-08-06 20:12:16 +03:00
Andy Wingo 0f20ca98c4 Bug 1570886 - Remove enableBigInt run-time flag r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D40389

--HG--
extra : moz-landing-system : lando
2019-08-06 10:36:09 +00:00
Coroiu Cristina 37c688712e Backed out changeset 596ae187c20b (bug 1570886) for xpcshell failures at devtools/server/tests/unit/test_objectgrips-08.js on a CLOSED TREE 2019-08-06 12:47:50 +03:00
Andy Wingo 3f1bd1cb5a Bug 1570886 - Remove enableBigInt run-time flag r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D40389

--HG--
extra : moz-landing-system : lando
2019-08-05 13:00:28 +00:00
Brian Hackett e00511f3ae Bug 1554524 Part 5 - Emit instrumentation opcodes when they have been set in a realm, r=tcampbell.
--HG--
extra : rebase_source : c5a88ed48ffc0a9b14daf8e9be5bd5c573f871be
2019-07-08 10:23:34 -10:00
Jason Orendorff 5b135c7bdb Bug 1555464 - Part 2: Enable fields by default in the JS shell. r=khyperia
Differential Revision: https://phabricator.services.mozilla.com/D34639

--HG--
extra : moz-landing-system : lando
2019-06-27 14:57:44 +00:00
Narcis Beleuzu 255b52c321 Backed out 2 changesets (bug 1558971, bug 1555464) for SM bustages on ecma262-issue-1461.js . CLOSED TREE
Backed out changeset 8227f5fbbe20 (bug 1555464)
Backed out changeset 36683eb4d0db (bug 1558971)
2019-06-26 19:55:40 +03:00
Jason Orendorff 1c562e6022 Bug 1555464 - Part 2: Enable fields by default in the JS shell. r=khyperia
Differential Revision: https://phabricator.services.mozilla.com/D34639

--HG--
extra : moz-landing-system : lando
2019-06-26 04:43:05 +00:00
Ted Campbell 1e2658e982 Bug 1559275 - Add TransistiveCompileOptions::forceFullParse. r=jandem
Check VM and Realm options that may disable syntax parsing up front in
the CompileOptions constructor. This is needed to make the frontend
closer to a pure-function.

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

--HG--
extra : moz-landing-system : lando
2019-06-19 01:43:06 +00:00
Ted Campbell 1138b5e8fc Bug 1559275 - Add TransistiveCompileOptions::discardSource. r=jandem
Check realm flags at when creating CompileOptions rather than during
compilation. This is helpful for pre-compiling self-hosting code.

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

--HG--
extra : moz-landing-system : lando
2019-06-19 00:27:40 +00:00
Ted Campbell 8a260ca538 Bug 1559275 - Remove unused CompileOptions::allowSyntaxParser. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D35070

--HG--
extra : moz-landing-system : lando
2019-06-19 00:27:41 +00:00
Ted Campbell d2cb6059f3 Bug 1559275 - Remove unused CompileOptions::isProbablySystemCode. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D34977

--HG--
extra : moz-landing-system : lando
2019-06-19 00:27:40 +00:00
Ted Campbell a68d5a818e Bug 1559275 - Only initialize JS::OwningCompileOptions by copying. r=jandem
All uses of OwningCompileOptions now are initialized from copy() so
remove the now-unused setters.

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

--HG--
extra : moz-landing-system : lando
2019-06-19 00:27:41 +00:00