<?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>139572</bug_id>
          
          <creation_ts>2014-12-11 17:46:36 -0800</creation_ts>
          <short_desc>Need a regression test for bug 139533</short_desc>
          <delta_ts>2022-02-27 23:36:49 -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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Saboff">msaboff</reporter>
          <assigned_to name="Michael Saboff">msaboff</assigned_to>
          <cc>fpizlo</cc>
    
    <cc>ggaren</cc>
    
    <cc>mark.lam</cc>
    
    <cc>oliver</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1054715</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Saboff">msaboff</who>
    <bug_when>2014-12-11 17:46:36 -0800</bug_when>
    <thetext>The fix for https://bugs.webkit.org/show_bug.cgi?id=139533 needs a regression test.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1054717</commentid>
    <comment_count>1</comment_count>
      <attachid>243168</attachid>
    <who name="Michael Saboff">msaboff</who>
    <bug_when>2014-12-11 17:50:33 -0800</bug_when>
    <thetext>Created attachment 243168
New Test</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1054722</commentid>
    <comment_count>2</comment_count>
      <attachid>243168</attachid>
    <who name="Mark Lam">mark.lam</who>
    <bug_when>2014-12-11 17:59:38 -0800</bug_when>
    <thetext>Comment on attachment 243168
New Test

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

r=me with fixes.

&gt; LayoutTests/js/script-tests/regress-139533.js:9
&gt; +	return arg + obj.addend;

Bad indentation here.

&gt; LayoutTests/js/script-tests/regress-139533.js:32
&gt; +    // After tiering up into the DFG, change the &quot;addend&quot; of obj.  This will do two things:
&gt; +    // 1) We should OSR exit with a BadType (addend is no longer an integer)
&gt; +    // 2) In the next call to inner, we will call jsAddSlowCase which will make a 
&gt; +    //    native call to get the default value of obj.addend.
&gt; +    // The OSR exit handler will not restore the ScopeChain slot in the header and the inlining
&gt; +    // should have overwritten inner&apos;s ScopeChain slot with something else.

Down the road, this could be misread as how things work then.  I think you should add a comment here indicating how the fix for 139533 makes this not crash anymore.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1054736</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Saboff">msaboff</who>
    <bug_when>2014-12-11 18:40:59 -0800</bug_when>
    <thetext>(In reply to comment #2)
&gt; Comment on attachment 243168 [details]
&gt; New Test
&gt; 
&gt; View in context:
&gt; https://bugs.webkit.org/attachment.cgi?id=243168&amp;action=review
&gt; 
&gt; r=me with fixes.
&gt; 
&gt; &gt; LayoutTests/js/script-tests/regress-139533.js:9
&gt; &gt; +	return arg + obj.addend;
&gt; 
&gt; Bad indentation here.

Changed the tab to spaces.

&gt; &gt; LayoutTests/js/script-tests/regress-139533.js:32
&gt; &gt; +    // After tiering up into the DFG, change the &quot;addend&quot; of obj.  This will do two things:
&gt; &gt; +    // 1) We should OSR exit with a BadType (addend is no longer an integer)
&gt; &gt; +    // 2) In the next call to inner, we will call jsAddSlowCase which will make a 
&gt; &gt; +    //    native call to get the default value of obj.addend.
&gt; &gt; +    // The OSR exit handler will not restore the ScopeChain slot in the header and the inlining
&gt; &gt; +    // should have overwritten inner&apos;s ScopeChain slot with something else.
&gt; 
&gt; Down the road, this could be misread as how things work then.  I think you
&gt; should add a comment here indicating how the fix for 139533 makes this not
&gt; crash anymore.

I added a little more details.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1054738</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Saboff">msaboff</who>
    <bug_when>2014-12-11 18:41:15 -0800</bug_when>
    <thetext>Committed r177203: &lt;http://trac.webkit.org/changeset/177203&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>243168</attachid>
            <date>2014-12-11 17:50:33 -0800</date>
            <delta_ts>2022-02-27 23:36:49 -0800</delta_ts>
            <desc>New Test</desc>
            <filename>139572.patch</filename>
            <type>text/plain</type>
            <size>3077</size>
            <attacher name="Michael Saboff">msaboff</attacher>
            
              <data encoding="base64">SW5kZXg6IExheW91dFRlc3RzL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBMYXlvdXRUZXN0cy9D
aGFuZ2VMb2cJKHJldmlzaW9uIDE3NzE5OCkKKysrIExheW91dFRlc3RzL0NoYW5nZUxvZwkod29y
a2luZyBjb3B5KQpAQCAtMSwzICsxLDE4IEBACisyMDE0LTEyLTExICBNaWNoYWVsIFNhYm9mZiAg
PG1zYWJvZmZAYXBwbGUuY29tPgorCisgICAgICAgIE5lZWQgYSByZWdyZXNzaW9uIHRlc3QgZm9y
IGJ1ZyAxMzk1MzMKKyAgICAgICAgaHR0cHM6Ly9idWdzLndlYmtpdC5vcmcvc2hvd19idWcuY2dp
P2lkPTEzOTU3MgorCisgICAgICAgIFJldmlld2VkIGJ5IE5PQk9EWSAoT09QUyEpLgorCisgICAg
ICAgICoganMvcmVncmVzcy0xMzk1MzMtZXhwZWN0ZWQudHh0OiBBZGRlZC4KKyAgICAgICAg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dGhlIGhlYWRlciBhbmQgdGhlIGlubGluaW5nCisgICAg
Ly8gc2hvdWxkIGhhdmUgb3ZlcndyaXR0ZW4gaW5uZXIncyBTY29wZUNoYWluIHNsb3Qgd2l0aCBz
b21ldGhpbmcgZWxzZS4KKyAgICBpZiAoaSA9PSBsaW1pdCAtIDEwKQorICAgICAgICBvYmouYWRk
ZW5kID0gbmV3IE15TnVtYmVyKCk7CisKKyAgICByZXN1bHQgPSBvdXRlcihpLCBvYmopOworfQo=
</data>
<flag name="review"
          id="268020"
          type_id="1"
          status="+"
          setter="mark.lam"
    />
          </attachment>
      

    </bug>

</bugzilla>