Index: src/mips/macro-assembler-mips.h |
diff --git a/src/mips/macro-assembler-mips.h b/src/mips/macro-assembler-mips.h |
index 76447dc607b8b42e6a058539296ce705d02ef25a..3134d5a4a05b6e85a62825024918daca6a9caa8d 100644 |
--- a/src/mips/macro-assembler-mips.h |
+++ b/src/mips/macro-assembler-mips.h |
@@ -573,6 +573,16 @@ DECLARE_NOTARGET_PROTOTYPE(Ret) |
Register input_low, |
Register scratch); |
+ // Performs a truncating conversion of a floating point number as used by |
+ // the JS bitwise operations. See ECMA-262 9.5: ToInt32. |
+ // Exits with 'result' holding the answer and all other registers clobbered. |
+ void EmitECMATruncate(Register result, |
+ FPURegister double_input, |
+ FPURegister single_scratch, |
+ Register scratch, |
+ Register scratch2, |
+ Register scratch3); |
+ |
// ------------------------------------------------------------------------- |
// Activation frames. |