<?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>15959</bug_id>
          
          <creation_ts>2007-11-12 13:32:32 -0800</creation_ts>
          <short_desc>JSObject needs getToNumber to avoid costly string/number conversions</short_desc>
          <delta_ts>2012-09-06 17:33:05 -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>JavaScriptCore</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</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="Eric Seidel (no email)">eric</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>barraclough</cc>
    
    <cc>darin</cc>
    
    <cc>ggaren</cc>
    
    <cc>max.hong.shen</cc>
    
    <cc>mjs</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>61014</commentid>
    <comment_count>0</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2007-11-12 13:32:32 -0800</bug_when>
    <thetext>JSObject needs getAsNumber to avoid costly string/number conversions

This would be very useful for the bracket access operator on String when used in a numeric context, no create a substring to hold a single UChar.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61015</commentid>
    <comment_count>1</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2007-11-12 13:34:22 -0800</bug_when>
    <thetext>Funny, we were discussing this on Friday... re-editing what you wrote and having it come out in sentence fragments.  I meant &quot;a numeric context.  There would then be no need to create a substring...&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61016</commentid>
    <comment_count>2</comment_count>
    <who name="Geoffrey Garen">ggaren</who>
    <bug_when>2007-11-12 13:35:47 -0800</bug_when>
    <thetext>How does this fit in with &quot;toNumber&quot; and &quot;getNumber&quot;?

What does getAsNumber return if the value is not a number?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61026</commentid>
    <comment_count>3</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2007-11-12 14:49:05 -0800</bug_when>
    <thetext>Hum... what I should have said was &quot;getToNumber&quot;, since the idea behind all of the &quot;evaluateToFoo&quot; calls is that they&apos;re equivalent to to calling evaluate(exec)-&gt;toFoo(exec).  I would want the same to hold true for any get variants.  so this should be the awkward name, &quot;getToNumber&quot;.  I feel like I&apos;m herding values or something...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>713905</commentid>
    <comment_count>4</comment_count>
    <who name="Gavin Barraclough">barraclough</who>
    <bug_when>2012-09-06 17:33:05 -0700</bug_when>
    <thetext>We do now have separate paths for string/numeric property access; I don&apos;t think this bug is still tracking a viable change.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>