зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1456881: Remove unused ctors and use more delegating ctors for JitContext; r=nbp
--HG-- extra : histedit_source : 829b2b786fdb98cba199177277c2b728e768866b
This commit is contained in:
Родитель
00d8757d68
Коммит
23177acdba
|
@ -103,17 +103,6 @@ jit::MaybeGetJitContext()
|
|||
return CurrentJitContext();
|
||||
}
|
||||
|
||||
JitContext::JitContext(JSContext* cx, TempAllocator* temp)
|
||||
: cx(cx),
|
||||
temp(temp),
|
||||
runtime(CompileRuntime::get(cx->runtime())),
|
||||
compartment(CompileCompartment::get(cx->compartment())),
|
||||
prev_(CurrentJitContext()),
|
||||
assemblerCount_(0)
|
||||
{
|
||||
SetJitContext(this);
|
||||
}
|
||||
|
||||
JitContext::JitContext(CompileRuntime* rt, CompileCompartment* comp, TempAllocator* temp)
|
||||
: cx(nullptr),
|
||||
temp(temp),
|
||||
|
@ -125,11 +114,11 @@ JitContext::JitContext(CompileRuntime* rt, CompileCompartment* comp, TempAllocat
|
|||
SetJitContext(this);
|
||||
}
|
||||
|
||||
JitContext::JitContext(CompileRuntime* rt)
|
||||
: cx(nullptr),
|
||||
temp(nullptr),
|
||||
runtime(rt),
|
||||
compartment(nullptr),
|
||||
JitContext::JitContext(JSContext* cx, TempAllocator* temp)
|
||||
: cx(cx),
|
||||
temp(temp),
|
||||
runtime(CompileRuntime::get(cx->runtime())),
|
||||
compartment(CompileCompartment::get(cx->compartment())),
|
||||
prev_(CurrentJitContext()),
|
||||
assemblerCount_(0)
|
||||
{
|
||||
|
@ -137,37 +126,12 @@ JitContext::JitContext(CompileRuntime* rt)
|
|||
}
|
||||
|
||||
JitContext::JitContext(TempAllocator* temp)
|
||||
: cx(nullptr),
|
||||
temp(temp),
|
||||
runtime(nullptr),
|
||||
compartment(nullptr),
|
||||
prev_(CurrentJitContext()),
|
||||
assemblerCount_(0)
|
||||
{
|
||||
SetJitContext(this);
|
||||
}
|
||||
|
||||
JitContext::JitContext(CompileRuntime* rt, TempAllocator* temp)
|
||||
: cx(nullptr),
|
||||
temp(temp),
|
||||
runtime(rt),
|
||||
compartment(nullptr),
|
||||
prev_(CurrentJitContext()),
|
||||
assemblerCount_(0)
|
||||
{
|
||||
SetJitContext(this);
|
||||
}
|
||||
: JitContext(nullptr, nullptr, temp)
|
||||
{}
|
||||
|
||||
JitContext::JitContext()
|
||||
: cx(nullptr),
|
||||
temp(nullptr),
|
||||
runtime(nullptr),
|
||||
compartment(nullptr),
|
||||
prev_(CurrentJitContext()),
|
||||
assemblerCount_(0)
|
||||
{
|
||||
SetJitContext(this);
|
||||
}
|
||||
: JitContext(nullptr, nullptr, nullptr)
|
||||
{}
|
||||
|
||||
JitContext::~JitContext()
|
||||
{
|
||||
|
|
|
@ -57,8 +57,6 @@ class JitContext
|
|||
public:
|
||||
JitContext(JSContext* cx, TempAllocator* temp);
|
||||
JitContext(CompileRuntime* rt, CompileCompartment* comp, TempAllocator* temp);
|
||||
JitContext(CompileRuntime* rt, TempAllocator* temp);
|
||||
explicit JitContext(CompileRuntime* rt);
|
||||
explicit JitContext(TempAllocator* temp);
|
||||
JitContext();
|
||||
~JitContext();
|
||||
|
|
Загрузка…
Ссылка в новой задаче