Index: src/type-info.cc |
diff --git a/src/type-info.cc b/src/type-info.cc |
index f606ce20578dc67d4af3ffa7cde4fbcdf2266642..07c772e980d0c295668c65470b993967f7fbcfbd 100644 |
--- a/src/type-info.cc |
+++ b/src/type-info.cc |
@@ -18,19 +18,17 @@ namespace v8 { |
namespace internal { |
-TypeFeedbackOracle::TypeFeedbackOracle(Handle<Code> code, |
- Handle<FixedArray> feedback_vector, |
- Handle<Context> native_context, |
- Zone* zone) |
- : native_context_(native_context), |
- zone_(zone) { |
+TypeFeedbackOracle::TypeFeedbackOracle( |
+ Handle<Code> code, Handle<TypeFeedbackVector> feedback_vector, |
+ Handle<Context> native_context, Zone* zone) |
+ : native_context_(native_context), zone_(zone) { |
BuildDictionary(code); |
DCHECK(dictionary_->IsDictionary()); |
// We make a copy of the feedback vector because a GC could clear |
// the type feedback info contained therein. |
// TODO(mvstanton): revisit the decision to copy when we weakly |
// traverse the feedback vector at GC time. |
- feedback_vector_ = isolate()->factory()->CopyFixedArray(feedback_vector); |
+ feedback_vector_ = TypeFeedbackVector::Copy(isolate(), feedback_vector); |
} |