Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(254)

Side by Side Diff: test/cctest/test-feedback-vector.h

Issue 2652893010: Interpreter tester should accept metadata instead of a vector (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « test/cctest/interpreter/test-interpreter.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « test/cctest/interpreter/test-interpreter.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698