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 #ifndef V8_TYPE_FEEDBACK_VECTOR_H_ |
| 6 #define V8_TYPE_FEEDBACK_VECTOR_H_ |
| 7 |
| 8 #include "src/checks.h" |
| 9 #include "src/elements-kind.h" |
| 10 #include "src/heap/heap.h" |
| 11 #include "src/isolate.h" |
| 12 #include "src/objects.h" |
| 13 |
| 14 namespace v8 { |
| 15 namespace internal { |
| 16 |
| 17 class TypeFeedbackVector : public FixedArray { |
| 18 public: |
| 19 // Casting. |
| 20 static TypeFeedbackVector* cast(Object* obj) { |
| 21 DCHECK(obj->IsTypeFeedbackVector()); |
| 22 return reinterpret_cast<TypeFeedbackVector*>(obj); |
| 23 } |
| 24 |
| 25 static Handle<TypeFeedbackVector> Copy(Isolate* isolate, |
| 26 Handle<TypeFeedbackVector> vector); |
| 27 |
| 28 private: |
| 29 DISALLOW_IMPLICIT_CONSTRUCTORS(TypeFeedbackVector); |
| 30 }; |
| 31 } |
| 32 } // namespace v8::internal |
| 33 |
| 34 #endif // V8_TRANSITIONS_H_ |
OLD | NEW |