Bug 35850

Summary: TypeInfo is unnecessarily large
Product: WebKit Reporter: Oliver Hunt <oliver>
Component: New BugsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Other   
OS: OS X 10.5   
Attachments:
Description Flags
Patch darin: review+

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>