Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(607)

Side by Side Diff: src/third_party/vtune/vtune-jit.cc

Issue 960493003: Remove JITCodeEvent::CODE_REMOVED (Closed) Base URL: https://chromium.googlesource.com/v8/v8@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/serialize.cc ('k') | test/cctest/test-api.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 reinterpret_cast<void*>(&jmethod)); 234 reinterpret_cast<void*>(&jmethod));
235 if (temp_method_name) 235 if (temp_method_name)
236 delete []temp_method_name; 236 delete []temp_method_name;
237 if (temp_file_name) 237 if (temp_file_name)
238 delete []temp_file_name; 238 delete []temp_file_name;
239 break; 239 break;
240 } 240 }
241 // TODO(chunyang.dai@intel.com): code_move will be supported. 241 // TODO(chunyang.dai@intel.com): code_move will be supported.
242 case v8::JitCodeEvent::CODE_MOVED: 242 case v8::JitCodeEvent::CODE_MOVED:
243 break; 243 break;
244 // Currently the CODE_REMOVED event is not issued.
245 case v8::JitCodeEvent::CODE_REMOVED:
246 break;
247 case v8::JitCodeEvent::CODE_ADD_LINE_POS_INFO: { 244 case v8::JitCodeEvent::CODE_ADD_LINE_POS_INFO: {
248 JITCodeLineInfo* line_info = 245 JITCodeLineInfo* line_info =
249 reinterpret_cast<JITCodeLineInfo*>(event->user_data); 246 reinterpret_cast<JITCodeLineInfo*>(event->user_data);
250 if (line_info != NULL) { 247 if (line_info != NULL) {
251 line_info->SetPosition(static_cast<intptr_t>(event->line_info.offset), 248 line_info->SetPosition(static_cast<intptr_t>(event->line_info.offset),
252 static_cast<int>(event->line_info.pos)); 249 static_cast<int>(event->line_info.pos));
253 } 250 }
254 break; 251 break;
255 } 252 }
256 case v8::JitCodeEvent::CODE_START_LINE_INFO_RECORDING: { 253 case v8::JitCodeEvent::CODE_START_LINE_INFO_RECORDING: {
(...skipping 14 matching lines...) Expand all
271 268
272 } // namespace internal 269 } // namespace internal
273 270
274 v8::JitCodeEventHandler GetVtuneCodeEventHandler() { 271 v8::JitCodeEventHandler GetVtuneCodeEventHandler() {
275 v8::V8::SetFlagsFromString("--nocompact_code_space", 272 v8::V8::SetFlagsFromString("--nocompact_code_space",
276 (int)strlen("--nocompact_code_space")); 273 (int)strlen("--nocompact_code_space"));
277 return vTune::internal::VTUNEJITInterface::event_handler; 274 return vTune::internal::VTUNEJITInterface::event_handler;
278 } 275 }
279 276
280 } // namespace vTune 277 } // namespace vTune
OLDNEW
« no previous file with comments | « src/serialize.cc ('k') | test/cctest/test-api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698