Index: src/compilation-cache.cc |
diff --git a/src/compilation-cache.cc b/src/compilation-cache.cc |
index 8f398e37cfb488fb4bf6ba8aa23da4a7f908fe57..fcde232cbe4a05eda4dea4665875f0077146a603 100644 |
--- a/src/compilation-cache.cc |
+++ b/src/compilation-cache.cc |
@@ -65,18 +65,11 @@ CompilationCache::CompilationCache(Isolate* isolate) |
CompilationCache::~CompilationCache() {} |
-static Handle<CompilationCacheTable> AllocateTable(Isolate* isolate, int size) { |
- CALL_HEAP_FUNCTION(isolate, |
- CompilationCacheTable::Allocate(isolate->heap(), size), |
- CompilationCacheTable); |
-} |
- |
- |
Handle<CompilationCacheTable> CompilationSubCache::GetTable(int generation) { |
ASSERT(generation < generations_); |
Handle<CompilationCacheTable> result; |
if (tables_[generation]->IsUndefined()) { |
- result = AllocateTable(isolate(), kInitialCacheSize); |
+ result = CompilationCacheTable::New(isolate(), kInitialCacheSize); |
tables_[generation] = *result; |
} else { |
CompilationCacheTable* table = |