<?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>124169</bug_id>
          
          <creation_ts>2013-11-11 14:55:27 -0800</creation_ts>
          <short_desc>Remove ConstantFoldingPhase&apos;s weirdo compile-time optimization</short_desc>
          <delta_ts>2013-11-11 15:00:02 -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>All</rep_platform>
          <op_sys>All</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>124138</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Filip Pizlo">fpizlo</reporter>
          <assigned_to name="Filip Pizlo">fpizlo</assigned_to>
          <cc>barraclough</cc>
    
    <cc>ggaren</cc>
    
    <cc>mark.lam</cc>
    
    <cc>mhahnenberg</cc>
    
    <cc>msaboff</cc>
    
    <cc>oliver</cc>
    
    <cc>sam</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>949462</commentid>
    <comment_count>0</comment_count>
    <who name="Filip Pizlo">fpizlo</who>
    <bug_when>2013-11-11 14:55:27 -0800</bug_when>
    <thetext>It&apos;s not needed anymore now that the compiler is concurrent - we&apos;re just not sensitive to such compile-time hacks anymore.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>949463</commentid>
    <comment_count>1</comment_count>
    <who name="Filip Pizlo">fpizlo</who>
    <bug_when>2013-11-11 14:56:59 -0800</bug_when>
    <thetext>This blocks https://bugs.webkit.org/show_bug.cgi?id=124138 because I&apos;m pretty sure the fix to that requires making ConstantFoldingPhase do some special things for folded GetLocal&apos;s.  Currently it&apos;s already doing *really insane* special things for folded GetLocal&apos;s, and I don&apos;t want to put special things on top of special things.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>949464</commentid>
    <comment_count>2</comment_count>
      <attachid>216615</attachid>
    <who name="Filip Pizlo">fpizlo</who>
    <bug_when>2013-11-11 14:57:51 -0800</bug_when>
    <thetext>Created attachment 216615
the patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>949465</commentid>
    <comment_count>3</comment_count>
      <attachid>216615</attachid>
    <who name="Mark Hahnenberg">mhahnenberg</who>
    <bug_when>2013-11-11 14:58:44 -0800</bug_when>
    <thetext>Comment on attachment 216615
the patch

r=me assuming benchmarks look good.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>949466</commentid>
    <comment_count>4</comment_count>
    <who name="Filip Pizlo">fpizlo</who>
    <bug_when>2013-11-11 15:00:02 -0800</bug_when>
    <thetext>Landed in http://trac.webkit.org/changeset/159074</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>216615</attachid>
            <date>2013-11-11 14:57:51 -0800</date>
            <delta_ts>2013-11-11 14:58:44 -0800</delta_ts>
            <desc>the patch</desc>
            <filename>blah.patch</filename>
            <type>text/plain</type>
            <size>3047</size>
            <attacher name="Filip Pizlo">fpizlo</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9KYXZhU2NyaXB0Q29yZS9DaGFuZ2VMb2cKPT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gU291
cmNlL0phdmFTY3JpcHRDb3JlL0NoYW5nZUxvZwkocmV2aXNpb24gMTU5MDczKQorKysgU291cmNl
L0ph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OTA2MykKKysrIFNvdXJjZS9KYXZhU2Ny
aXB0Q29yZS9kZmcvREZHQ29uc3RhbnRGb2xkaW5nUGhhc2UuY3BwCSh3b3JraW5nIGNvcHkpCkBA
IC0zNDksMzcgKzM0OSw5IEBAIHByaXZhdGU6CiAgICAgICAgICAgICBDb2RlT3JpZ2luIGNvZGVP
cmlnaW4gPSBub2RlLT5jb2RlT3JpZ2luOwogICAgICAgICAgICAgQWRqYWNlbmN5TGlzdCBjaGls
ZHJlbiA9IG5vZGUtPmNoaWxkcmVuOwogICAgICAgICAgICAgCi0gICAgICAgICAgICBpZiAobm9k
ZS0+b3AoKSA9PSBHZXRMb2NhbCkgewotICAgICAgICAgICAgICAgIC8vIEdldExvY2FscyB3aXRo
b3V0IGEgUGhpIGNoaWxkIGFyZSBndWFyYW50ZWVkIGRlYWQuIFdlIGRvbid0IGhhdmUgdG8KLSAg
ICAgICAgICAgICAgICAvLyBkbyBhbnl0aGluZyBhYm91dCB0aGVtLgotICAgICAgICAgICAgICAg
IGlmICghbm9kZS0+Y2hpbGQxKCkpCi0gICAgICAgICAgICAgICAgICAgIGNvbnRpbnVlOwotICAg
ICAgICAgICAgICAgIAotICAgICAgICAgICAgICAgIGlmIChtX2dyYXBoLm1fZm9ybSAhPSBMb2Fk
U3RvcmUpIHsKLSAgICAgICAgICAgICAgICAgICAgVmFyaWFibGVBY2Nlc3NEYXRhKiB2YXJpYWJs
ZSA9IG5vZGUtPnZhcmlhYmxlQWNjZXNzRGF0YSgpOwotICAgICAgICAgICAgICAgICAgICBOb2Rl
KiBwaGkgPSBub2RlLT5jaGlsZDEoKS5ub2RlKCk7Ci0gICAgICAgICAgICAgICAgICAgIGlmIChw
aGktPm9wKCkgPT0gUGhpCi0gICAgICAgICAgICAgICAgICAgICAgICAmJiBibG9jay0+dmFyaWFi
bGVzQXRIZWFkLm9wZXJhbmQodmFyaWFibGUtPmxvY2FsKCkpID09IHBoaQotICAgICAgICAgICAg
ICAgICAgICAgICAgJiYgYmxvY2stPnZhcmlhYmxlc0F0VGFpbC5vcGVyYW5kKHZhcmlhYmxlLT5s
b2NhbCgpKSA9PSBub2RlKSB7Ci0gICAgICAgICAgICAgICAgICAgICAgICAKLSAgICAgICAgICAg
ICAgICAgICAgICAgIC8vIEtlZXAgdGhlIGdyYXBoIHRocmVhZGVkIGZvciBlYXN5IGNhc2VzLiBU
aGlzIGlzIGltcHJvdmVzIGNvbXBpbGUKLSAgICAgICAgICAgICAgICAgICAgICAgIC8vIHRpbWVz
LiBJdCB3b3VsZCBiZSBjb3JyZWN0IHRvIGp1c3QgZGV0aHJlYWQgaGVyZS4KLSAgICAgICAgICAg
ICAgICAgICAgICAgIAotICAgICAgICAgICAgICAgICAgICAgICAgbV9ncmFwaC5jb252ZXJ0VG9D
b25zdGFudChub2RlLCB2YWx1ZSk7Ci0gICAgICAgICAgICAgICAgICAgICAgICBOb2RlKiBwaGFu
dG9tID0gbV9pbnNlcnRpb25TZXQuaW5zZXJ0Tm9kZSgKLSAgICAgICAgICAgICAgICAgICAgICAg
ICAgICBpbmRleEluQmxvY2ssIFNwZWNOb25lLCBQaGFudG9tTG9jYWwsICBjb2RlT3JpZ2luLAot
ICAgICAgICAgICAgICAgICAgICAgICAgICAgIE9wSW5mbyh2YXJpYWJsZSksIEVkZ2UocGhpKSk7
Ci0gICAgICAgICAgICAgICAgICAgICAgICBibG9jay0+dmFyaWFibGVzQXRIZWFkLm9wZXJhbmQo
dmFyaWFibGUtPmxvY2FsKCkpID0gcGhhbnRvbTsKLSAgICAgICAgICAgICAgICAgICAgICAgIGJs
b2NrLT52YXJpYWJsZXNBdFRhaWwub3BlcmFuZCh2YXJpYWJsZS0+bG9jYWwoKSkgPSBwaGFudG9t
OwotICAgICAgICAgICAgICAgICAgICAgICAgCi0gICAgICAgICAgICAgICAgICAgICAgICBjaGFu
Z2VkID0gdHJ1ZTsKLSAgICAgICAgICAgICAgICAgICAgICAgIAotICAgICAgICAgICAgICAgICAg
ICAgICAgY29udGludWU7Ci0gICAgICAgICAgICAgICAgICAgIH0KLSAgICAgICAgICAgICAgICAg
ICAgCi0gICAgICAgICAgICAgICAgICAgIG1fZ3JhcGguZGV0aHJlYWQoKTsKLSAgICAgICAgICAg
ICAgICB9Ci0gICAgICAgICAgICB9IGVsc2UKKyAgICAgICAgICAgIGlmIChub2RlLT5vcCgpID09
IEdldExvY2FsKQorICAgICAgICAgICAgICAgIG1fZ3JhcGguZGV0aHJlYWQoKTsKKyAgICAgICAg
ICAgIGVsc2UKICAgICAgICAgICAgICAgICBBU1NFUlQoIW5vZGUtPmhhc1ZhcmlhYmxlQWNjZXNz
RGF0YShtX2dyYXBoKSk7CiAgICAgICAgICAgICAKICAgICAgICAgICAgIG1fZ3JhcGguY29udmVy
dFRvQ29uc3RhbnQobm9kZSwgdmFsdWUpOwo=
</data>
<flag name="review"
          id="239610"
          type_id="1"
          status="+"
          setter="mhahnenberg"
    />
          </attachment>
      

    </bug>

</bugzilla>