Index: src/ia32/macro-assembler-ia32.h |
diff --git a/src/ia32/macro-assembler-ia32.h b/src/ia32/macro-assembler-ia32.h |
index 165c9ce6d20c95403483dee45d18a0881a6515fc..dfccb4dc66b08ab80e05c890d524cc0bb0850421 100644 |
--- a/src/ia32/macro-assembler-ia32.h |
+++ b/src/ia32/macro-assembler-ia32.h |
@@ -469,6 +469,30 @@ class MacroAssembler: public Assembler { |
XMMRegister scratch_reg, |
Register result_reg); |
+ void SlowTruncateToI(Register input_reg, Register result_reg, |
+ int index = HeapNumber::kValueOffset - kHeapObjectTag); |
+ |
+ void TruncateHeapNumberToI(Register input_reg, Register result_reg); |
+ void TruncateDoubleToI(XMMRegister input_reg, Register result_reg); |
+ |
+ void DoubleToI(XMMRegister input_reg, Register result_reg, |
+ XMMRegister scratch, bool bailout_on_minus_zero, |
+ Label* conversion_failed, Label* done, Label::Distance dst = Label::kFar); |
+ |
+ void TaggedToI(Register input_reg, Register result_reg, |
+ Maybe<XMMRegister> temp, bool bailout_on_minus_zero, |
+ Label* bailout, Label* done); |
+ void TaggedToI(Register input_reg, Register result_reg, |
+ XMMRegister temp, bool bailout_on_minus_zero, |
+ Label* bailout, Label* done) { |
+ TaggedToI(input_reg, result_reg, Maybe<XMMRegister>(true, temp), |
+ bailout_on_minus_zero, bailout, done); |
+ } |
+ void TaggedToI(Register input_reg, Register result_reg, |
+ bool bailout_on_minus_zero, Label* bailout, Label* done) { |
+ TaggedToI(input_reg, result_reg, Maybe<XMMRegister>(), |
+ bailout_on_minus_zero, bailout, done); |
+ } |
// Smi tagging support. |
void SmiTag(Register reg) { |