Title: [88668] trunk/Source/_javascript_Core
- Revision
- 88668
- Author
- [email protected]
- Date
- 2011-06-13 12:09:32 -0700 (Mon, 13 Jun 2011)
Log Message
2011-06-13 Oliver Hunt <[email protected]>
Reviewed by Simon Fraser.
Make it possible to inline Identifier::equal
https://bugs.webkit.org/show_bug.cgi?id=62584
Move Identifier::equal to the Identifier header file.
* runtime/Identifier.cpp:
* runtime/Identifier.h:
(JSC::Identifier::equal):
Modified Paths
Diff
Modified: trunk/Source/_javascript_Core/ChangeLog (88667 => 88668)
--- trunk/Source/_javascript_Core/ChangeLog 2011-06-13 18:59:45 UTC (rev 88667)
+++ trunk/Source/_javascript_Core/ChangeLog 2011-06-13 19:09:32 UTC (rev 88668)
@@ -1,3 +1,16 @@
+2011-06-13 Oliver Hunt <[email protected]>
+
+ Reviewed by Simon Fraser.
+
+ Make it possible to inline Identifier::equal
+ https://bugs.webkit.org/show_bug.cgi?id=62584
+
+ Move Identifier::equal to the Identifier header file.
+
+ * runtime/Identifier.cpp:
+ * runtime/Identifier.h:
+ (JSC::Identifier::equal):
+
2011-06-13 Tony Chang <[email protected]>
Reviewed by Dimitri Glazkov.
Modified: trunk/Source/_javascript_Core/runtime/Identifier.cpp (88667 => 88668)
--- trunk/Source/_javascript_Core/runtime/Identifier.cpp 2011-06-13 18:59:45 UTC (rev 88667)
+++ trunk/Source/_javascript_Core/runtime/Identifier.cpp 2011-06-13 19:09:32 UTC (rev 88668)
@@ -77,17 +77,6 @@
return s[length] == 0;
}
-bool Identifier::equal(const StringImpl* r, const UChar* s, unsigned length)
-{
- if (r->length() != length)
- return false;
- const UChar* d = r->characters();
- for (unsigned i = 0; i != length; ++i)
- if (d[i] != s[i])
- return false;
- return true;
-}
-
struct IdentifierCStringTranslator {
static unsigned hash(const char* c)
{
Modified: trunk/Source/_javascript_Core/runtime/Identifier.h (88667 => 88668)
--- trunk/Source/_javascript_Core/runtime/Identifier.h 2011-06-13 18:59:45 UTC (rev 88667)
+++ trunk/Source/_javascript_Core/runtime/Identifier.h 2011-06-13 19:09:32 UTC (rev 88668)
@@ -135,6 +135,17 @@
return !Identifier::equal(a, b);
}
+ inline bool Identifier::equal(const StringImpl* r, const UChar* s, unsigned length)
+ {
+ if (r->length() != length)
+ return false;
+ const UChar* d = r->characters();
+ for (unsigned i = 0; i != length; ++i)
+ if (d[i] != s[i])
+ return false;
+ return true;
+ }
+
IdentifierTable* createIdentifierTable();
void deleteIdentifierTable(IdentifierTable*);
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes