OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_TEST_FEEDBACK_VECTOR_H_ | 5 #ifndef V8_TEST_FEEDBACK_VECTOR_H_ |
6 #define V8_TEST_FEEDBACK_VECTOR_H_ | 6 #define V8_TEST_FEEDBACK_VECTOR_H_ |
7 | 7 |
8 #include "src/objects.h" | 8 #include "src/objects.h" |
9 | 9 |
10 | 10 |
(...skipping 28 matching lines...) Expand all Loading... |
39 std::vector<FeedbackVectorSlot> slots_; | 39 std::vector<FeedbackVectorSlot> slots_; |
40 }; | 40 }; |
41 | 41 |
42 template <typename Spec> | 42 template <typename Spec> |
43 Handle<TypeFeedbackVector> NewTypeFeedbackVector(Isolate* isolate, Spec* spec) { | 43 Handle<TypeFeedbackVector> NewTypeFeedbackVector(Isolate* isolate, Spec* spec) { |
44 Handle<TypeFeedbackMetadata> metadata = | 44 Handle<TypeFeedbackMetadata> metadata = |
45 TypeFeedbackMetadata::New(isolate, spec); | 45 TypeFeedbackMetadata::New(isolate, spec); |
46 return TypeFeedbackVector::New(isolate, metadata); | 46 return TypeFeedbackVector::New(isolate, metadata); |
47 } | 47 } |
48 | 48 |
| 49 template <typename Spec> |
| 50 Handle<TypeFeedbackMetadata> NewTypeFeedbackMetadata(Isolate* isolate, |
| 51 Spec* spec) { |
| 52 return TypeFeedbackMetadata::New(isolate, spec); |
| 53 } |
49 | 54 |
50 } // namespace internal | 55 } // namespace internal |
51 } // namespace v8 | 56 } // namespace v8 |
52 | 57 |
53 #endif | 58 #endif |
OLD | NEW |