OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "src/v8.h" |
| 6 |
| 7 #include "src/objects.h" |
| 8 #include "src/type-feedback-vector.h" |
| 9 |
| 10 namespace v8 { |
| 11 namespace internal { |
| 12 |
| 13 // static |
| 14 Handle<TypeFeedbackVector> TypeFeedbackVector::Copy( |
| 15 Isolate* isolate, Handle<TypeFeedbackVector> vector) { |
| 16 Handle<TypeFeedbackVector> result; |
| 17 result = Handle<TypeFeedbackVector>::cast( |
| 18 isolate->factory()->CopyFixedArray(Handle<FixedArray>::cast(vector))); |
| 19 return result; |
| 20 } |
| 21 } |
| 22 } // namespace v8::internal |
OLD | NEW |