Index: src/arm/macro-assembler-arm.h |
diff --git a/src/arm/macro-assembler-arm.h b/src/arm/macro-assembler-arm.h |
index 75ff64fc055570e8031254376c656d74cfd28f62..fc6d7978e59509f2452d721aa4d913df5172e315 100644 |
--- a/src/arm/macro-assembler-arm.h |
+++ b/src/arm/macro-assembler-arm.h |
@@ -460,6 +460,19 @@ class MacroAssembler: public Assembler { |
const MemOperand& dst, |
Condition cond = al); |
+ // Ensure that FPSCR contains values needed by JavaScript. |
+ // We need the NaNModeControlBit to be sure that operations like |
+ // vadd and vsub generate the Canonical NaN (if a NaN must be generated). |
+ // In VFP3 it will be always the Canonical NaN. |
+ // In VFP2 it will be either the Canonical NaN or the negative version |
+ // of the Canonical NaN. It doesn't matter if we have two values. The aim |
+ // is to be sure to never generate the hole NaN. |
+ void VFPEnsureFPSCRState(Register scratch); |
+ |
+ // If the value is a NaN, canonicalize the value else, do nothing. |
+ void VFPCanonicalizeNaN(const DwVfpRegister value, |
+ const Condition cond = al); |
+ |
// Compare double values and move the result to the normal condition flags. |
void VFPCompareAndSetFlags(const DwVfpRegister src1, |
const DwVfpRegister src2, |