Index: src/ia32/macro-assembler-ia32.cc |
diff --git a/src/ia32/macro-assembler-ia32.cc b/src/ia32/macro-assembler-ia32.cc |
index 87e25d73dbd113234e8de6ae848afc8d9034cb29..f8dabd5411cecd465b5f739c6ce179de080f8e84 100644 |
--- a/src/ia32/macro-assembler-ia32.cc |
+++ b/src/ia32/macro-assembler-ia32.cc |
@@ -1553,6 +1553,17 @@ void MacroAssembler::ConvertToInt32(Register dst, |
} |
+void MacroAssembler::LoadPowerOf2(XMMRegister dst, |
+ Register scratch, |
+ int power) { |
+ ASSERT(is_uintn(power + HeapNumber::kExponentBias, |
+ HeapNumber::kExponentBits)); |
+ mov(scratch, Immediate(power + HeapNumber::kExponentBias)); |
+ movd(dst, Operand(scratch)); |
+ psllq(dst, HeapNumber::kMantissaBits); |
+} |
+ |
+ |
void MacroAssembler::JumpIfInstanceTypeIsNotSequentialAscii( |
Register instance_type, |
Register scratch, |