Bug 62584

Summary: Make it possible to inline Identifier::equal
Product: WebKit Reporter: Oliver Hunt <oliver>
Component: New BugsAssignee: Oliver Hunt <oliver>
Status: RESOLVED FIXED    
Severity: Normal    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch simon.fraser: review+

Description Oliver Hunt 2011-06-13 11:49:15 PDT
Make it possible to inline Identifier::equal
Comment 1 Oliver Hunt 2011-06-13 11:50:16 PDT
Created attachment 96984 [details]
Patch
Comment 2 Simon Fraser (smfr) 2011-06-13 12:02:26 PDT
Comment on attachment 96984 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=96984&action=review

> Source/JavaScriptCore/runtime/Identifier.h:138
> +    inline bool Identifier::equal(const StringImpl* r, const UChar* s, unsigned length)

Why isn't it const?
Comment 3 Oliver Hunt 2011-06-13 12:05:44 PDT
(In reply to comment #2)
> (From update of attachment 96984 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=96984&action=review
> 
> > Source/JavaScriptCore/runtime/Identifier.h:138
> > +    inline bool Identifier::equal(const StringImpl* r, const UChar* s, unsigned length)
> 
> Why isn't it const?

It's a static method, and therefore can't be :)
Comment 4 Oliver Hunt 2011-06-13 12:12:55 PDT
Committed r88668: <http://trac.webkit.org/changeset/88668>