зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1221923 - Remove pointless "initialized" static in VMFunction::addToFunctions; r=Waldo
This commit is contained in:
Родитель
4edb68ff1d
Коммит
194f97d366
|
@ -34,8 +34,7 @@ using namespace js::jit;
|
|||
namespace js {
|
||||
namespace jit {
|
||||
|
||||
// Don't explicitly initialize, it's not guaranteed that this initializer will
|
||||
// run before the constructors for static VMFunctions.
|
||||
// Statics are initialized to null.
|
||||
/* static */ VMFunction* VMFunction::functions;
|
||||
|
||||
AutoDetectInvalidation::AutoDetectInvalidation(JSContext* cx, MutableHandleValue rval)
|
||||
|
@ -48,11 +47,6 @@ AutoDetectInvalidation::AutoDetectInvalidation(JSContext* cx, MutableHandleValue
|
|||
void
|
||||
VMFunction::addToFunctions()
|
||||
{
|
||||
static bool initialized = false;
|
||||
if (!initialized) {
|
||||
initialized = true;
|
||||
functions = nullptr;
|
||||
}
|
||||
this->next = functions;
|
||||
functions = this;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче