Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(364)

Unified Diff: src/heap.cc

Issue 2718007: [Isolates] Moving TranscendentalCache to Isolate. (Closed)
Patch Set: Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/heap.h ('k') | src/heap-inl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « src/heap.h ('k') | src/heap-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698