Index: src/ia32/codegen-ia32.cc |
diff --git a/src/ia32/codegen-ia32.cc b/src/ia32/codegen-ia32.cc |
index d82ca963f60d727e6864f8e693d6efc4810191f2..4593b64fba5018dcf8f2c7e5aac4d687a99d3ba0 100644 |
--- a/src/ia32/codegen-ia32.cc |
+++ b/src/ia32/codegen-ia32.cc |
@@ -7448,9 +7448,10 @@ void CodeGenerator::GenerateRandomHeapNumber( |
__ bind(&heapnumber_allocated); |
- __ PrepareCallCFunction(0, ebx); |
+ __ PrepareCallCFunction(1, ebx); |
+ __ mov(Operand(esp, 0), Immediate(ExternalReference::isolate_address())); |
__ CallCFunction(ExternalReference::random_uint32_function(masm()->isolate()), |
- 0); |
+ 1); |
// Convert 32 random bits in eax to 0.(32 random bits) in a double |
// by computing: |