Commit 7a820bec authored by bmeurer@chromium.org's avatar bmeurer@chromium.org

Properly cleanup the transcendental subcaches.

R=danno@chromium.org

Review URL: https://codereview.chromium.org/18487002

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@15437 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 4c5508b4
...@@ -2952,6 +2952,10 @@ class TranscendentalCache { ...@@ -2952,6 +2952,10 @@ class TranscendentalCache {
for (int i = 0; i < kNumberOfCaches; ++i) caches_[i] = NULL; for (int i = 0; i < kNumberOfCaches; ++i) caches_[i] = NULL;
} }
~TranscendentalCache() {
for (int i = 0; i < kNumberOfCaches; ++i) delete caches_[i];
}
// Used to create an external reference. // Used to create an external reference.
inline Address cache_array_address(); inline Address cache_array_address();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment