| Index: src/heap.cc
|
| diff --git a/src/heap.cc b/src/heap.cc
|
| index eaa02b5ff0281b7f8f0b03dd306898bad0174ba8..c4e470118f526bff529e86e9bc95af4903b113a4 100644
|
| --- a/src/heap.cc
|
| +++ b/src/heap.cc
|
| @@ -324,7 +324,7 @@ void Heap::ReportStatisticsAfterGC() {
|
|
|
|
|
| void Heap::GarbageCollectionPrologue() {
|
| - TranscendentalCache::Clear();
|
| + Isolate::Current()->transcendental_cache()->Clear();
|
| ClearJSFunctionResultCaches();
|
| gc_count_++;
|
| unflattened_strings_length_ = 0;
|
| @@ -4720,7 +4720,7 @@ bool Heap::GarbageCollectionGreedyCheck() {
|
| #endif
|
|
|
|
|
| -TranscendentalCache::TranscendentalCache(TranscendentalCache::Type t)
|
| +TranscendentalCache::SubCache::SubCache(Type t)
|
| : type_(t),
|
| heap_(HEAP) {
|
| uint32_t in0 = 0xffffffffu; // Bit-pattern for a NaN that isn't
|
| @@ -4733,9 +4733,6 @@ TranscendentalCache::TranscendentalCache(TranscendentalCache::Type t)
|
| }
|
|
|
|
|
| -TranscendentalCache* TranscendentalCache::caches_[kNumberOfCaches];
|
| -
|
| -
|
| void TranscendentalCache::Clear() {
|
| for (int i = 0; i < kNumberOfCaches; i++) {
|
| if (caches_[i] != NULL) {
|
|
|