| Index: src/type-feedback-vector.cc
|
| diff --git a/src/type-feedback-vector.cc b/src/type-feedback-vector.cc
|
| index a3fe0707c7d578fbbbcf204dc51a68694308b271..82f6e454d33b15fc85d193e3cdab8bf1d7b14fd4 100644
|
| --- a/src/type-feedback-vector.cc
|
| +++ b/src/type-feedback-vector.cc
|
| @@ -4,12 +4,30 @@
|
|
|
| #include "src/v8.h"
|
|
|
| +#include "src/base/functional.h"
|
| #include "src/objects.h"
|
| #include "src/type-feedback-vector-inl.h"
|
|
|
| namespace v8 {
|
| namespace internal {
|
|
|
| +bool operator==(FeedbackNode const& lhs, FeedbackNode const& rhs) {
|
| + return lhs.slot() == rhs.slot() && lhs.vector().is_identical_to(rhs.vector());
|
| +}
|
| +
|
| +
|
| +bool operator!=(FeedbackNode const& lhs, FeedbackNode const& rhs) {
|
| + return !(lhs == rhs);
|
| +}
|
| +
|
| +
|
| +size_t hash_value(FeedbackNode const& p) {
|
| + // TODO(mvstanton): include the vector in the hash.
|
| + base::hash<int> h;
|
| + return h(p.slot());
|
| +}
|
| +
|
| +
|
| // static
|
| Handle<TypeFeedbackVector> TypeFeedbackVector::Copy(
|
| Isolate* isolate, Handle<TypeFeedbackVector> vector) {
|
|
|