Bug 915934: Rename UInt32ToDouble into AsmJSUInt32ToDouble; r=h4writer

This commit is contained in:
Benjamin Bouvier 2013-09-19 11:49:50 -07:00
parent cf484321c1
commit 8a831abc6b
10 changed files with 14 additions and 14 deletions

View File

@ -376,7 +376,7 @@ CodeGeneratorX64::visitCompareVAndBranch(LCompareVAndBranch *lir)
}
bool
CodeGeneratorX64::visitUInt32ToDouble(LUInt32ToDouble *lir)
CodeGeneratorX64::visitAsmJSUInt32ToDouble(LAsmJSUInt32ToDouble *lir)
{
masm.convertUInt32ToDouble(ToRegister(lir->input()), ToFloatRegister(lir->output()));
return true;

View File

@ -50,7 +50,6 @@ class CodeGeneratorX64 : public CodeGeneratorX86Shared
bool visitCompareBAndBranch(LCompareBAndBranch *lir);
bool visitCompareV(LCompareV *lir);
bool visitCompareVAndBranch(LCompareVAndBranch *lir);
bool visitUInt32ToDouble(LUInt32ToDouble *lir);
bool visitTruncateDToInt32(LTruncateDToInt32 *ins);
bool visitLoadTypedArrayElementStatic(LLoadTypedArrayElementStatic *ins);
bool visitStoreTypedArrayElementStatic(LStoreTypedArrayElementStatic *ins);
@ -60,6 +59,7 @@ class CodeGeneratorX64 : public CodeGeneratorX86Shared
bool visitAsmJSStoreGlobalVar(LAsmJSStoreGlobalVar *ins);
bool visitAsmJSLoadFuncPtr(LAsmJSLoadFuncPtr *ins);
bool visitAsmJSLoadFFIFunc(LAsmJSLoadFFIFunc *ins);
bool visitAsmJSUInt32ToDouble(LAsmJSUInt32ToDouble *lir);
void postAsmJSCall(LAsmJSCall *lir) {}
};

View File

@ -71,12 +71,12 @@ class LUnboxFloatingPoint : public LUnboxBase {
};
// Convert a 32-bit unsigned integer to a double.
class LUInt32ToDouble : public LInstructionHelper<1, 1, 0>
class LAsmJSUInt32ToDouble : public LInstructionHelper<1, 1, 0>
{
public:
LIR_HEADER(UInt32ToDouble)
LIR_HEADER(AsmJSUInt32ToDouble)
LUInt32ToDouble(const LAllocation &input) {
LAsmJSUInt32ToDouble(const LAllocation &input) {
setOperand(0, input);
}
};

View File

@ -17,7 +17,7 @@
_(ModI) \
_(ModPowTwoI) \
_(PowHalfD) \
_(UInt32ToDouble) \
_(AsmJSUInt32ToDouble) \
_(AsmJSLoadFuncPtr) \
_(UDivOrMod)

View File

@ -114,7 +114,7 @@ bool
LIRGeneratorX64::visitAsmJSUnsignedToDouble(MAsmJSUnsignedToDouble *ins)
{
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);
}

View File

@ -383,7 +383,7 @@ CodeGeneratorX86::visitCompareVAndBranch(LCompareVAndBranch *lir)
}
bool
CodeGeneratorX86::visitUInt32ToDouble(LUInt32ToDouble *lir)
CodeGeneratorX86::visitAsmJSUInt32ToDouble(LAsmJSUInt32ToDouble *lir)
{
Register input = ToRegister(lir->input());
Register temp = ToRegister(lir->temp());

View File

@ -62,7 +62,7 @@ class CodeGeneratorX86 : public CodeGeneratorX86Shared
bool visitCompareBAndBranch(LCompareBAndBranch *lir);
bool visitCompareV(LCompareV *lir);
bool visitCompareVAndBranch(LCompareVAndBranch *lir);
bool visitUInt32ToDouble(LUInt32ToDouble *lir);
bool visitAsmJSUInt32ToDouble(LAsmJSUInt32ToDouble *lir);
bool visitTruncateDToInt32(LTruncateDToInt32 *ins);
bool visitLoadTypedArrayElementStatic(LLoadTypedArrayElementStatic *ins);
bool visitStoreTypedArrayElementStatic(LStoreTypedArrayElementStatic *ins);

View File

@ -87,12 +87,12 @@ class LUnboxFloatingPoint : public LInstructionHelper<1, 2, 0>
};
// Convert a 32-bit unsigned integer to a double.
class LUInt32ToDouble : public LInstructionHelper<1, 1, 1>
class LAsmJSUInt32ToDouble : public LInstructionHelper<1, 1, 1>
{
public:
LIR_HEADER(UInt32ToDouble)
LIR_HEADER(AsmJSUInt32ToDouble)
LUInt32ToDouble(const LAllocation &input, const LDefinition &temp) {
LAsmJSUInt32ToDouble(const LAllocation &input, const LDefinition &temp) {
setOperand(0, input);
setTemp(0, temp);
}

View File

@ -18,7 +18,7 @@
_(ModI) \
_(ModPowTwoI) \
_(PowHalfD) \
_(UInt32ToDouble) \
_(AsmJSUInt32ToDouble) \
_(AsmJSLoadFuncPtr) \
_(UDivOrMod)

View File

@ -177,7 +177,7 @@ bool
LIRGeneratorX86::visitAsmJSUnsignedToDouble(MAsmJSUnsignedToDouble *ins)
{
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);
}