Summary: | Add single character lookup cache to IdentifierArena | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Oliver Hunt <oliver> | ||||
Component: | New Bugs | Assignee: | Oliver Hunt <oliver> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | ||||||
Priority: | P2 | ||||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Attachments: |
|
Description
Oliver Hunt
2011-06-01 12:59:07 PDT
Created attachment 95646 [details]
Patch
Comment on attachment 95646 [details]
Patch
r=me
Committed r87838: <http://trac.webkit.org/changeset/87838> Comment on attachment 95646 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=95646&action=review > Source/JavaScriptCore/parser/ParserArena.h:51 > + for (unsigned i = 0; i < 128; i++) You should use the constant! And maybe size_t. > Source/JavaScriptCore/parser/ParserArena.h:57 > + static const int MaximumCachableCharacter = 128; Missing an "e" in there: "cacheable". |