Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index d30d80b449e5caf8ef43573e4be7067bb8ffc920..45394c49185dea8b4b32cc4a60e343e70c4eba9e 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -12543,18 +12543,6 @@ void SharedFunctionInfo::EvictFromOptimizedCodeMap(Code* optimized_code, |
} |
} |
- |
-void SharedFunctionInfo::TrimOptimizedCodeMap(int shrink_by) { |
- FixedArray* code_map = optimized_code_map(); |
- DCHECK(shrink_by % kEntryLength == 0); |
- DCHECK(shrink_by <= code_map->length() - kEntriesStart); |
- // Always trim even when array is cleared because of heap verifier. |
- GetHeap()->RightTrimFixedArray(code_map, shrink_by); |
- if (code_map->length() == kEntriesStart) { |
- ClearOptimizedCodeMap(); |
- } |
-} |
- |
// static |
void JSFunction::EnsureLiterals(Handle<JSFunction> function) { |
Handle<SharedFunctionInfo> shared(function->shared()); |