From 833c3dbf977c1472a9b1667a0a9b058197ffcdcc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marja=20H=C3=B6ltt=C3=A4?= Date: Mon, 30 Apr 2018 10:36:11 +0200 Subject: [PATCH] [in-place weak refs prework] Remove dead FeedbackVector::copy. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit BUG=v8:7308 Change-Id: I55400096095619e2995a50adadf93253fc95d34c Reviewed-on: https://chromium-review.googlesource.com/1034057 Reviewed-by: Igor Sheludko Commit-Queue: Marja Hölttä Cr-Commit-Position: refs/heads/master@{#52880} --- src/feedback-vector.cc | 13 ------------- src/feedback-vector.h | 3 --- 2 files changed, 16 deletions(-) diff --git a/src/feedback-vector.cc b/src/feedback-vector.cc index d614c74c64..8aa49f370d 100644 --- a/src/feedback-vector.cc +++ b/src/feedback-vector.cc @@ -283,19 +283,6 @@ Handle FeedbackVector::New(Isolate* isolate, return result; } -// static -Handle FeedbackVector::Copy(Isolate* isolate, - Handle vector) { - Handle result; - result = Handle::cast( - isolate->factory()->CopyFixedArray(Handle::cast(vector))); - if (!isolate->is_best_effort_code_coverage() || - isolate->is_collecting_type_profile()) { - AddToVectorsForProfilingTools(isolate, result); - } - return result; -} - // static void FeedbackVector::AddToVectorsForProfilingTools( Isolate* isolate, Handle vector) { diff --git a/src/feedback-vector.h b/src/feedback-vector.h index 02acb79751..7d9e03b4b5 100644 --- a/src/feedback-vector.h +++ b/src/feedback-vector.h @@ -214,9 +214,6 @@ class FeedbackVector : public HeapObject { V8_EXPORT_PRIVATE static Handle New( Isolate* isolate, Handle shared); - static Handle Copy(Isolate* isolate, - Handle vector); - #define DEFINE_SLOT_KIND_PREDICATE(Name) \ bool Name(FeedbackSlot slot) const { return Name##Kind(GetKind(slot)); }