equal
deleted
inserted
replaced
33 // This is supremely lame that we require pthreads to build on windows. |
33 // This is supremely lame that we require pthreads to build on windows. |
34 #if ENABLE(JSC_MULTIPLE_THREADS) |
34 #if ENABLE(JSC_MULTIPLE_THREADS) |
35 #include <pthread.h> |
35 #include <pthread.h> |
36 #endif |
36 #endif |
37 |
37 |
|
38 #if PLATFORM(SYMBIAN) |
|
39 #include <wtf/symbian/BlockAllocatorSymbian.h> |
|
40 #endif |
|
41 |
38 #define ASSERT_CLASS_FITS_IN_CELL(class) COMPILE_ASSERT(sizeof(class) <= CELL_SIZE, class_fits_in_cell) |
42 #define ASSERT_CLASS_FITS_IN_CELL(class) COMPILE_ASSERT(sizeof(class) <= CELL_SIZE, class_fits_in_cell) |
39 |
43 |
40 namespace JSC { |
44 namespace JSC { |
41 |
45 |
42 class CollectorBlock; |
46 class CollectorBlock; |
155 Mutex m_registeredThreadsMutex; |
159 Mutex m_registeredThreadsMutex; |
156 Thread* m_registeredThreads; |
160 Thread* m_registeredThreads; |
157 pthread_key_t m_currentThreadRegistrar; |
161 pthread_key_t m_currentThreadRegistrar; |
158 #endif |
162 #endif |
159 |
163 |
|
164 #if PLATFORM(SYMBIAN) |
|
165 // Allocates collector blocks with correct alignment |
|
166 WTF::AlignedBlockAllocator m_blockallocator; |
|
167 #endif |
|
168 |
160 JSGlobalData* m_globalData; |
169 JSGlobalData* m_globalData; |
161 }; |
170 }; |
162 |
171 |
163 // tunable parameters |
172 // tunable parameters |
164 template<size_t bytesPerWord> struct CellSize; |
173 template<size_t bytesPerWord> struct CellSize; |