<?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>37655</bug_id>
          
          <creation_ts>2010-04-15 06:28:06 -0700</creation_ts>
          <short_desc>[v8] mark Array.prototype.sort tests which verify if sorting is stable as passing for Chromium</short_desc>
          <delta_ts>2010-04-15 13:28:43 -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>WebCore Misc.</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="anton muhin">antonm</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ager</cc>
    
    <cc>ajwong</cc>
    
    <cc>commit-queue</cc>
    
    <cc>levin</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>212827</commentid>
    <comment_count>0</comment_count>
      <attachid>53430</attachid>
    <who name="anton muhin">antonm</who>
    <bug_when>2010-04-15 06:28:06 -0700</bug_when>
    <thetext>Created attachment 53430
First take

Recently algorithm for sorting small arrays (&lt;= 22 elements) was changed and now sorting for those arrays is stable.

Note that larger arrays are sorted with quick sort, so sorting is not stable for them.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>212870</commentid>
    <comment_count>1</comment_count>
    <who name="David Levin">levin</who>
    <bug_when>2010-04-15 08:33:57 -0700</bug_when>
    <thetext>I would update the comment in test_expectation.txt because it is very confusing to see 
&quot;// V8 doesn&apos;t stable sort and we currently have no intention of
// changing this.&quot;
Followed by two passing tests which are marked as WONTFIX!

Reading your comment in this bug it completely makes sense.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>212874</commentid>
    <comment_count>2</comment_count>
    <who name="anton muhin">antonm</who>
    <bug_when>2010-04-15 08:43:55 -0700</bug_when>
    <thetext>(In reply to comment #1)
&gt; I would update the comment in test_expectation.txt because it is very confusing
&gt; to see 
&gt; &quot;// V8 doesn&apos;t stable sort and we currently have no intention of
&gt; // changing this.&quot;
&gt; Followed by two passing tests which are marked as WONTFIX!
&gt; 
&gt; Reading your comment in this bug it completely makes sense.

:)

David, if you have any suggestions how to make it more obvious, I&apos;d really appreciate that.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>212879</commentid>
    <comment_count>3</comment_count>
    <who name="David Levin">levin</who>
    <bug_when>2010-04-15 08:59:46 -0700</bug_when>
    <thetext>Perhaps:
&quot;// V8 doesn&apos;t stable sort and we currently have no intention of
// changing this. The following test only happen to pass due to
// the current algorithm used for sorting small arrays. If larger
// arrays were used in the tests, they would fail.&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>212887</commentid>
    <comment_count>4</comment_count>
      <attachid>53442</attachid>
    <who name="anton muhin">antonm</who>
    <bug_when>2010-04-15 09:36:27 -0700</bug_when>
    <thetext>Created attachment 53442
Changing the wording per David suggestion</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>212889</commentid>
    <comment_count>5</comment_count>
    <who name="anton muhin">antonm</who>
    <bug_when>2010-04-15 09:37:23 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; Perhaps:
&gt; &quot;// V8 doesn&apos;t stable sort and we currently have no intention of
&gt; // changing this. The following test only happen to pass due to
&gt; // the current algorithm used for sorting small arrays. If larger
&gt; // arrays were used in the tests, they would fail.&quot;

Thanks, David, changed as per your suggestion.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>212969</commentid>
    <comment_count>6</comment_count>
      <attachid>53442</attachid>
    <who name="anton muhin">antonm</who>
    <bug_when>2010-04-15 12:04:31 -0700</bug_when>
    <thetext>Comment on attachment 53442
Changing the wording per David suggestion

Thanks a lot, David</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>213001</commentid>
    <comment_count>7</comment_count>
      <attachid>53442</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-04-15 13:28:37 -0700</bug_when>
    <thetext>Comment on attachment 53442
Changing the wording per David suggestion

Clearing flags on attachment: 53442

Committed r57666: &lt;http://trac.webkit.org/changeset/57666&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>213002</commentid>
    <comment_count>8</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-04-15 13:28:43 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>53430</attachid>
            <date>2010-04-15 06:28:06 -0700</date>
            <delta_ts>2010-04-15 09:36:20 -0700</delta_ts>
            <desc>First take</desc>
            <filename>LT.patch</filename>
            <type>text/plain</type>
            <size>1441</size>
            <attacher name="anton muhin">antonm</attacher>
            
              <data encoding="base64">SW5kZXg6IHRoaXJkX3BhcnR5L1dlYktpdC9MYXlvdXRUZXN0cy9DaGFuZ2VMb2cKPT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PQotLS0gdGhpcmRfcGFydHkvV2ViS2l0L0xheW91dFRlc3RzL0NoYW5nZUxvZwkocmV2aXNpb24g
NTc2NDEpCisrKyB0aGlyZF9wYXJ0eS9XZWJLaXQvTGF5b3V0VGVzdHMvQ2hhbmdlTG9nCSh3b3Jr
aW5nIGNvcHkpCkBAIC0xLDMgKzEsMTEgQEAKKzIwMTAtMDQtMTUgIE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ly9jb2RlLmdvb2dsZS5jb20vcC92OC9pc3N1ZXMvZGV0YWlsP2lkPTkwCi1XT05URklYIDog
ZmFzdC9qcy9jb21wYXJlZm4tc29ydC1zdGFiaWxpdHkuaHRtbCA9IEZBSUwKLVdPTlRGSVggOiBm
YXN0L2pzL3NvcnQtc3RhYmlsaXR5Lmh0bWwgPSBGQUlMCitXT05URklYIDogZmFzdC9qcy9jb21w
YXJlZm4tc29ydC1zdGFiaWxpdHkuaHRtbCA9IFBBU1MKK1dPTlRGSVggOiBmYXN0L2pzL3NvcnQt
c3RhYmlsaXR5Lmh0bWwgPSBQQVNTCiAKIC8vIFdlIGhhdmUgbm8gaW5kaWNhdGlvbiB0aGF0IGFu
eW9uZSBtaXNzZXMgdGhpcyBhbmQgaGF2ZSBjdXJyZW50bHkgbm8KIC8vIGludGVudGlvbiBvZiBp
bXBsZW1lbnRpbmcgaXQuCg==
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>53442</attachid>
            <date>2010-04-15 09:36:27 -0700</date>
            <delta_ts>2010-04-15 13:28:37 -0700</delta_ts>
            <desc>Changing the wording per David suggestion</desc>
            <filename>bug-37655-20100415203625.patch</filename>
            <type>text/plain</type>
            <size>1693</size>
            <attacher name="anton muhin">antonm</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL0xheW91dFRlc3RzL0NoYW5nZUxvZyBiL0xheW91dFRlc3RzL0NoYW5nZUxv
ZwppbmRleCBjYzU2MmI2Li4wOTU4ODFjIDEwMDY0NAotLS0gYS9MYXlvdXRUZXN0cy9DaGFuZ2VM
b2cKKysrIGIvTGF5b3V0VGVzdHMvQ2hhbmdlTG9nCkBAIC0xLDMgKzEsMTIgQEAKKzIwMTAtMDQt
MTUgIEFudG9uIE11aGluICA8YW50b25tQGNocm9taXVtLm9yZz4KKworICAgICAgICBSZXZpZXdl
ZCBieSBOT0JPRFkgKE9PUFMhKS4KKworICAgICAgICBbdjhdIG1hc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