Index: src/type-feedback-vector.cc |
diff --git a/src/type-feedback-vector.cc b/src/type-feedback-vector.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..61e9ded67b1f6563f63b6ce0865e2e1154f5b748 |
--- /dev/null |
+++ b/src/type-feedback-vector.cc |
@@ -0,0 +1,22 @@ |
+// Copyright 2014 the V8 project authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "src/v8.h" |
+ |
+#include "src/objects.h" |
+#include "src/type-feedback-vector.h" |
+ |
+namespace v8 { |
+namespace internal { |
+ |
+// static |
+Handle<TypeFeedbackVector> TypeFeedbackVector::Copy( |
+ Isolate* isolate, Handle<TypeFeedbackVector> vector) { |
+ Handle<TypeFeedbackVector> result; |
+ result = Handle<TypeFeedbackVector>::cast( |
+ isolate->factory()->CopyFixedArray(Handle<FixedArray>::cast(vector))); |
+ return result; |
+} |
+} |
+} // namespace v8::internal |