Chromium Code Reviews| Index: src/objects.cc |
| diff --git a/src/objects.cc b/src/objects.cc |
| index 8254ee7e9efcab696058f80d976d832c5bb27f9e..08c347c955c0a3e52958330326c88b351623d99d 100644 |
| --- a/src/objects.cc |
| +++ b/src/objects.cc |
| @@ -17626,8 +17626,8 @@ Handle<CompilationCacheTable> CompilationCacheTable::Put( |
| Isolate* isolate = cache->GetIsolate(); |
| Handle<SharedFunctionInfo> shared(context->closure()->shared()); |
| StringSharedKey key(src, shared, language_mode, RelocInfo::kNoPosition); |
| + Handle<Object> k = key.AsHandle(isolate); |
| { |
| - Handle<Object> k = key.AsHandle(isolate); |
| DisallowHeapAllocation no_allocation_scope; |
| int entry = cache->FindEntry(&key); |
|
Yang
2016/04/15 12:03:38
I don't think this code path is actually possible.
|
| if (entry != kNotFound) { |
| @@ -17639,10 +17639,8 @@ Handle<CompilationCacheTable> CompilationCacheTable::Put( |
| cache = EnsureCapacity(cache, 1, &key); |
| int entry = cache->FindInsertionEntry(key.Hash()); |
| - Handle<Object> k = |
| - isolate->factory()->NewNumber(static_cast<double>(key.Hash())); |
| cache->set(EntryToIndex(entry), *k); |
| - cache->set(EntryToIndex(entry) + 1, Smi::FromInt(kHashGenerations)); |
| + cache->set(EntryToIndex(entry) + 1, *value); |
| cache->ElementAdded(); |
| return cache; |
| } |