Bug 23616

Summary: Various "template helpers" should be consolidated from isolated files in JavaScriptCore.
Product: WebKit Reporter: David Levin <levin>
Component: JavaScriptCoreAssignee: David Levin <levin>
Status: RESOLVED FIXED    
Severity: Normal    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Bug Depends on:    
Bug Blocks: 23618    
Attachments:
Description Flags
Patch. ap: review+

Description David Levin 2009-01-29 01:24:31 PST
Also, it turns out that IsPod doesn't account for wchar_t like IsInteger does, which is fixed in this change and compile asserts are added for IsPod.

It is certainly possible to make IsPod depend on IsInteger, but in this change it'll just be consolidating (plus the wchar_t fix for IsPod).
Comment 1 David Levin 2009-01-29 01:46:32 PST
Created attachment 27142 [details]
Patch.
Comment 2 Alexey Proskuryakov 2009-01-29 03:04:27 PST
Comment on attachment 27142 [details]
Patch.

r=me

IsPod needs a comment explaining that it is far from being accurate - for example, it doesn't accepts structs and enums.

Also, it may be hard to find out what the APIs implemented by this file are - e.g. RemovePointer comes late after huge piles of implementation cruft and debug assertions. Maybe there should be a synopsis at the top.
Comment 3 David Levin 2009-01-29 03:19:17 PST
> IsPod needs a comment explaining that it is far from being accurate - for
example, it doesn't accepts structs and enums.

> Also, it may be hard to find out what the APIs implemented by this file are -
e.g. RemovePointer comes late after huge piles of implementation cruft and
debug assertions. Maybe there should be a synopsis at the top.

Both great suggestions.  

Is it ok to handle them in bug 23618 since I'll be modifying this one file as the first change?  
(So I can be done with this "consolidation" patch.)

Comment 4 Alexey Proskuryakov 2009-01-30 00:35:22 PST
Committed revision 40399.

I had to remove ByteArray moves in project file, because these didn't apply cleanly. Also, reworked ChangeLog a bit.