| Index: src/compiler/mips/code-generator-mips.cc
|
| diff --git a/src/compiler/mips/code-generator-mips.cc b/src/compiler/mips/code-generator-mips.cc
|
| index 169f03ef201c1e9cc00a4b2ef3ea8deca8a463c2..9d20ffcf27d0150c151622650c84e574f608a45a 100644
|
| --- a/src/compiler/mips/code-generator-mips.cc
|
| +++ b/src/compiler/mips/code-generator-mips.cc
|
| @@ -1335,19 +1335,9 @@ CodeGenerator::CodeGenResult CodeGenerator::AssembleArchInstruction(
|
| case kMipsFloat64InsertHighWord32:
|
| __ FmoveHigh(i.OutputDoubleRegister(), i.InputRegister(1));
|
| break;
|
| - case kMipsFloat64SilenceNaN: {
|
| - FPURegister value = i.InputDoubleRegister(0);
|
| - FPURegister result = i.OutputDoubleRegister();
|
| - Register scratch0 = i.TempRegister(0);
|
| - Label is_nan, not_nan;
|
| - __ BranchF(NULL, &is_nan, eq, value, value);
|
| - __ Branch(¬_nan);
|
| - __ bind(&is_nan);
|
| - __ LoadRoot(scratch0, Heap::kNanValueRootIndex);
|
| - __ ldc1(result, FieldMemOperand(scratch0, HeapNumber::kValueOffset));
|
| - __ bind(¬_nan);
|
| + case kMipsFloat64SilenceNaN:
|
| + __ FPUCanonicalizeNaN(i.OutputDoubleRegister(), i.InputDoubleRegister(0));
|
| break;
|
| - }
|
|
|
| // ... more basic instructions ...
|
|
|
|
|