<?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>266080</bug_id>
          
          <creation_ts>2023-12-08 10:10:23 -0800</creation_ts>
          <short_desc>Introduce compile-time checks and alternate allocation paths for compact pointer types</short_desc>
          <delta_ts>2023-12-19 14:54:03 -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>Web Template Framework</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=266331</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=266662</see_also>
          <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>
          <dependson>266140</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="David Degazio">d_degazio</reporter>
          <assigned_to name="David Degazio">d_degazio</assigned_to>
          <cc>commit-queue</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1998035</commentid>
    <comment_count>0</comment_count>
    <who name="David Degazio">d_degazio</who>
    <bug_when>2023-12-08 10:10:23 -0800</bug_when>
    <thetext>rdar://119382681

Currently, we make the call for whether packed and compact pointer representations are usable based on the global EFFECTIVE_ADDRESS_WIDTH constant; instead, it might be desirable for us move towards finer-grained enablement of these optimizations, specifically being able to enable them on a type-by-type basis.

As a first step, let&apos;s:
 - Require types to opt-into compact pointer usage, instead of assuming all pointers can be compacted/packed in the same way.
 - Add alternate allocator paths for types that are used in compact pointers, giving us a new API point to control how they are allocated in the future.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1998059</commentid>
    <comment_count>1</comment_count>
    <who name="David Degazio">d_degazio</who>
    <bug_when>2023-12-08 10:54:59 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/21517</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1998283</commentid>
    <comment_count>2</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-12-09 00:33:09 -0800</bug_when>
    <thetext>Committed 271796@main (27959d8049ad): &lt;https://commits.webkit.org/271796@main&gt;

Reviewed commits have been landed. Closing PR #21517 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1998291</commentid>
    <comment_count>3</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2023-12-09 03:09:47 -0800</bug_when>
    <thetext>Re-opened since this is blocked by bug 266140</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1998331</commentid>
    <comment_count>4</comment_count>
    <who name="David Degazio">d_degazio</who>
    <bug_when>2023-12-09 09:55:42 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/21576</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1998373</commentid>
    <comment_count>5</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-12-09 17:53:44 -0800</bug_when>
    <thetext>Committed 271819@main (2c04bdef5846): &lt;https://commits.webkit.org/271819@main&gt;

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

    </bug>

</bugzilla>