Bug 35850 - TypeInfo is unnecessarily large
Summary: TypeInfo is unnecessarily large
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Other OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-07 20:31 PST by Oliver Hunt
Modified: 2010-03-08 14:45 PST (History)
0 users

See Also:


Attachments
Patch (15.17 KB, patch)
2010-03-07 20:42 PST, Oliver Hunt
darin: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Oliver Hunt 2010-03-07 20:31:17 PST
TypeInfo is unnecessarily large
Comment 1 Oliver Hunt 2010-03-07 20:42:18 PST
Created attachment 50184 [details]
Patch
Comment 2 Darin Adler 2010-03-08 08:01:28 PST
Comment on attachment 50184 [details]
Patch

> -        JSType type() const { return m_type; }
> +        JSType type() const { return (JSType)m_type; }

This should use static_cast rather than a C-style cast.

r=me
Comment 3 Oliver Hunt 2010-03-08 14:45:31 PST
Committed r55684: <http://trac.webkit.org/changeset/55684>