| 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 | |
| 71 #include <ext/hash_map> | 67 #include <ext/hash_map> |
| 68 #define __DEPRECATED OLD_DEPRECATED |
| 72 using namespace __gnu_cxx; | 69 using namespace __gnu_cxx; |
| 73 #endif | 70 #endif |
| 74 #define __DEPRECATED OLD_DEPRECATED | |
| 75 #endif | |
| 76 | 71 |
| 77 #include <list> | 72 #include <list> |
| 78 | 73 |
| 79 #include "v8-vtune.h" | 74 #include "v8-vtune.h" |
| 80 #include "vtune-jit.h" | 75 #include "vtune-jit.h" |
| 81 | 76 |
| 82 namespace vTune { | 77 namespace vTune { |
| 83 namespace internal { | 78 namespace internal { |
| 84 | 79 |
| 85 | 80 |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 274 void InitializeVtuneForV8() { | 269 void InitializeVtuneForV8() { |
| 275 if (v8::V8::Initialize()) { | 270 if (v8::V8::Initialize()) { |
| 276 v8::V8::SetFlagsFromString("--nocompact_code_space", | 271 v8::V8::SetFlagsFromString("--nocompact_code_space", |
| 277 (int)strlen("--nocompact_code_space")); | 272 (int)strlen("--nocompact_code_space")); |
| 278 v8::V8::SetJitCodeEventHandler(v8::kJitCodeEventDefault, | 273 v8::V8::SetJitCodeEventHandler(v8::kJitCodeEventDefault, |
| 279 vTune::internal::VTUNEJITInterface::event_handler); | 274 vTune::internal::VTUNEJITInterface::event_handler); |
| 280 } | 275 } |
| 281 } | 276 } |
| 282 | 277 |
| 283 } // namespace vTune | 278 } // namespace vTune |
| OLD | NEW |