| Index: src/third_party/vtune/vtune-jit.cc
|
| diff --git a/src/third_party/vtune/vtune-jit.cc b/src/third_party/vtune/vtune-jit.cc
|
| index c75a0e42ec3b4c6afed2ab5fa71268858c088ba6..30f6196001930fdf07d6e390b22243572fb0e517 100644
|
| --- a/src/third_party/vtune/vtune-jit.cc
|
| +++ b/src/third_party/vtune/vtune-jit.cc
|
| @@ -57,8 +57,24 @@
|
| */
|
| #include <string.h>
|
|
|
| +#ifdef WIN32
|
| +#include <hash_map>
|
| +using namespace std;
|
| +#else
|
| +// To avoid GCC 4.4 compilation warning about hash_map being deprecated.
|
| +#define OLD_DEPRECATED __DEPRECATED
|
| +#undef __DEPRECATED
|
| +#if defined (ANDROID)
|
| +#include <hash_map>
|
| +using namespace std;
|
| +#else
|
| +#include <ext/hash_map>
|
| +using namespace __gnu_cxx;
|
| +#endif
|
| +#define __DEPRECATED OLD_DEPRECATED
|
| +#endif
|
| +
|
| #include <list>
|
| -#include <unordered_map>
|
|
|
| #include "v8-vtune.h"
|
| #include "vtune-jit.h"
|
| @@ -110,8 +126,11 @@
|
| }
|
| };
|
|
|
| -typedef std::unordered_map<void*, void*, HashForCodeObject, SameCodeObjects>
|
| - JitInfoMap;
|
| +#ifdef WIN32
|
| +typedef hash_map<void*, void*> JitInfoMap;
|
| +#else
|
| +typedef hash_map<void*, void*, HashForCodeObject, SameCodeObjects> JitInfoMap;
|
| +#endif
|
|
|
| static JitInfoMap* GetEntries() {
|
| static JitInfoMap* entries;
|
|
|