1
Description: Fixup pool and add sparc support
2
--- webkit-1.2.1.orig/JavaScriptCore/wtf/ListHashSet.h
3
+++ webkit-1.2.1/JavaScriptCore/wtf/ListHashSet.h
4
@@ -127,7 +127,7 @@ namespace WTF {
6
, m_isDoneWithInitialFreeList(false)
8
- memset(m_pool.pool, 0, sizeof(m_pool.pool));
9
+ memset(m_pool, 0, sizeof(m_pool));
13
@@ -171,7 +171,7 @@ namespace WTF {
17
- Node* pool() { return reinterpret_cast<Node*>(m_pool.pool); }
18
+ Node* pool() { return reinterpret_cast<Node*>(m_pool); }
19
Node* pastPool() { return pool() + m_poolSize; }
21
bool inPool(Node* node)
22
@@ -182,10 +182,7 @@ namespace WTF {
24
bool m_isDoneWithInitialFreeList;
25
static const size_t m_poolSize = 256;
27
- char pool[sizeof(Node) * m_poolSize];
28
- double forAlignment;
30
+ uint32_t m_pool[(sizeof(Node) * m_poolSize + sizeof(uint32_t) - 1) / sizeof(uint32_t)];
33
template<typename ValueArg> struct ListHashSetNode {
34
--- webkit-1.2.1.orig/WebCore/platform/text/AtomicString.cpp
35
+++ webkit-1.2.1/WebCore/platform/text/AtomicString.cpp
36
@@ -103,9 +103,9 @@ static inline bool equal(StringImpl* str
37
if (string->length() != length)
40
+#if CPU(ARM) || CPU(SPARC) || CPU(SH4)
41
// FIXME: perhaps we should have a more abstract macro that indicates when
42
// going 4 bytes at a time is unsafe
43
-#if CPU(ARM) || CPU(SH4)
44
const UChar* stringCharacters = string->characters();
45
for (unsigned i = 0; i != length; ++i) {
46
if (*stringCharacters++ != *characters++)
47
--- webkit-1.2.1.orig/WebCore/platform/text/StringHash.h
48
+++ webkit-1.2.1/WebCore/platform/text/StringHash.h
49
@@ -54,13 +54,13 @@ namespace WebCore {
51
// FIXME: perhaps we should have a more abstract macro that indicates when
52
// going 4 bytes at a time is unsafe
53
-#if CPU(ARM) || CPU(SH4)
54
+#if CPU(ARM) || CPU(SPARC) || CPU(SH4)
55
const UChar* aChars = a->characters();
56
const UChar* bChars = b->characters();
57
- for (unsigned i = 0; i != aLength; ++i) {
58
+ for (unsigned i = 0; i != aLength; ++i)
59
if (*aChars++ != *bChars++)
65
/* Do it 4-bytes-at-a-time on architectures where it's safe */