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 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
270 } | 270 } |
271 | 271 |
272 } // namespace internal | 272 } // namespace internal |
273 | 273 |
274 void InitializeVtuneForV8(v8::Isolate::CreateParams& params) { | 274 void InitializeVtuneForV8(v8::Isolate::CreateParams& params) { |
275 v8::V8::SetFlagsFromString("--nocompact_code_space", | 275 v8::V8::SetFlagsFromString("--nocompact_code_space", |
276 (int)strlen("--nocompact_code_space")); | 276 (int)strlen("--nocompact_code_space")); |
277 params.code_event_handler = vTune::internal::VTUNEJITInterface::event_handler; | 277 params.code_event_handler = vTune::internal::VTUNEJITInterface::event_handler; |
278 } | 278 } |
279 | 279 |
| 280 v8::JitCodeEventHandler GetVtuneCodeEventHandler() { |
| 281 v8::V8::SetFlagsFromString("--nocompact_code_space", |
| 282 (int)strlen("--nocompact_code_space")); |
| 283 return vTune::internal::VTUNEJITInterface::event_handler; |
| 284 } |
| 285 |
280 } // namespace vTune | 286 } // namespace vTune |
OLD | NEW |