| Index: src/ia32/lithium-codegen-ia32.cc
|
| diff --git a/src/ia32/lithium-codegen-ia32.cc b/src/ia32/lithium-codegen-ia32.cc
|
| index ced3a235839893e5c542a26fe703c83c8b300ef5..c1881b6cbb6a03711dab3d90a17ec79d17039a19 100644
|
| --- a/src/ia32/lithium-codegen-ia32.cc
|
| +++ b/src/ia32/lithium-codegen-ia32.cc
|
| @@ -3724,6 +3724,14 @@ void LCodeGen::DoMathRound(LMathRound* instr) {
|
| }
|
|
|
|
|
| +void LCodeGen::DoMathFround(LMathFround* instr) {
|
| + XMMRegister input_reg = ToDoubleRegister(instr->value());
|
| + XMMRegister output_reg = ToDoubleRegister(instr->result());
|
| + __ cvtsd2ss(output_reg, input_reg);
|
| + __ cvtss2sd(output_reg, output_reg);
|
| +}
|
| +
|
| +
|
| void LCodeGen::DoMathSqrt(LMathSqrt* instr) {
|
| Operand input = ToOperand(instr->value());
|
| XMMRegister output = ToDoubleRegister(instr->result());
|
|
|