<?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>72968</bug_id>
          
          <creation_ts>2011-11-22 10:25:26 -0800</creation_ts>
          <short_desc>Empty JSStrings are created as 16 bit</short_desc>
          <delta_ts>2011-11-24 22:36:16 -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>72969</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Saboff">msaboff</reporter>
          <assigned_to name="Michael Saboff">msaboff</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>507668</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Saboff">msaboff</who>
    <bug_when>2011-11-22 10:25:26 -0800</bug_when>
    <thetext>An empty JSString is created with the m_is8Bit member clear.  Therefore if an empty string is created and an 8 bit JSString is appended, the resulting JSString will have the 8 bit flag cleared but it should be 8 bit.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>507677</commentid>
    <comment_count>1</comment_count>
      <attachid>116244</attachid>
    <who name="Michael Saboff">msaboff</who>
    <bug_when>2011-11-22 10:35:57 -0800</bug_when>
    <thetext>Created attachment 116244
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>508842</commentid>
    <comment_count>2</comment_count>
      <attachid>116244</attachid>
    <who name="Filip Pizlo">fpizlo</who>
    <bug_when>2011-11-24 11:05:45 -0800</bug_when>
    <thetext>Comment on attachment 116244
Patch

What is the performance effect if any?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>508961</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Saboff">msaboff</who>
    <bug_when>2011-11-24 22:28:19 -0800</bug_when>
    <thetext>(In reply to comment #2)
&gt; (From update of attachment 116244 [details])
&gt; What is the performance effect if any?

BY itself, this patch is a wash.  It provides a benefit together with other changes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>508962</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Saboff">msaboff</who>
    <bug_when>2011-11-24 22:36:16 -0800</bug_when>
    <thetext>Committed r101148: &lt;http://trac.webkit.org/changeset/101148&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>116244</attachid>
            <date>2011-11-22 10:35:57 -0800</date>
            <delta_ts>2011-11-24 11:05:45 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>72968.patch</filename>
            <type>text/plain</type>
            <size>1124</size>
            <attacher name="Michael Saboff">msaboff</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9KYXZhU2NyaXB0Q29yZS9DaGFuZ2VMb2cKPT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gU291
cmNlL0phdmFTY3JpcHRDb3JlL0NoYW5nZUxvZwkocmV2aXNpb24gMTAxMDEyKQorKysgU291cmNl
L0phdmFTY3JpcHRDb3JlL0NoYW5nZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwzICsxLDE1IEBA
CisyMDExLTExLTIyICBNaWNoYWVsIFNhYm9mZiAgPG1zYWJvZmZAYXBwbGUuY29tPgorCisgICAg
ICAgIEVtcHR5IEpTU3RyaW5ncyB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</data>
<flag name="review"
          id="115371"
          type_id="1"
          status="+"
          setter="fpizlo"
    />
          </attachment>
      

    </bug>

</bugzilla>