| Index: src/heap-inl.h
|
| diff --git a/src/heap-inl.h b/src/heap-inl.h
|
| index f6641f2485bfef5df6e4d88e89fb413333c5d9b2..4618e83bbf9c593f19215b885646f280ea46b254 100644
|
| --- a/src/heap-inl.h
|
| +++ b/src/heap-inl.h
|
| @@ -511,6 +511,20 @@ void Heap::CompletelyClearInstanceofCache() {
|
| }
|
|
|
|
|
| +Object* TranscendentalCache::Get(Type type, double input) {
|
| + SubCache* cache = caches_[type];
|
| + if (cache == NULL) {
|
| + caches_[type] = cache = new SubCache(type);
|
| + }
|
| + return cache->Get(input);
|
| +}
|
| +
|
| +
|
| +Address TranscendentalCache::cache_array_address() {
|
| + return reinterpret_cast<Address>(caches_);
|
| +}
|
| +
|
| +
|
| Heap* _inline_get_heap_() {
|
| return HEAP;
|
| }
|
|
|