Commit 14c5dd6c authored by oliver@apple.com's avatar oliver@apple.com

Build fix.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@86471 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent d369c8cd
2011-05-13 Oliver Hunt <oliver@apple.com>
Build fix.
* runtime/WriteBarrier.h:
(JSC::validateCell):
(JSC::JSCell):
(JSC::JSGlobalObject):
2011-05-13 Oliver Hunt <oliver@apple.com> 2011-05-13 Oliver Hunt <oliver@apple.com>
Reviewed by Geoffrey Garen. Reviewed by Geoffrey Garen.
......
...@@ -43,22 +43,22 @@ void slowValidateCell(JSCell*); ...@@ -43,22 +43,22 @@ void slowValidateCell(JSCell*);
void slowValidateCell(JSGlobalObject*); void slowValidateCell(JSGlobalObject*);
#if ENABLE(GC_VALIDATION) #if ENABLE(GC_VALIDATION)
template<class T> static inline void validateCell(T cell) template<class T> inline void validateCell(T cell)
{ {
ASSERT_GC_OBJECT_INHERITS(cell, &WTF::RemovePointer<T>::Type::s_info); ASSERT_GC_OBJECT_INHERITS(cell, &WTF::RemovePointer<T>::Type::s_info);
} }
template<> static inline void validateCell<JSCell*>(JSCell* cell) template<> inline void validateCell<JSCell*>(JSCell* cell)
{ {
slowValidateCell(cell); slowValidateCell(cell);
} }
template<> static inline void validateCell<JSGlobalObject*>(JSGlobalObject* globalObject) template<> inline void validateCell<JSGlobalObject*>(JSGlobalObject* globalObject)
{ {
slowValidateCell(globalObject); slowValidateCell(globalObject);
} }
#else #else
template<class T> static inline void validateCell(T) template<class T> inline void validateCell(T)
{ {
} }
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment