Index: src/utils.cc |
diff --git a/src/utils.cc b/src/utils.cc |
index 165855a3ab56687287c90d13e638c5d7a757cb0f..40c8b404fdfd57ebb7ce3a7db98a814705aa5994 100644 |
--- a/src/utils.cc |
+++ b/src/utils.cc |
@@ -7,6 +7,7 @@ |
#include "src/v8.h" |
+#include "src/base/functional.h" |
#include "src/base/logging.h" |
#include "src/base/platform/platform.h" |
#include "src/utils.h" |
@@ -77,6 +78,17 @@ char* SimpleStringBuilder::Finalize() { |
} |
+size_t hash_value(BailoutId id) { |
+ base::hash<int> h; |
+ return h(id.id_); |
+} |
+ |
+ |
+std::ostream& operator<<(std::ostream& os, BailoutId id) { |
+ return os << id.id_; |
+} |
+ |
+ |
void PrintF(const char* format, ...) { |
va_list arguments; |
va_start(arguments, format); |