Bug 152551 - Add support for aliasing JSC Options
Summary: Add support for aliasing JSC Options
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Mark Lam
URL:
Keywords:
Depends on: 152750
Blocks:
  Show dependency treegraph
 
Reported: 2015-12-24 16:54 PST by Mark Lam
Modified: 2016-01-08 03:20 PST (History)
8 users (show)

See Also:


Attachments
proposed patch. (9.99 KB, patch)
2015-12-24 17:17 PST, Mark Lam
fpizlo: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Lam 2015-12-24 16:54:13 PST
This allows us to use old options names as well.  This is for the benefit of third party tools which may have been built to rely on those old options.
Comment 1 Mark Lam 2015-12-24 17:17:46 PST
Created attachment 267906 [details]
proposed patch.
Comment 2 WebKit Commit Bot 2015-12-24 17:19:28 PST
Attachment 267906 [details] did not pass style-queue:


ERROR: Source/JavaScriptCore/runtime/Options.cpp:584:  Multi line control clauses should use braces.  [whitespace/braces] [4]
ERROR: Source/JavaScriptCore/runtime/Options.cpp:589:  Multi line control clauses should use braces.  [whitespace/braces] [4]
Total errors found: 2 in 4 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Geoffrey Garen 2016-01-04 10:59:04 PST
Which tools rely on old options? Who are the third parties?
Comment 4 Filip Pizlo 2016-01-04 11:14:16 PST
(In reply to comment #3)
> Which tools rely on old options? Who are the third parties?

We often tell people to use our options.  They are all internal clients.
Comment 5 Mark Lam 2016-01-05 11:13:08 PST
Thanks for the review.  Landed in r194591: <http://trac.webkit.org/r194591>.
Comment 6 WebKit Commit Bot 2016-01-05 12:34:37 PST
Re-opened since this is blocked by bug 152750
Comment 7 Mark Lam 2016-01-05 12:37:03 PST
The requested was invalid.
Comment 8 Mark Lam 2016-01-05 12:37:19 PST
(In reply to comment #7)
> The requested was invalid.

I meant "requested rollout".
Comment 9 Csaba Osztrogonác 2016-01-08 03:20:46 PST
Comment on attachment 267906 [details]
proposed patch.

View in context: https://bugs.webkit.org/attachment.cgi?id=267906&action=review

> Source/JavaScriptCore/jsc.cpp:1973
> -        JSC::Options::dumpAllOptions(stderr, JSC::Options::DumpLevel::Verbose, "All JSC runtime options:");
> +        JSC::Options::dumpAllOptions(stderr, JSC::Options::DumpLevel::Overridden, "All JSC runtime options:");

Now there is no way to dump all options without modifying the source code. :-/
And in this case the help message of --options and --dumpOptions are misleading.