OLD | NEW |
1 /* | 1 /* |
2 This file is provided under a dual BSD/GPLv2 license. When using or | 2 This file is provided under a dual BSD/GPLv2 license. When using or |
3 redistributing this file, you may do so under either license. | 3 redistributing this file, you may do so under either license. |
4 | 4 |
5 GPL LICENSE SUMMARY | 5 GPL LICENSE SUMMARY |
6 | 6 |
7 Copyright(c) 2005-2012 Intel Corporation. All rights reserved. | 7 Copyright(c) 2005-2012 Intel Corporation. All rights reserved. |
8 | 8 |
9 This program is free software; you can redistribute it and/or modify | 9 This program is free software; you can redistribute it and/or modify |
10 it under the terms of version 2 of the GNU General Public License as | 10 it under the terms of version 2 of the GNU General Public License as |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 */ | 57 */ |
58 #include <string.h> | 58 #include <string.h> |
59 | 59 |
60 #ifdef WIN32 | 60 #ifdef WIN32 |
61 #include <hash_map> | 61 #include <hash_map> |
62 using namespace std; | 62 using namespace std; |
63 #else | 63 #else |
64 // To avoid GCC 4.4 compilation warning about hash_map being deprecated. | 64 // To avoid GCC 4.4 compilation warning about hash_map being deprecated. |
65 #define OLD_DEPRECATED __DEPRECATED | 65 #define OLD_DEPRECATED __DEPRECATED |
66 #undef __DEPRECATED | 66 #undef __DEPRECATED |
| 67 #if defined (ANDROID) |
| 68 #include <hash_map> |
| 69 using namespace std; |
| 70 #else |
67 #include <ext/hash_map> | 71 #include <ext/hash_map> |
| 72 using namespace __gnu_cxx; |
| 73 #endif |
68 #define __DEPRECATED OLD_DEPRECATED | 74 #define __DEPRECATED OLD_DEPRECATED |
69 using namespace __gnu_cxx; | |
70 #endif | 75 #endif |
71 | 76 |
72 #include <list> | 77 #include <list> |
73 | 78 |
74 #include "v8-vtune.h" | 79 #include "v8-vtune.h" |
75 #include "vtune-jit.h" | 80 #include "vtune-jit.h" |
76 | 81 |
77 namespace vTune { | 82 namespace vTune { |
78 namespace internal { | 83 namespace internal { |
79 | 84 |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
269 void InitializeVtuneForV8() { | 274 void InitializeVtuneForV8() { |
270 if (v8::V8::Initialize()) { | 275 if (v8::V8::Initialize()) { |
271 v8::V8::SetFlagsFromString("--nocompact_code_space", | 276 v8::V8::SetFlagsFromString("--nocompact_code_space", |
272 (int)strlen("--nocompact_code_space")); | 277 (int)strlen("--nocompact_code_space")); |
273 v8::V8::SetJitCodeEventHandler(v8::kJitCodeEventDefault, | 278 v8::V8::SetJitCodeEventHandler(v8::kJitCodeEventDefault, |
274 vTune::internal::VTUNEJITInterface::event_handler); | 279 vTune::internal::VTUNEJITInterface::event_handler); |
275 } | 280 } |
276 } | 281 } |
277 | 282 |
278 } // namespace vTune | 283 } // namespace vTune |
OLD | NEW |