~ubuntu-branches/ubuntu/lucid/webkit/lucid-updates

« back to all changes in this revision

Viewing changes to JavaScriptCore/wtf/FastMalloc.h

  • Committer: Bazaar Package Importer
  • Author(s): Gustavo Noronha Silva
  • Date: 2010-01-06 21:25:06 UTC
  • mfrom: (1.2.6 upstream) (4.3.7 sid)
  • Revision ID: james.westby@ubuntu.com-20100106212506-gd0czn4zrwf1j19l
* New upstream release
- adds basic Content-Encoding support, thanks to soup
  (Closes: #529271)
- fixes over-advertising content types as supported by
  the media player (Closes: #559420)
* debian/control:
- updated libsoup build requirement (>= 2.28.2)
* debian/libwebkit-1.0-2.symbols:
- updated with new symbols
* debian/copyright:
- updated information since 1.1.17
* Imported patch from https://bugs.webkit.org/show_bug.cgi?id=30623
- I am shipping this patch because I believe it is correct, it is the
  way to go, it fixes a race, and it needs testing.

Show diffs side-by-side

added added

removed removed

Lines of Context:
194
194
using WTF::fastMallocAllow;
195
195
#endif
196
196
 
197
 
#if COMPILER(GCC) && PLATFORM(DARWIN)
 
197
#if COMPILER(GCC) && OS(DARWIN)
198
198
#define WTF_PRIVATE_INLINE __private_extern__ inline __attribute__((always_inline))
199
199
#elif COMPILER(GCC)
200
200
#define WTF_PRIVATE_INLINE inline __attribute__((always_inline))
201
 
#elif COMPILER(MSVC)
 
201
#elif COMPILER(MSVC) || COMPILER(RVCT)
202
202
#define WTF_PRIVATE_INLINE __forceinline
203
203
#else
204
204
#define WTF_PRIVATE_INLINE inline
216
216
// We musn't customize the global operator new and delete for the Qt port.
217
217
#if !PLATFORM(QT)
218
218
 
219
 
WTF_PRIVATE_INLINE void* operator new(size_t size) { return fastMalloc(size); }
 
219
#if COMPILER(MSVC)
 
220
#pragma warning(push)
 
221
#pragma warning(disable: 4290) // Disable the C++ exception specification ignored warning.
 
222
#endif
 
223
WTF_PRIVATE_INLINE void* operator new(size_t size) throw (std::bad_alloc) { return fastMalloc(size); }
220
224
WTF_PRIVATE_INLINE void* operator new(size_t size, const std::nothrow_t&) throw() { return fastMalloc(size); }
221
 
WTF_PRIVATE_INLINE void operator delete(void* p) { fastFree(p); }
 
225
WTF_PRIVATE_INLINE void operator delete(void* p) throw() { fastFree(p); }
222
226
WTF_PRIVATE_INLINE void operator delete(void* p, const std::nothrow_t&) throw() { fastFree(p); }
223
 
WTF_PRIVATE_INLINE void* operator new[](size_t size) { return fastMalloc(size); }
 
227
WTF_PRIVATE_INLINE void* operator new[](size_t size) throw (std::bad_alloc) { return fastMalloc(size); }
224
228
WTF_PRIVATE_INLINE void* operator new[](size_t size, const std::nothrow_t&) throw() { return fastMalloc(size); }
225
 
WTF_PRIVATE_INLINE void operator delete[](void* p) { fastFree(p); }
 
229
WTF_PRIVATE_INLINE void operator delete[](void* p) throw() { fastFree(p); }
226
230
WTF_PRIVATE_INLINE void operator delete[](void* p, const std::nothrow_t&) throw() { fastFree(p); }
 
231
#if COMPILER(MSVC)
 
232
#pragma warning(pop)
 
233
#endif
227
234
 
228
235
#endif
229
236