<?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>110396</bug_id>
          
          <creation_ts>2013-02-20 15:23:18 -0800</creation_ts>
          <short_desc>[v8] Fix an erroneous WrapperGrouper call in preparation for refactoring</short_desc>
          <delta_ts>2013-02-20 16:02:22 -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>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="Adam Klein">adamk</reporter>
          <assigned_to name="Adam Klein">adamk</assigned_to>
          <cc>abarth</cc>
    
    <cc>haraken</cc>
    
    <cc>japhet</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>837829</commentid>
    <comment_count>0</comment_count>
    <who name="Adam Klein">adamk</who>
    <bug_when>2013-02-20 15:23:18 -0800</bug_when>
    <thetext>[v8] Fix an erroneous WrapperGrouper call in preparation for refactoring</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>837830</commentid>
    <comment_count>1</comment_count>
      <attachid>189393</attachid>
    <who name="Adam Klein">adamk</who>
    <bug_when>2013-02-20 15:25:04 -0800</bug_when>
    <thetext>Created attachment 189393
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>837837</commentid>
    <comment_count>2</comment_count>
      <attachid>189393</attachid>
    <who name="Kentaro Hara">haraken</who>
    <bug_when>2013-02-20 15:33:30 -0800</bug_when>
    <thetext>Comment on attachment 189393
Patch

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

&gt; Source/WebCore/bindings/v8/V8GCController.cpp:314
&gt; -                m_grouper.addNodeToGroup(V8GCController::opaqueRootForGC(*it, m_isolate), wrapper);
&gt; +                m_grouper.addObjectToGroup(V8GCController::opaqueRootForGC(*it, m_isolate), wrapper);

*it is a Node, and opaqueRootForGC() returns a Node, so I&apos;m confused. Would you elaborate on why you want to make this change?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>837843</commentid>
    <comment_count>3</comment_count>
    <who name="Adam Klein">adamk</who>
    <bug_when>2013-02-20 15:40:03 -0800</bug_when>
    <thetext>(In reply to comment #2)
&gt; (From update of attachment 189393 [details])
&gt; View in context: https://bugs.webkit.org/attachment.cgi?id=189393&amp;action=review
&gt; 
&gt; &gt; Source/WebCore/bindings/v8/V8GCController.cpp:314
&gt; &gt; -                m_grouper.addNodeToGroup(V8GCController::opaqueRootForGC(*it, m_isolate), wrapper);
&gt; &gt; +                m_grouper.addObjectToGroup(V8GCController::opaqueRootForGC(*it, m_isolate), wrapper);
&gt; 
&gt; *it is a Node, and opaqueRootForGC() returns a Node, so I&apos;m confused. Would you elaborate on why you want to make this change?

Note that all the analogous calls to this one are from the CodeGenerator, in GenerateOpaqueRootForGC, and the return value of that is always passed to addObjectToGroup() (by V8GCController). Adam Barth may be able to shine more light on this, but it appears to me that &quot;addNodeToGroup&quot; refers to the wrapper being a Node wrapper, not the root being a Node (though that&apos;s definitely not obvious from the type signatures of the functions, as you point out).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>837844</commentid>
    <comment_count>4</comment_count>
    <who name="Adam Klein">adamk</who>
    <bug_when>2013-02-20 15:40:37 -0800</bug_when>
    <thetext>As for why I&apos;m making this change, see the FIXME in V8GCController a few lines above the lines I&apos;m changing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>837849</commentid>
    <comment_count>5</comment_count>
      <attachid>189393</attachid>
    <who name="Kentaro Hara">haraken</who>
    <bug_when>2013-02-20 15:42:55 -0800</bug_when>
    <thetext>Comment on attachment 189393
Patch

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

&gt;&gt;&gt; Source/WebCore/bindings/v8/V8GCController.cpp:314
&gt;&gt;&gt; +                m_grouper.addObjectToGroup(V8GCController::opaqueRootForGC(*it, m_isolate), wrapper);
&gt;&gt; 
&gt;&gt; *it is a Node, and opaqueRootForGC() returns a Node, so I&apos;m confused. Would you elaborate on why you want to make this change?
&gt; 
&gt; Note that all the analogous calls to this one are from the CodeGenerator, in GenerateOpaqueRootForGC, and the return value of that is always passed to addObjectToGroup() (by V8GCController). Adam Barth may be able to shine more light on this, but it appears to me that &quot;addNodeToGroup&quot; refers to the wrapper being a Node wrapper, not the root being a Node (though that&apos;s definitely not obvious from the type signatures of the functions, as you point out).

Thanks, understood. Makes sense to me.

I&apos;ll rename add{Node,Object}ToGroup to add{Node,Object}WrapperToGroup in a follow-up patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>837870</commentid>
    <comment_count>6</comment_count>
      <attachid>189393</attachid>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2013-02-20 16:02:18 -0800</bug_when>
    <thetext>Comment on attachment 189393
Patch

Clearing flags on attachment: 189393

Committed r143526: &lt;http://trac.webkit.org/changeset/143526&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>837871</commentid>
    <comment_count>7</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2013-02-20 16:02:22 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>189393</attachid>
            <date>2013-02-20 15:25:04 -0800</date>
            <delta_ts>2013-02-20 16:02:17 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-110396-20130220152125.patch</filename>
            <type>text/plain</type>
            <size>1962</size>
            <attacher name="Adam Klein">adamk</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMTQzNDgzCmRpZmYgLS1naXQgYS9Tb3VyY2UvV2ViQ29yZS9D
aGFuZ2VMb2cgYi9Tb3VyY2UvV2ViQ29yZS9DaGFuZ2VMb2cKaW5kZXggYTNlMTBjYjdiOWFkMmYz
ODkyNTBiYmY5OWFhNGMxNzZjMjAwMTY4Ny4uZWE4MzgwMzkxOTc1ZDkyMDdiY2U2NjRmY2ViM2M0
M2VmZDg2ZmUwNiAxMDA2NDQKLS0tIGEvU291cmNlL1dlYkNvcmUvQ2hhbmdlTG9nCisrKyBiL1Nv
dXJjZS9XZWJDb3JlL0NoYW5nZUxvZwpAQCAtMSwzICsxLDE2IEBACisyMDEzLTAyLTIwICBBZGFt
IEtsZWluICA8YWRhbWtAY2hyb21pdW0ub3JnPgorCisgICAgICAgIFt2OF0gRml4IGFuIGVycm9u
ZW91cyBXcmFwcGVyR3JvdXBlciBjYWxsIGluIHByZXBhcmF0aW9uIGZvciByZWZhY3RvcmluZwor
ICAgICAgICBodHRwczovL2J1Z3Mud2Via2l0Lm9yZy9zaG93X2J1Zy5jZ2k/aWQ9MTEwMzk2CisK
KyAgICAgICAgUmV2aWV3ZWQgYnkgTk9CT0RZIChPT1BTISkuCisKKyAgICAgICAgVGhpcyBpcyBp
biBwcmVwYXJhdGlvbiBmb3IgYSByZWZhY3RvciB0byBleHBvc2UgYSBzaW1wbGlmaWVkCisgICAg
ICAgIFdyYXBwZXJHcm91cGVyIGludGVyZmFjZSB0byBWOCB3cmFwcGVyIGNsYXNzZXMgZW5hYmxp
bmcgdGhlbSB0bworICAgICAgICBzcGVjaWZ5IG11bHRpcGxlIHJvb3RzIHBlciB3cmFwcGVyIG9i
amVjdC4gCisKK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