[Webkit-unassigned] [Bug 15879] New: Add evaluateToNumber fast path for numeric operations

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Nov 7 00:06:59 PST 2007


http://bugs.webkit.org/show_bug.cgi?id=15879

           Summary: Add evaluateToNumber fast path for numeric operations
           Product: WebKit
           Version: 525+ (Nightly build)
          Platform: Macintosh
        OS/Version: Mac OS X 10.4
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: eric at webkit.org


Add evaluateToNumber fast path for numeric operations

I've created a naive/first-cut, patch which I'm about to attach.

The idea is adding an evaluateToNumber() method which returns a double instead
of a JSValue*.  In the default Node case, it just calls evaluate() followed by
toNumber(), for nodes which already have a number (or deal exclusively with
numbers) they can just avoid having their entire subtree ever touch any JSValue
code, and instead deal only with doubles. :)

Sadly, my first-cut is a slowdown.


-- 
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list