Chromium Code Reviews| Index: src/heap-inl.h |
| diff --git a/src/heap-inl.h b/src/heap-inl.h |
| index 525c634da626809c7c1bdfa3ce70b512e8eca621..79ccd04889c6ec24e3f07a761b769133bac9b34d 100644 |
| --- a/src/heap-inl.h |
| +++ b/src/heap-inl.h |
| @@ -763,22 +763,10 @@ Address TranscendentalCache::cache_array_address() { |
| double TranscendentalCache::SubCache::Calculate(double input) { |
| switch (type_) { |
| - case ACOS: |
| - return acos(input); |
| - case ASIN: |
| - return asin(input); |
| - case ATAN: |
| - return atan(input); |
| - case COS: |
| - return fast_cos(input); |
| case EXP: |
|
Jakob Kummerow
2013/12/04 10:21:06
You can delete EXP while you are at it. AFAICS it
|
| return exp(input); |
| case LOG: |
| - return fast_log(input); |
| - case SIN: |
| - return fast_sin(input); |
| - case TAN: |
| - return fast_tan(input); |
| + return log(input); |
| default: |
| return 0.0; // Never happens. |
| } |