| Index: src/version.h
|
| diff --git a/src/version.h b/src/version.h
|
| index 4f600054ec1d5b964c12ade3a1b38c57ed93af23..008ed276548f166165d421c7d0df9c2928017192 100644
|
| --- a/src/version.h
|
| +++ b/src/version.h
|
| @@ -5,6 +5,8 @@
|
| #ifndef V8_VERSION_H_
|
| #define V8_VERSION_H_
|
|
|
| +#include "src/base/functional.h"
|
| +
|
| namespace v8 {
|
| namespace internal {
|
|
|
| @@ -16,7 +18,9 @@ class Version {
|
| static int GetBuild() { return build_; }
|
| static int GetPatch() { return patch_; }
|
| static bool IsCandidate() { return candidate_; }
|
| - static int Hash() { return (major_ << 20) ^ (minor_ << 10) ^ patch_; }
|
| + static int Hash() {
|
| + return static_cast<int>(base::hash_combine(major_, minor_, build_, patch_));
|
| + }
|
|
|
| // Calculate the V8 version string.
|
| static void GetString(Vector<char> str);
|
|
|