Skip to content

Commit

Permalink
Build fix.
Browse files Browse the repository at this point in the history
Canonical link: https://commits.webkit.org/76125@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@86471 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
ojhunt committed May 13, 2011
1 parent 5f3016e commit 585be5a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
9 changes: 9 additions & 0 deletions Source/JavaScriptCore/ChangeLog
@@ -1,3 +1,12 @@
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>

Reviewed by Geoffrey Garen.
Expand Down
8 changes: 4 additions & 4 deletions Source/JavaScriptCore/runtime/WriteBarrier.h
Expand Up @@ -43,22 +43,22 @@ void slowValidateCell(JSCell*);
void slowValidateCell(JSGlobalObject*);

#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);
}

template<> static inline void validateCell<JSCell*>(JSCell* cell)
template<> inline void validateCell<JSCell*>(JSCell* cell)
{
slowValidateCell(cell);
}

template<> static inline void validateCell<JSGlobalObject*>(JSGlobalObject* globalObject)
template<> inline void validateCell<JSGlobalObject*>(JSGlobalObject* globalObject)
{
slowValidateCell(globalObject);
}
#else
template<class T> static inline void validateCell(T)
template<class T> inline void validateCell(T)
{
}
#endif
Expand Down

0 comments on commit 585be5a

Please sign in to comment.