<?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>142923</bug_id>
          
          <creation_ts>2015-03-20 14:50:06 -0700</creation_ts>
          <short_desc>Merge PropertyName into Identifier</short_desc>
          <delta_ts>2015-05-08 18:26:25 -0700</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>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yusuke Suzuki">ysuzuki</reporter>
          <assigned_to name="Yusuke Suzuki">ysuzuki</assigned_to>
          <cc>barraclough</cc>
    
    <cc>benjamin</cc>
    
    <cc>darin</cc>
    
    <cc>fpizlo</cc>
    
    <cc>ggaren</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1078957</commentid>
    <comment_count>0</comment_count>
    <who name="Yusuke Suzuki">ysuzuki</who>
    <bug_when>2015-03-20 14:50:06 -0700</bug_when>
    <thetext>PropertyName was introduced to treat non-indexed / indexed property. https://bugs.webkit.org/show_bug.cgi?id=86241
At that time, indexed/non-indexed abstract operations are not separated.
So PropertyName is needed to treat non-indexed / indexed properties.

However, now these abstract operations are separated. So there&apos;s no need to have both Identifier and PropertyName.
Thus we can merge PropertyName into Identifier.

And since PropertyName doesn&apos;t have onwership to its backing StringImpl*, it sometimes cause failures.
Merging PropertyName into Identifier elliminates this mistakes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1093376</commentid>
    <comment_count>1</comment_count>
    <who name="Yusuke Suzuki">ysuzuki</who>
    <bug_when>2015-05-08 18:23:28 -0700</bug_when>
    <thetext>Currently, some JIT code assumes the PropertyName&apos;s layout. It only holds StringImpl*. (Not RefPtr&lt;StringImpl&gt;).
So in the meantime, we just use it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1093379</commentid>
    <comment_count>2</comment_count>
    <who name="Filip Pizlo">fpizlo</who>
    <bug_when>2015-05-08 18:26:25 -0700</bug_when>
    <thetext>(In reply to comment #1)
&gt; Currently, some JIT code assumes the PropertyName&apos;s layout. It only holds
&gt; StringImpl*. (Not RefPtr&lt;StringImpl&gt;).
&gt; So in the meantime, we just use it.

Right.  It would be wrong to have the JITs use RefPtr&lt;StringImpl&gt;.  One way to make this work would be to replace all JIT uses of PropertyName with just StringImpl*.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>