mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 915934: Rename UInt32ToDouble into AsmJSUInt32ToDouble; r=h4writer
This commit is contained in:
parent
cf484321c1
commit
8a831abc6b
@ -376,7 +376,7 @@ CodeGeneratorX64::visitCompareVAndBranch(LCompareVAndBranch *lir)
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
CodeGeneratorX64::visitUInt32ToDouble(LUInt32ToDouble *lir)
|
CodeGeneratorX64::visitAsmJSUInt32ToDouble(LAsmJSUInt32ToDouble *lir)
|
||||||
{
|
{
|
||||||
masm.convertUInt32ToDouble(ToRegister(lir->input()), ToFloatRegister(lir->output()));
|
masm.convertUInt32ToDouble(ToRegister(lir->input()), ToFloatRegister(lir->output()));
|
||||||
return true;
|
return true;
|
||||||
|
@ -50,7 +50,6 @@ class CodeGeneratorX64 : public CodeGeneratorX86Shared
|
|||||||
bool visitCompareBAndBranch(LCompareBAndBranch *lir);
|
bool visitCompareBAndBranch(LCompareBAndBranch *lir);
|
||||||
bool visitCompareV(LCompareV *lir);
|
bool visitCompareV(LCompareV *lir);
|
||||||
bool visitCompareVAndBranch(LCompareVAndBranch *lir);
|
bool visitCompareVAndBranch(LCompareVAndBranch *lir);
|
||||||
bool visitUInt32ToDouble(LUInt32ToDouble *lir);
|
|
||||||
bool visitTruncateDToInt32(LTruncateDToInt32 *ins);
|
bool visitTruncateDToInt32(LTruncateDToInt32 *ins);
|
||||||
bool visitLoadTypedArrayElementStatic(LLoadTypedArrayElementStatic *ins);
|
bool visitLoadTypedArrayElementStatic(LLoadTypedArrayElementStatic *ins);
|
||||||
bool visitStoreTypedArrayElementStatic(LStoreTypedArrayElementStatic *ins);
|
bool visitStoreTypedArrayElementStatic(LStoreTypedArrayElementStatic *ins);
|
||||||
@ -60,6 +59,7 @@ class CodeGeneratorX64 : public CodeGeneratorX86Shared
|
|||||||
bool visitAsmJSStoreGlobalVar(LAsmJSStoreGlobalVar *ins);
|
bool visitAsmJSStoreGlobalVar(LAsmJSStoreGlobalVar *ins);
|
||||||
bool visitAsmJSLoadFuncPtr(LAsmJSLoadFuncPtr *ins);
|
bool visitAsmJSLoadFuncPtr(LAsmJSLoadFuncPtr *ins);
|
||||||
bool visitAsmJSLoadFFIFunc(LAsmJSLoadFFIFunc *ins);
|
bool visitAsmJSLoadFFIFunc(LAsmJSLoadFFIFunc *ins);
|
||||||
|
bool visitAsmJSUInt32ToDouble(LAsmJSUInt32ToDouble *lir);
|
||||||
|
|
||||||
void postAsmJSCall(LAsmJSCall *lir) {}
|
void postAsmJSCall(LAsmJSCall *lir) {}
|
||||||
};
|
};
|
||||||
|
@ -71,12 +71,12 @@ class LUnboxFloatingPoint : public LUnboxBase {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// Convert a 32-bit unsigned integer to a double.
|
// Convert a 32-bit unsigned integer to a double.
|
||||||
class LUInt32ToDouble : public LInstructionHelper<1, 1, 0>
|
class LAsmJSUInt32ToDouble : public LInstructionHelper<1, 1, 0>
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
LIR_HEADER(UInt32ToDouble)
|
LIR_HEADER(AsmJSUInt32ToDouble)
|
||||||
|
|
||||||
LUInt32ToDouble(const LAllocation &input) {
|
LAsmJSUInt32ToDouble(const LAllocation &input) {
|
||||||
setOperand(0, input);
|
setOperand(0, input);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
_(ModI) \
|
_(ModI) \
|
||||||
_(ModPowTwoI) \
|
_(ModPowTwoI) \
|
||||||
_(PowHalfD) \
|
_(PowHalfD) \
|
||||||
_(UInt32ToDouble) \
|
_(AsmJSUInt32ToDouble) \
|
||||||
_(AsmJSLoadFuncPtr) \
|
_(AsmJSLoadFuncPtr) \
|
||||||
_(UDivOrMod)
|
_(UDivOrMod)
|
||||||
|
|
||||||
|
@ -114,7 +114,7 @@ bool
|
|||||||
LIRGeneratorX64::visitAsmJSUnsignedToDouble(MAsmJSUnsignedToDouble *ins)
|
LIRGeneratorX64::visitAsmJSUnsignedToDouble(MAsmJSUnsignedToDouble *ins)
|
||||||
{
|
{
|
||||||
JS_ASSERT(ins->input()->type() == MIRType_Int32);
|
JS_ASSERT(ins->input()->type() == MIRType_Int32);
|
||||||
LUInt32ToDouble *lir = new LUInt32ToDouble(useRegisterAtStart(ins->input()));
|
LAsmJSUInt32ToDouble *lir = new LAsmJSUInt32ToDouble(useRegisterAtStart(ins->input()));
|
||||||
return define(lir, ins);
|
return define(lir, ins);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -383,7 +383,7 @@ CodeGeneratorX86::visitCompareVAndBranch(LCompareVAndBranch *lir)
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
CodeGeneratorX86::visitUInt32ToDouble(LUInt32ToDouble *lir)
|
CodeGeneratorX86::visitAsmJSUInt32ToDouble(LAsmJSUInt32ToDouble *lir)
|
||||||
{
|
{
|
||||||
Register input = ToRegister(lir->input());
|
Register input = ToRegister(lir->input());
|
||||||
Register temp = ToRegister(lir->temp());
|
Register temp = ToRegister(lir->temp());
|
||||||
|
@ -62,7 +62,7 @@ class CodeGeneratorX86 : public CodeGeneratorX86Shared
|
|||||||
bool visitCompareBAndBranch(LCompareBAndBranch *lir);
|
bool visitCompareBAndBranch(LCompareBAndBranch *lir);
|
||||||
bool visitCompareV(LCompareV *lir);
|
bool visitCompareV(LCompareV *lir);
|
||||||
bool visitCompareVAndBranch(LCompareVAndBranch *lir);
|
bool visitCompareVAndBranch(LCompareVAndBranch *lir);
|
||||||
bool visitUInt32ToDouble(LUInt32ToDouble *lir);
|
bool visitAsmJSUInt32ToDouble(LAsmJSUInt32ToDouble *lir);
|
||||||
bool visitTruncateDToInt32(LTruncateDToInt32 *ins);
|
bool visitTruncateDToInt32(LTruncateDToInt32 *ins);
|
||||||
bool visitLoadTypedArrayElementStatic(LLoadTypedArrayElementStatic *ins);
|
bool visitLoadTypedArrayElementStatic(LLoadTypedArrayElementStatic *ins);
|
||||||
bool visitStoreTypedArrayElementStatic(LStoreTypedArrayElementStatic *ins);
|
bool visitStoreTypedArrayElementStatic(LStoreTypedArrayElementStatic *ins);
|
||||||
|
@ -87,12 +87,12 @@ class LUnboxFloatingPoint : public LInstructionHelper<1, 2, 0>
|
|||||||
};
|
};
|
||||||
|
|
||||||
// Convert a 32-bit unsigned integer to a double.
|
// Convert a 32-bit unsigned integer to a double.
|
||||||
class LUInt32ToDouble : public LInstructionHelper<1, 1, 1>
|
class LAsmJSUInt32ToDouble : public LInstructionHelper<1, 1, 1>
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
LIR_HEADER(UInt32ToDouble)
|
LIR_HEADER(AsmJSUInt32ToDouble)
|
||||||
|
|
||||||
LUInt32ToDouble(const LAllocation &input, const LDefinition &temp) {
|
LAsmJSUInt32ToDouble(const LAllocation &input, const LDefinition &temp) {
|
||||||
setOperand(0, input);
|
setOperand(0, input);
|
||||||
setTemp(0, temp);
|
setTemp(0, temp);
|
||||||
}
|
}
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
_(ModI) \
|
_(ModI) \
|
||||||
_(ModPowTwoI) \
|
_(ModPowTwoI) \
|
||||||
_(PowHalfD) \
|
_(PowHalfD) \
|
||||||
_(UInt32ToDouble) \
|
_(AsmJSUInt32ToDouble) \
|
||||||
_(AsmJSLoadFuncPtr) \
|
_(AsmJSLoadFuncPtr) \
|
||||||
_(UDivOrMod)
|
_(UDivOrMod)
|
||||||
|
|
||||||
|
@ -177,7 +177,7 @@ bool
|
|||||||
LIRGeneratorX86::visitAsmJSUnsignedToDouble(MAsmJSUnsignedToDouble *ins)
|
LIRGeneratorX86::visitAsmJSUnsignedToDouble(MAsmJSUnsignedToDouble *ins)
|
||||||
{
|
{
|
||||||
JS_ASSERT(ins->input()->type() == MIRType_Int32);
|
JS_ASSERT(ins->input()->type() == MIRType_Int32);
|
||||||
LUInt32ToDouble *lir = new LUInt32ToDouble(useRegisterAtStart(ins->input()), temp());
|
LAsmJSUInt32ToDouble *lir = new LAsmJSUInt32ToDouble(useRegisterAtStart(ins->input()), temp());
|
||||||
return define(lir, ins);
|
return define(lir, ins);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user