Index: src/mips/macro-assembler-mips.h |
diff --git a/src/mips/macro-assembler-mips.h b/src/mips/macro-assembler-mips.h |
index 7798c8205ea8992aa705ec3067cd9345f14c5d73..304c124f5cdc38d7d11ed08dc1934a007430ac0d 100644 |
--- a/src/mips/macro-assembler-mips.h |
+++ b/src/mips/macro-assembler-mips.h |
@@ -1222,24 +1222,13 @@ class MacroAssembler: public Assembler { |
// ------------------------------------------------------------------------- |
// Smi utilities. |
- // Try to convert int32 to smi. If the value is to large, preserve |
- // the original value and jump to not_a_smi. Destroys scratch and |
- // sets flags. |
- // This is only used by crankshaft atm so it is unimplemented on MIPS. |
- void TrySmiTag(Register reg, Label* not_a_smi, Register scratch) { |
- UNIMPLEMENTED_MIPS(); |
- } |
- |
void SmiTag(Register reg) { |
Addu(reg, reg, reg); |
} |
// Test for overflow < 0: use BranchOnOverflow() or BranchOnNoOverflow(). |
- void SmiTagCheckOverflow(Register reg, Register overflow) { |
- mov(overflow, reg); // Save original value. |
- addu(reg, reg, reg); |
- xor_(overflow, overflow, reg); // Overflow if (value ^ 2 * value) < 0. |
- } |
+ void SmiTagCheckOverflow(Register reg, Register overflow); |
+ void SmiTagCheckOverflow(Register dst, Register src, Register overflow); |
void SmiTag(Register dst, Register src) { |
Addu(dst, src, src); |