зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1294606 - Part 1: Implement LIRGenerator::useByteOpRegisterAtStart. r=nbp
--- js/src/jit/arm/Lowering-arm.cpp | 6 ++++++ js/src/jit/arm/Lowering-arm.h | 1 + js/src/jit/arm64/Lowering-arm64.cpp | 6 ++++++ js/src/jit/arm64/Lowering-arm64.h | 1 + js/src/jit/mips-shared/Lowering-mips-shared.cpp | 6 ++++++ js/src/jit/mips-shared/Lowering-mips-shared.h | 1 + js/src/jit/none/Lowering-none.h | 1 + js/src/jit/x64/Lowering-x64.cpp | 6 ++++++ js/src/jit/x64/Lowering-x64.h | 1 + js/src/jit/x86/Lowering-x86.cpp | 6 ++++++ js/src/jit/x86/Lowering-x86.h | 1 + 11 files changed, 36 insertions(+)
This commit is contained in:
Родитель
e48dbcc546
Коммит
f5130bf88d
|
@ -34,6 +34,12 @@ LIRGeneratorARM::useByteOpRegister(MDefinition* mir)
|
|||
return useRegister(mir);
|
||||
}
|
||||
|
||||
LAllocation
|
||||
LIRGeneratorARM::useByteOpRegisterAtStart(MDefinition* mir)
|
||||
{
|
||||
return useRegisterAtStart(mir);
|
||||
}
|
||||
|
||||
LAllocation
|
||||
LIRGeneratorARM::useByteOpRegisterOrNonDoubleConstant(MDefinition* mir)
|
||||
{
|
||||
|
|
|
@ -27,6 +27,7 @@ class LIRGeneratorARM : public LIRGeneratorShared
|
|||
// x86 has constraints on what registers can be formatted for 1-byte
|
||||
// stores and loads; on ARM all registers are okay.
|
||||
LAllocation useByteOpRegister(MDefinition* mir);
|
||||
LAllocation useByteOpRegisterAtStart(MDefinition* mir);
|
||||
LAllocation useByteOpRegisterOrNonDoubleConstant(MDefinition* mir);
|
||||
LDefinition tempByteOpRegister();
|
||||
|
||||
|
|
|
@ -29,6 +29,12 @@ LIRGeneratorARM64::useByteOpRegister(MDefinition* mir)
|
|||
MOZ_CRASH("useByteOpRegister");
|
||||
}
|
||||
|
||||
LAllocation
|
||||
LIRGeneratorARM64::useByteOpRegisterAtStart(MDefinition* mir)
|
||||
{
|
||||
MOZ_CRASH("useByteOpRegister");
|
||||
}
|
||||
|
||||
LAllocation
|
||||
LIRGeneratorARM64::useByteOpRegisterOrNonDoubleConstant(MDefinition* mir)
|
||||
{
|
||||
|
|
|
@ -25,6 +25,7 @@ class LIRGeneratorARM64 : public LIRGeneratorShared
|
|||
bool useAtStart = false);
|
||||
|
||||
LAllocation useByteOpRegister(MDefinition* mir);
|
||||
LAllocation useByteOpRegisterAtStart(MDefinition* mir);
|
||||
LAllocation useByteOpRegisterOrNonDoubleConstant(MDefinition* mir);
|
||||
|
||||
inline LDefinition tempToUnbox() {
|
||||
|
|
|
@ -23,6 +23,12 @@ LIRGeneratorMIPSShared::useByteOpRegister(MDefinition* mir)
|
|||
return useRegister(mir);
|
||||
}
|
||||
|
||||
LAllocation
|
||||
LIRGeneratorMIPSShared::useByteOpRegisterAtStart(MDefinition* mir)
|
||||
{
|
||||
return useRegisterAtStart(mir);
|
||||
}
|
||||
|
||||
LAllocation
|
||||
LIRGeneratorMIPSShared::useByteOpRegisterOrNonDoubleConstant(MDefinition* mir)
|
||||
{
|
||||
|
|
|
@ -23,6 +23,7 @@ class LIRGeneratorMIPSShared : public LIRGeneratorShared
|
|||
// x86 has constraints on what registers can be formatted for 1-byte
|
||||
// stores and loads; on MIPS all registers are okay.
|
||||
LAllocation useByteOpRegister(MDefinition* mir);
|
||||
LAllocation useByteOpRegisterAtStart(MDefinition* mir);
|
||||
LAllocation useByteOpRegisterOrNonDoubleConstant(MDefinition* mir);
|
||||
LDefinition tempByteOpRegister();
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@ class LIRGeneratorNone : public LIRGeneratorShared
|
|||
LBoxAllocation useBoxFixed(MDefinition*, Register, Register, bool useAtStart = false) { MOZ_CRASH(); }
|
||||
|
||||
LAllocation useByteOpRegister(MDefinition*) { MOZ_CRASH(); }
|
||||
LAllocation useByteOpRegisterAtStart(MDefinition*) { MOZ_CRASH(); }
|
||||
LAllocation useByteOpRegisterOrNonDoubleConstant(MDefinition*) { MOZ_CRASH(); }
|
||||
LDefinition tempByteOpRegister() { MOZ_CRASH(); }
|
||||
LDefinition tempToUnbox() { MOZ_CRASH(); }
|
||||
|
|
|
@ -29,6 +29,12 @@ LIRGeneratorX64::useByteOpRegister(MDefinition* mir)
|
|||
return useRegister(mir);
|
||||
}
|
||||
|
||||
LAllocation
|
||||
LIRGeneratorX64::useByteOpRegisterAtStart(MDefinition* mir)
|
||||
{
|
||||
return useRegisterAtStart(mir);
|
||||
}
|
||||
|
||||
LAllocation
|
||||
LIRGeneratorX64::useByteOpRegisterOrNonDoubleConstant(MDefinition* mir)
|
||||
{
|
||||
|
|
|
@ -35,6 +35,7 @@ class LIRGeneratorX64 : public LIRGeneratorX86Shared
|
|||
// x86 has constraints on what registers can be formatted for 1-byte
|
||||
// stores and loads; on x64 all registers are okay.
|
||||
LAllocation useByteOpRegister(MDefinition* mir);
|
||||
LAllocation useByteOpRegisterAtStart(MDefinition* mir);
|
||||
LAllocation useByteOpRegisterOrNonDoubleConstant(MDefinition* mir);
|
||||
LDefinition tempByteOpRegister();
|
||||
|
||||
|
|
|
@ -31,6 +31,12 @@ LIRGeneratorX86::useByteOpRegister(MDefinition* mir)
|
|||
return useFixed(mir, eax);
|
||||
}
|
||||
|
||||
LAllocation
|
||||
LIRGeneratorX86::useByteOpRegisterAtStart(MDefinition* mir)
|
||||
{
|
||||
return useFixedAtStart(mir, eax);
|
||||
}
|
||||
|
||||
LAllocation
|
||||
LIRGeneratorX86::useByteOpRegisterOrNonDoubleConstant(MDefinition* mir)
|
||||
{
|
||||
|
|
|
@ -30,6 +30,7 @@ class LIRGeneratorX86 : public LIRGeneratorX86Shared
|
|||
// will assert on us.) Ideally, we'd just ask the register allocator to
|
||||
// give us one of {al,bl,cl,dl}. For now, just useFixed(al).
|
||||
LAllocation useByteOpRegister(MDefinition* mir);
|
||||
LAllocation useByteOpRegisterAtStart(MDefinition* mir);
|
||||
LAllocation useByteOpRegisterOrNonDoubleConstant(MDefinition* mir);
|
||||
LDefinition tempByteOpRegister();
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче