Index: src/runtime.cc |
diff --git a/src/runtime.cc b/src/runtime.cc |
index 7dc96f201970eec90466b79f20fa2823271fe737..588cce4c56b7d2cf9c3f2be311047085dd2950f8 100644 |
--- a/src/runtime.cc |
+++ b/src/runtime.cc |
@@ -7655,7 +7655,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_Math_acos) { |
isolate->counters()->math_acos()->Increment(); |
CONVERT_DOUBLE_ARG_CHECKED(x, 0); |
- return isolate->transcendental_cache()->Get(TranscendentalCache::ACOS, x); |
+ return isolate->heap()->AllocateHeapNumber(acos(x)); |
} |
@@ -7665,7 +7665,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_Math_asin) { |
isolate->counters()->math_asin()->Increment(); |
CONVERT_DOUBLE_ARG_CHECKED(x, 0); |
- return isolate->transcendental_cache()->Get(TranscendentalCache::ASIN, x); |
+ return isolate->heap()->AllocateHeapNumber(asin(x)); |
} |
@@ -7675,7 +7675,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_Math_atan) { |
isolate->counters()->math_atan()->Increment(); |
CONVERT_DOUBLE_ARG_CHECKED(x, 0); |
- return isolate->transcendental_cache()->Get(TranscendentalCache::ATAN, x); |
+ return isolate->heap()->AllocateHeapNumber(atan(x)); |
} |
@@ -7705,16 +7705,6 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_Math_atan2) { |
} |
-RUNTIME_FUNCTION(MaybeObject*, Runtime_Math_cos) { |
- SealHandleScope shs(isolate); |
- ASSERT(args.length() == 1); |
- isolate->counters()->math_cos()->Increment(); |
- |
- CONVERT_DOUBLE_ARG_CHECKED(x, 0); |
- return isolate->transcendental_cache()->Get(TranscendentalCache::COS, x); |
-} |
- |
- |
RUNTIME_FUNCTION(MaybeObject*, Runtime_Math_exp) { |
SealHandleScope shs(isolate); |
ASSERT(args.length() == 1); |
@@ -7742,7 +7732,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_Math_log) { |
isolate->counters()->math_log()->Increment(); |
CONVERT_DOUBLE_ARG_CHECKED(x, 0); |
- return isolate->transcendental_cache()->Get(TranscendentalCache::LOG, x); |
+ return isolate->heap()->AllocateHeapNumber(fast_log(x)); |
} |
@@ -7831,16 +7821,6 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_RoundNumber) { |
} |
-RUNTIME_FUNCTION(MaybeObject*, Runtime_Math_sin) { |
- SealHandleScope shs(isolate); |
- ASSERT(args.length() == 1); |
- isolate->counters()->math_sin()->Increment(); |
- |
- CONVERT_DOUBLE_ARG_CHECKED(x, 0); |
- return isolate->transcendental_cache()->Get(TranscendentalCache::SIN, x); |
-} |
- |
- |
RUNTIME_FUNCTION(MaybeObject*, Runtime_Math_sqrt) { |
SealHandleScope shs(isolate); |
ASSERT(args.length() == 1); |
@@ -7851,16 +7831,6 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_Math_sqrt) { |
} |
-RUNTIME_FUNCTION(MaybeObject*, Runtime_Math_tan) { |
- SealHandleScope shs(isolate); |
- ASSERT(args.length() == 1); |
- isolate->counters()->math_tan()->Increment(); |
- |
- CONVERT_DOUBLE_ARG_CHECKED(x, 0); |
- return isolate->transcendental_cache()->Get(TranscendentalCache::TAN, x); |
-} |
- |
- |
RUNTIME_FUNCTION(MaybeObject*, Runtime_DateMakeDay) { |
SealHandleScope shs(isolate); |
ASSERT(args.length() == 2); |