Reviewers: ager, Description: Generalized the EvalCache into a CompilationCache and enabled it for scripts too. In the context of Chromium, this should have a very positive impact on memory consumption for web apps that run multiple tabs from the same domain with a lot of the same JavaScript code.
For now, the cache retirement policy is really simple: Whenever a mark-sweep collection is started we clear the cache. This guarantees that this change will not have a huge negative impact on memory consumption, but it may not be ideal. We should consider a more sophisticated LRU scheme. Please review this at http://codereview.chromium.org/1933 Affected files: M src/SConscript A src/compilation-cache.cc A src/compilation-cache.h M src/compiler.cc M src/handles.cc M src/heap-inl.h M src/heap.cc M src/heap.h M src/objects-inl.h M src/objects.cc M src/objects.h M src/runtime.cc M src/v8-counters.h M test/cctest/test-api.cc M tools/visual_studio/v8_base.vcproj --~--~---------~--~----~------------~-------~--~----~ v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev -~----------~----~----~----~------~----~------~--~---
