зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1227144 - Remove unused AutoRegExpStaticsBuffer; r=jonco
--HG-- extra : rebase_source : c6a792b7f53d61a22a179fd2bd486d8920245d92
This commit is contained in:
Родитель
b5bdd4fc50
Коммит
5736e43d34
|
@ -63,8 +63,6 @@ class RegExpStatics
|
|||
struct InitBuffer {};
|
||||
explicit RegExpStatics(InitBuffer) {}
|
||||
|
||||
friend class AutoRegExpStaticsBuffer;
|
||||
|
||||
public:
|
||||
/* Mutators. */
|
||||
inline void updateLazily(JSContext* cx, JSLinearString* input,
|
||||
|
@ -160,38 +158,6 @@ class RegExpStatics
|
|||
}
|
||||
};
|
||||
|
||||
class MOZ_RAII AutoRegExpStaticsBuffer : private JS::CustomAutoRooter
|
||||
{
|
||||
public:
|
||||
explicit AutoRegExpStaticsBuffer(JSContext* cx
|
||||
MOZ_GUARD_OBJECT_NOTIFIER_PARAM)
|
||||
: CustomAutoRooter(cx), statics(RegExpStatics::InitBuffer())
|
||||
{
|
||||
MOZ_GUARD_OBJECT_NOTIFIER_INIT;
|
||||
}
|
||||
|
||||
RegExpStatics& getStatics() { return statics; }
|
||||
|
||||
private:
|
||||
virtual void trace(JSTracer* trc) {
|
||||
if (statics.matchesInput) {
|
||||
TraceRoot(trc, reinterpret_cast<JSString**>(&statics.matchesInput),
|
||||
"AutoRegExpStaticsBuffer matchesInput");
|
||||
}
|
||||
if (statics.lazySource) {
|
||||
TraceRoot(trc, reinterpret_cast<JSString**>(&statics.lazySource),
|
||||
"AutoRegExpStaticsBuffer lazySource");
|
||||
}
|
||||
if (statics.pendingInput) {
|
||||
TraceRoot(trc, reinterpret_cast<JSString**>(&statics.pendingInput),
|
||||
"AutoRegExpStaticsBuffer pendingInput");
|
||||
}
|
||||
}
|
||||
|
||||
RegExpStatics statics;
|
||||
MOZ_DECL_USE_GUARD_OBJECT_NOTIFIER
|
||||
};
|
||||
|
||||
inline bool
|
||||
RegExpStatics::createDependent(JSContext* cx, size_t start, size_t end, MutableHandleValue out)
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче