<?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>90740</bug_id>
          
          <creation_ts>2012-07-08 15:37:53 -0700</creation_ts>
          <short_desc>children method in LLINT AST Not class should return [@child]</short_desc>
          <delta_ts>2013-03-07 00:20:55 -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>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>
          
          <blocked>111568</blocked>
          <everconfirmed>0</everconfirmed>
          <reporter name="lds">laurent</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>buildbot</cc>
    
    <cc>fpizlo</cc>
    
    <cc>galpeter</cc>
    
    <cc>laurent</cc>
    
    <cc>mark.lam</cc>
    
    <cc>rniwa</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>664502</commentid>
    <comment_count>0</comment_count>
    <who name="lds">laurent</who>
    <bug_when>2012-07-08 15:37:53 -0700</bug_when>
    <thetext>While experimenting with the new llint in JSCore,  I noticed that the
Not class (located in offlineasm/ast.rb) may have an incorrect method:

class Not &lt; Node
    attr_reader :child

    def initialize(codeOrigin, child)
        super(codeOrigin)
        @child = child
    end

    def children
        [@left, @right]
    end

    def mapChildren
        Not.new(codeOrigin, (yield @child))
    end

    def dump
        &quot;(not #{child.dump})&quot;
    end
end



Shouldn&apos;t children of this &apos;Not&apos; class be

    def children
        [@child]
    end

instead, since it&apos;s  a unary operator?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>848762</commentid>
    <comment_count>1</comment_count>
      <attachid>191731</attachid>
    <who name="Peter Gal">galpeter</who>
    <bug_when>2013-03-06 05:43:57 -0800</bug_when>
    <thetext>Created attachment 191731
Fix for the children method

I think this is also a problem. So this patch should fix it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>849813</commentid>
    <comment_count>2</comment_count>
      <attachid>191731</attachid>
    <who name="Build Bot">buildbot</who>
    <bug_when>2013-03-07 00:09:51 -0800</bug_when>
    <thetext>Comment on attachment 191731
Fix for the children method

Attachment 191731 did not pass mac-ews (mac):
Output: http://webkit-commit-queue.appspot.com/results/17067209

New failing tests:
editing/selection/selection-modify-crash.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>849821</commentid>
    <comment_count>3</comment_count>
    <who name="Peter Gal">galpeter</who>
    <bug_when>2013-03-07 00:18:55 -0800</bug_when>
    <thetext>(In reply to comment #2)
&gt; (From update of attachment 191731 [details])
&gt; Attachment 191731 [details] did not pass mac-ews (mac):
&gt; Output: http://webkit-commit-queue.appspot.com/results/17067209
&gt; 
&gt; New failing tests:
&gt; editing/selection/selection-modify-crash.html

This patch can not cause this fail, because at this time the &apos;Not&apos; node is not used at all.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>849822</commentid>
    <comment_count>4</comment_count>
    <who name="Filip Pizlo">fpizlo</who>
    <bug_when>2013-03-07 00:19:13 -0800</bug_when>
    <thetext>(In reply to comment #3)
&gt; (In reply to comment #2)
&gt; &gt; (From update of attachment 191731 [details] [details])
&gt; &gt; Attachment 191731 [details] [details] did not pass mac-ews (mac):
&gt; &gt; Output: http://webkit-commit-queue.appspot.com/results/17067209
&gt; &gt; 
&gt; &gt; New failing tests:
&gt; &gt; editing/selection/selection-modify-crash.html
&gt; 
&gt; This patch can not cause this fail, because at this time the &apos;Not&apos; node is not used at all.

Agreed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>849823</commentid>
    <comment_count>5</comment_count>
      <attachid>191731</attachid>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2013-03-07 00:20:51 -0800</bug_when>
    <thetext>Comment on attachment 191731
Fix for the children method

Clearing flags on attachment: 191731

Committed r145047: &lt;http://trac.webkit.org/changeset/145047&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>849824</commentid>
    <comment_count>6</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2013-03-07 00:20:55 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>191731</attachid>
            <date>2013-03-06 05:43:57 -0800</date>
            <delta_ts>2013-03-07 00:20:51 -0800</delta_ts>
            <desc>Fix for the children method</desc>
            <filename>offlineasm_ast_not_fix.patch</filename>
            <type>text/plain</type>
            <size>1006</size>
            <attacher name="Peter Gal">galpeter</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1NvdXJjZS9KYXZhU2NyaXB0Q29yZS9DaGFuZ2VMb2cgYi9Tb3VyY2UvSmF2
YVNjcmlwdENvcmUvQ2hhbmdlTG9nCmluZGV4IGM1OTVkNDkuLjFjMmRlOTAgMTAwNjQ0Ci0tLSBh
L1NvdXJjZS9KYXZhU2NyaXB0Q29yZS9DaGFuZ2VMb2cKKysrIGIvU291cmNlL0phdmFTY3JpcHRD
b3JlL0NoYW5nZUxvZwpAQCAtMSwzICsxLDEyIEBACisyMDEzLTAzLTA2ICBQZXRlciBHYWwgIDxn
YWxwZXRlckBpbmYudS1zemVnZWQuaHU+CisKKyAgICAgICAgQ2hpbGRyZW4gbWV0aG9kIGluIExM
SU5UIEFTVCBOb3QgY2xhc3Mgc2hvd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