Bug 791608 (part 6) - Fix compile warnings about ObjectImpl::writeBarrierPre(). r=jwalden.

--HG--
extra : rebase_source : 57115245e52573641978199620c6b5abb6528f79
This commit is contained in:
Nicholas Nethercote 2012-09-17 17:20:00 -07:00
parent f89131c7a7
commit 8ec35ae331
2 changed files with 8 additions and 1 deletions

View File

@ -16,6 +16,13 @@
namespace js {
template <typename T, typename Unioned>
void
EncapsulatedPtr<T, Unioned>::pre()
{
T::writeBarrierPre(value);
}
template <typename T>
inline void
RelocatablePtr<T>::post()

View File

@ -173,7 +173,7 @@ class EncapsulatedPtr
operator T*() const { return value; }
protected:
void pre() { T::writeBarrierPre(value); }
void pre();
};
template <class T, class Unioned = uintptr_t>