Bug 886205 (part 9) - Fix some "used but never defined" warnings in --enable-gcgenerational builds. r=terrence.

--HG--
extra : rebase_source : aa1a2797171cc555ad90cb4740495a02dacbc394
This commit is contained in:
Nicholas Nethercote 2013-06-25 21:38:36 -07:00
parent 43e84f04e6
commit 53f985caf8
8 changed files with 6 additions and 39 deletions

View File

@ -531,14 +531,6 @@ IonCode::writeBarrierPre(IonCode *code)
#endif
}
void
IonCode::writeBarrierPost(IonCode *code, void *addr)
{
#ifdef JSGC_GENERATIONAL
// Nothing to do.
#endif
}
IonScript::IonScript()
: method_(NULL),
deoptTable_(NULL),

View File

@ -136,7 +136,7 @@ class IonCode : public gc::Cell
JS::Zone *zone() const { return tenuredZone(); }
static void readBarrier(IonCode *code);
static void writeBarrierPre(IonCode *code);
static void writeBarrierPost(IonCode *code, void *addr);
static void writeBarrierPost(IonCode *code, void *addr) {}
static inline ThingRootKind rootKind() { return THING_ROOT_ION_CODE; }
};

View File

@ -914,7 +914,7 @@ struct TypeNewScript
Initializer *initializerList;
static inline void writeBarrierPre(TypeNewScript *newScript);
static inline void writeBarrierPost(TypeNewScript *newScript, void *addr);
static void writeBarrierPost(TypeNewScript *newScript, void *addr) {}
};
/*
@ -1100,7 +1100,7 @@ struct TypeObject : gc::Cell
JS::Zone *zone() const { return tenuredZone(); }
static inline void writeBarrierPre(TypeObject *type);
static inline void writeBarrierPost(TypeObject *type, void *addr);
static void writeBarrierPost(TypeObject *type, void *addr) {}
static inline void readBarrier(TypeObject *type);
static inline ThingRootKind rootKind() { return THING_ROOT_TYPE_OBJECT; }

View File

@ -1652,11 +1652,6 @@ TypeObject::writeBarrierPre(TypeObject *type)
#endif
}
inline void
TypeObject::writeBarrierPost(TypeObject *type, void *addr)
{
}
inline void
TypeObject::readBarrier(TypeObject *type)
{
@ -1685,11 +1680,6 @@ TypeNewScript::writeBarrierPre(TypeNewScript *newScript)
#endif
}
inline void
TypeNewScript::writeBarrierPost(TypeNewScript *newScript, void *addr)
{
}
inline
Property::Property(jsid id)
: id(id)

View File

@ -1017,7 +1017,7 @@ class JSScript : public js::gc::Cell
JS::Zone *zone() const { return tenuredZone(); }
static inline void writeBarrierPre(JSScript *script);
static inline void writeBarrierPost(JSScript *script, void *addr);
static void writeBarrierPost(JSScript *script, void *addr) {}
static inline js::ThingRootKind rootKind() { return js::THING_ROOT_SCRIPT; }

View File

@ -147,11 +147,6 @@ JSScript::writeBarrierPre(JSScript *script)
#endif
}
inline void
JSScript::writeBarrierPost(JSScript *script, void *addr)
{
}
/* static */ inline void
js::LazyScript::writeBarrierPre(js::LazyScript *lazy)
{

View File

@ -426,11 +426,6 @@ Shape::writeBarrierPre(Shape *shape)
#endif
}
inline void
Shape::writeBarrierPost(Shape *shape, void *addr)
{
}
inline void
Shape::readBarrier(Shape *shape)
{
@ -469,11 +464,6 @@ BaseShape::writeBarrierPre(BaseShape *base)
#endif
}
inline void
BaseShape::writeBarrierPost(BaseShape *shape, void *addr)
{
}
inline void
BaseShape::readBarrier(BaseShape *base)
{

View File

@ -358,7 +358,7 @@ class BaseShape : public js::gc::Cell
static inline size_t offsetOfFlags() { return offsetof(BaseShape, flags); }
static inline void writeBarrierPre(BaseShape *shape);
static inline void writeBarrierPost(BaseShape *shape, void *addr);
static void writeBarrierPost(BaseShape *shape, void *addr) {}
static inline void readBarrier(BaseShape *shape);
static inline ThingRootKind rootKind() { return THING_ROOT_BASE_SHAPE; }
@ -832,7 +832,7 @@ class Shape : public js::gc::Cell
JS::Zone *zone() const { return tenuredZone(); }
static inline void writeBarrierPre(Shape *shape);
static inline void writeBarrierPost(Shape *shape, void *addr);
static void writeBarrierPost(Shape *shape, void *addr) {}
/*
* All weak references need a read barrier for incremental GC. This getter