Bug 23616 - Various "template helpers" should be consolidated from isolated files in JavaScriptCore.
Summary: Various "template helpers" should be consolidated from isolated files in Java...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: David Levin
URL:
Keywords:
Depends on:
Blocks: 23618
  Show dependency treegraph
 
Reported: 2009-01-29 01:24 PST by David Levin
Modified: 2009-01-30 00:35 PST (History)
0 users

See Also:


Attachments
Patch. (23.25 KB, patch)
2009-01-29 01:46 PST, David Levin
ap: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.