Index: src/runtime.cc |
=================================================================== |
--- src/runtime.cc (revision 5022) |
+++ src/runtime.cc (working copy) |
@@ -5577,7 +5577,7 @@ |
CONVERT_DOUBLE_CHECKED(x, args[0]); |
CONVERT_DOUBLE_CHECKED(y, args[1]); |
- return Heap::AllocateHeapNumber(x + y); |
+ return Heap::NumberFromDouble(x + y); |
Kasper Lund
2010/07/06 11:56:35
No more AllocateHeapNumber left in runtime.cc?
Erik Corry
2010/07/06 12:53:21
I removed one for integer Math.pow, but the rest w
|
} |
@@ -5587,7 +5587,7 @@ |
CONVERT_DOUBLE_CHECKED(x, args[0]); |
CONVERT_DOUBLE_CHECKED(y, args[1]); |
- return Heap::AllocateHeapNumber(x - y); |
+ return Heap::NumberFromDouble(x - y); |
} |
@@ -5597,7 +5597,7 @@ |
CONVERT_DOUBLE_CHECKED(x, args[0]); |
CONVERT_DOUBLE_CHECKED(y, args[1]); |
- return Heap::AllocateHeapNumber(x * y); |
+ return Heap::NumberFromDouble(x * y); |
} |
@@ -5606,7 +5606,7 @@ |
ASSERT(args.length() == 1); |
CONVERT_DOUBLE_CHECKED(x, args[0]); |
- return Heap::AllocateHeapNumber(-x); |
+ return Heap::NumberFromDouble(-x); |
} |