<?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>135287</bug_id>
          
          <creation_ts>2014-07-25 07:31:49 -0700</creation_ts>
          <short_desc>BuildFix: JavaScriptCore/bytecode/StructureSet.h:262:77: warning</short_desc>
          <delta_ts>2014-07-28 19:12:07 -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>New Bugs</component>
          <version>528+ (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></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Tamas Gergely">tgergely.u-szeged</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>commit-queue</cc>
    
    <cc>darin</cc>
    
    <cc>fpizlo</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1024813</commentid>
    <comment_count>0</comment_count>
    <who name="Tamas Gergely">tgergely.u-szeged</who>
    <bug_when>2014-07-25 07:31:49 -0700</bug_when>
    <thetext>I got a compile warning: Source/JavaScriptCore/bytecode/StructureSet.h:262:77: warning: &apos;&lt;anonymous&gt;.JSC::StructureSet::m_pointer&apos; is used uninitialized in this function [-Wuninitialized]

This is because the set() method (that is used to initialize the StructureSet object from the constructors directly or through setEmpty() or copyFrom() methods) preserves the reservedFlag from the old value which is not defined when the object is constructed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1024815</commentid>
    <comment_count>1</comment_count>
      <attachid>235514</attachid>
    <who name="Tamas Gergely">tgergely.u-szeged</who>
    <bug_when>2014-07-25 07:47:30 -0700</bug_when>
    <thetext>Created attachment 235514
patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1025108</commentid>
    <comment_count>2</comment_count>
      <attachid>235514</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2014-07-27 23:34:07 -0700</bug_when>
    <thetext>Comment on attachment 235514
patch

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

I think the new version of StructureSet was rolled out of the tree; this patch isn’t relevant until we bring it back in.

Best would be to make sure Filip fixes this before he re-lands the new code.

&gt; Source/JavaScriptCore/bytecode/StructureSet.h:43
&gt; +        : m_pointer(0)

Please use nullptr.

&gt; Source/JavaScriptCore/bytecode/StructureSet.h:49
&gt; +        : m_pointer(0)

Please use nullptr.

&gt; Source/JavaScriptCore/bytecode/StructureSet.h:55
&gt; +        : m_pointer(0)

Not sure it’s needed in this case. I didn’t carefully study copyFrom, but I don’t think it uses the old m_pointer value.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1025134</commentid>
    <comment_count>3</comment_count>
    <who name="Filip Pizlo">fpizlo</who>
    <bug_when>2014-07-28 08:03:32 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; (From update of attachment 235514 [details])
&gt; View in context: https://bugs.webkit.org/attachment.cgi?id=235514&amp;action=review
&gt; 
&gt; I think the new version of StructureSet was rolled out of the tree; this patch isn’t relevant until we bring it back in.

It&apos;s rolled back in. There are more changes now so this does need to be rebased. 

But r=me too. This change is fine. 

&gt; 
&gt; Best would be to make sure Filip fixes this before he re-lands the new code.
&gt; 
&gt; &gt; Source/JavaScriptCore/bytecode/StructureSet.h:43
&gt; &gt; +        : m_pointer(0)
&gt; 
&gt; Please use nullptr.

It&apos;s a uintptr, so that would be weird. Would it even work?

I think it would be weird even if it did work since the point of explicitly setting it is to clear the low tag bits. 

&gt; 
&gt; &gt; Source/JavaScriptCore/bytecode/StructureSet.h:49
&gt; &gt; +        : m_pointer(0)
&gt; 
&gt; Please use nullptr.

Ditto. 

&gt; 
&gt; &gt; Source/JavaScriptCore/bytecode/StructureSet.h:55
&gt; &gt; +        : m_pointer(0)
&gt; 
&gt; Not sure it’s needed in this case. I didn’t carefully study copyFrom, but I don’t think it uses the old m_pointer value.

I think that copyFrom leaves the low bits alone, so we need this change here also.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1025356</commentid>
    <comment_count>4</comment_count>
      <attachid>235514</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2014-07-28 18:38:25 -0700</bug_when>
    <thetext>Comment on attachment 235514
patch

OK.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1025361</commentid>
    <comment_count>5</comment_count>
      <attachid>235514</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2014-07-28 19:12:04 -0700</bug_when>
    <thetext>Comment on attachment 235514
patch

Clearing flags on attachment: 235514

Committed r171719: &lt;http://trac.webkit.org/changeset/171719&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1025362</commentid>
    <comment_count>6</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2014-07-28 19:12:07 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>235514</attachid>
            <date>2014-07-25 07:47:30 -0700</date>
            <delta_ts>2014-07-28 19:12:04 -0700</delta_ts>
            <desc>patch</desc>
            <filename>b135287.patch</filename>
            <type>text/plain</type>
            <size>1440</size>
            <attacher name="Tamas Gergely">tgergely.u-szeged</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1NvdXJjZS9KYXZhU2NyaXB0Q29yZS9DaGFuZ2VMb2cgYi9Tb3VyY2UvSmF2
YVNjcmlwdENvc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