<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>248682</bug_id>
          
          <creation_ts>2022-12-02 13:27:47 -0800</creation_ts>
          <short_desc>Clean up some options initialization workflow.</short_desc>
          <delta_ts>2022-12-02 16:29:41 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>JavaScriptCore</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mark Lam">mark.lam</reporter>
          <assigned_to name="Mark Lam">mark.lam</assigned_to>
          <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1916327</commentid>
    <comment_count>0</comment_count>
    <who name="Mark Lam">mark.lam</who>
    <bug_when>2022-12-02 13:27:47 -0800</bug_when>
    <thetext>We always call correctOptions() before recomputeDependentOptions(), and often call dumpOptionsIfNeeded() and ensureOptionsAreCoherent() after.

This patch makes things more consistent by:
1. Rename recomputeDependentOptions() to notifyOptionsChanged().
2. Rename ensureOptionsAreCoherent() to assertOptionsAreCoherent(), because &quot;ensure&quot; implies that the function will make them coherent.  Instead, the function asserts that they are coherent.
3. Move the body of correctOptions() (which is a tiny function) into the top of notifyOptionsChanged().
4. Call dumpOptionsIfNeeded() and assertOptionsAreCoherent() at the end of notifyOptionsChanged() instead of from clients.
5. Make sure clients call notifyOptionsChanged() after changing options.

Additionally:
6. Rename ExecutableAllocator:: setJITEnabled() to ExecutableAllocator::disableJIT().  Disabling JIT in this function was always a one way street, and there&apos;s no going back.  This rename makes it clear and explicit.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1916328</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-12-02 13:28:13 -0800</bug_when>
    <thetext>&lt;rdar://problem/102916238&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1916331</commentid>
    <comment_count>2</comment_count>
    <who name="Mark Lam">mark.lam</who>
    <bug_when>2022-12-02 13:41:21 -0800</bug_when>
    <thetext>&lt;rdar://problem/102916238&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1916332</commentid>
    <comment_count>3</comment_count>
    <who name="Mark Lam">mark.lam</who>
    <bug_when>2022-12-02 13:43:08 -0800</bug_when>
    <thetext>&lt;rdar://problem/102844335&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1916340</commentid>
    <comment_count>4</comment_count>
    <who name="Mark Lam">mark.lam</who>
    <bug_when>2022-12-02 14:33:47 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/7095</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1916380</commentid>
    <comment_count>5</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2022-12-02 16:29:33 -0800</bug_when>
    <thetext>Committed 257311@main (6d72ef261e4a): &lt;https://commits.webkit.org/257311@main&gt;

Reviewed commits have been landed. Closing PR #7095 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>