Bug 1447578 part 1 - Remove unused parameters from MacroAssembler constructor. r=luke

--HG--
extra : rebase_source : 0c006fa71a740810b796a761e70cd8a1e4f9d8d7
This commit is contained in:
Jan de Mooij 2018-03-21 16:55:55 +01:00
Родитель f5754d679a
Коммит 0ac9c5c200
2 изменённых файлов: 2 добавлений и 9 удалений

Просмотреть файл

@ -2803,8 +2803,7 @@ MacroAssembler::alignJitStackBasedOnNArgs(uint32_t nargs)
// ===============================================================
MacroAssembler::MacroAssembler(JSContext* cx, IonScript* ion,
JSScript* script, jsbytecode* pc)
MacroAssembler::MacroAssembler(JSContext* cx)
: framePushed_(0),
#ifdef DEBUG
inCall_(false),
@ -2822,11 +2821,6 @@ MacroAssembler::MacroAssembler(JSContext* cx, IonScript* ion,
initWithAllocator();
armbuffer_.id = GetJitContext()->getNextAssemblerId();
#endif
if (ion) {
setFramePushed(ion->frameSize());
if (pc && cx->runtime()->geckoProfiler().enabled())
enableProfilingInstrumentation();
}
}
bool

Просмотреть файл

@ -366,8 +366,7 @@ class MacroAssembler : public MacroAssemblerSpecific
// This constructor should only be used when there is no JitContext active
// (for example, Trampoline-$(ARCH).cpp and IonCaches.cpp).
explicit MacroAssembler(JSContext* cx, IonScript* ion = nullptr,
JSScript* script = nullptr, jsbytecode* pc = nullptr);
explicit MacroAssembler(JSContext* cx);
// wasm compilation handles its own JitContext-pushing
struct WasmToken {};