Bug 886205 (part 1) - Move some function definitions from gc/Barrier-inl.h to gc/Barrier.h. r=terrence.

--HG--
extra : rebase_source : d6eeb4f6273c36069a8bbb28033737c2aec40ba0
This commit is contained in:
Nicholas Nethercote 2013-06-24 15:55:52 -07:00
parent 4f03e5bb1a
commit 01313ebd4b
2 changed files with 8 additions and 16 deletions

View File

@ -56,20 +56,6 @@ EncapsulatedValue::~EncapsulatedValue()
pre();
}
inline void
EncapsulatedValue::init(const Value &v)
{
JS_ASSERT(!IsPoisonedValue(v));
value = v;
}
inline void
EncapsulatedValue::init(JSRuntime *rt, const Value &v)
{
JS_ASSERT(!IsPoisonedValue(v));
value = v;
}
inline EncapsulatedValue &
EncapsulatedValue::operator=(const Value &v)
{

View File

@ -384,8 +384,14 @@ class EncapsulatedValue : public ValueOperations<EncapsulatedValue>
}
inline ~EncapsulatedValue();
inline void init(const Value &v);
inline void init(JSRuntime *rt, const Value &v);
void init(const Value &v) {
JS_ASSERT(!IsPoisonedValue(v));
value = v;
}
void init(JSRuntime *rt, const Value &v) {
JS_ASSERT(!IsPoisonedValue(v));
value = v;
}
inline EncapsulatedValue &operator=(const Value &v);
inline EncapsulatedValue &operator=(const EncapsulatedValue &v);