<?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>49637</bug_id>
          
          <creation_ts>2010-11-16 18:06:57 -0800</creation_ts>
          <short_desc>JSC::UString and WTF::String should use size_t instead of unsigned</short_desc>
          <delta_ts>2010-11-17 23:11:25 -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>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>34952</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="David Kilzer (:ddkilzer)">ddkilzer</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>barraclough</cc>
    
    <cc>cevans</cc>
    
    <cc>darin</cc>
    
    <cc>ggaren</cc>
    
    <cc>mjs</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>310070</commentid>
    <comment_count>0</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2010-11-16 18:06:57 -0800</bug_when>
    <thetext>JSC::UString and WTF::String should use size_t instead of unsigned since unsigned is only 4 bytes on 64-bit, but size_t is 8 bytes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>310071</commentid>
    <comment_count>1</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2010-11-16 18:07:21 -0800</bug_when>
    <thetext>&lt;rdar://problem/5861044&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>310074</commentid>
    <comment_count>2</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2010-11-16 18:11:09 -0800</bug_when>
    <thetext>I suspect this will make every string object a bit larger on 64-bit systems. Do the benefits outweigh that cost?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>310720</commentid>
    <comment_count>3</comment_count>
    <who name="Chris Evans">cevans</who>
    <bug_when>2010-11-17 23:11:25 -0800</bug_when>
    <thetext>The current use of &quot;unsigned&quot; even on 64-bit seems very deliberate:

StringImpl.cpp:COMPILE_ASSERT(sizeof(StringImpl) == 2 * sizeof(int) + 3 * sizeof(void*), StringImpl_should_stay_small);


Given that we&apos;re careful to not truncate lengths, I see costs but not many benefits.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>