[Webkit-unassigned] [Bug 23114] New: JSValue* should be replaced with a class type.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Jan 4 21:17:30 PST 2009


https://bugs.webkit.org/show_bug.cgi?id=23114

           Summary: JSValue* should be replaced with a class type.
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Macintosh
        OS/Version: Mac OS X 10.5
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: barraclough at apple.com


Presently the representation of JavaScript values varies depending on the
platform, (e.g. on x86-64 we can represent 32-bit integers in JSValue*s, but on
x86 we can only represent 31-bit integers).  Furthermore we cannot override
casting operators to control conversions – which, for example, means that
noValue() must be 0 (since the code relies on being able to ask "if
(someJSValue) {" meaning "if (someJSValue != noValue()) {", and also means we
cannot control casting between pointer types, making it problematic to store
pointers in anything but their canonical form.

Encapsulating JSValue*s in a smart pointer type will allow us greater
flexibility in and control over the internal representation.


-- 
Configure bugmail: https://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