| Index: src/arm/macro-assembler-arm.h
|
| ===================================================================
|
| --- src/arm/macro-assembler-arm.h (revision 12656)
|
| +++ src/arm/macro-assembler-arm.h (working copy)
|
| @@ -939,21 +939,22 @@
|
| DwVfpRegister double_scratch,
|
| Label *not_int32);
|
|
|
| - // Truncates a double using a specific rounding mode.
|
| + // Truncates a double using a specific rounding mode, and writes the value
|
| + // to the result register.
|
| // Clears the z flag (ne condition) if an overflow occurs.
|
| - // If exact_conversion is true, the z flag is also cleared if the conversion
|
| - // was inexact, i.e. if the double value could not be converted exactly
|
| - // to a 32bit integer.
|
| + // If kCheckForInexactConversion is passed, the z flag is also cleared if the
|
| + // conversion was inexact, i.e. if the double value could not be converted
|
| + // exactly to a 32-bit integer.
|
| void EmitVFPTruncate(VFPRoundingMode rounding_mode,
|
| - SwVfpRegister result,
|
| + Register result,
|
| DwVfpRegister double_input,
|
| - Register scratch1,
|
| - Register scratch2,
|
| + Register scratch,
|
| + DwVfpRegister double_scratch,
|
| CheckForInexactConversion check
|
| = kDontCheckForInexactConversion);
|
|
|
| // Helper for EmitECMATruncate.
|
| - // This will truncate a floating-point value outside of the singed 32bit
|
| + // This will truncate a floating-point value outside of the signed 32bit
|
| // integer range to a 32bit signed integer.
|
| // Expects the double value loaded in input_high and input_low.
|
| // Exits with the answer in 'result'.
|
|
|