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

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

Issue 17343005: Fix Vtune support to handle deprecation of V8_USE_UNSAFE_HANDLES (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 7 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | 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 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 jmethod.method_id = iJIT_GetNewMethodID(); 185 jmethod.method_id = iJIT_GetNewMethodID();
186 jmethod.method_load_address = event->code_start; 186 jmethod.method_load_address = event->code_start;
187 jmethod.method_size = static_cast<unsigned int>(event->code_len); 187 jmethod.method_size = static_cast<unsigned int>(event->code_len);
188 jmethod.method_name = temp_method_name; 188 jmethod.method_name = temp_method_name;
189 189
190 Handle<Script> script = event->script; 190 Handle<Script> script = event->script;
191 191
192 if (*script != NULL) { 192 if (*script != NULL) {
193 // Get the source file name and set it to jmethod.source_file_name 193 // Get the source file name and set it to jmethod.source_file_name
194 if ((*script->GetScriptName())->IsString()) { 194 if ((*script->GetScriptName())->IsString()) {
195 Handle<String> script_name = 195 Handle<String> script_name = script->GetScriptName()->ToString();
196 Handle<String>(String::Cast(*script->GetScriptName()));
197 temp_file_name = new char[script_name->Utf8Length() + 1]; 196 temp_file_name = new char[script_name->Utf8Length() + 1];
198 script_name->WriteUtf8(temp_file_name); 197 script_name->WriteUtf8(temp_file_name);
199 jmethod.source_file_name = temp_file_name; 198 jmethod.source_file_name = temp_file_name;
200 } 199 }
201 200
202 JitInfoMap::iterator entry = 201 JitInfoMap::iterator entry =
203 GetEntries()->find(event->code_start); 202 GetEntries()->find(event->code_start);
204 if (entry != GetEntries()->end() && IsLineInfoTagged(entry->first)) { 203 if (entry != GetEntries()->end() && IsLineInfoTagged(entry->first)) {
205 JITCodeLineInfo* line_info = UntagLineInfo(entry->second); 204 JITCodeLineInfo* line_info = UntagLineInfo(entry->second);
206 // Get the line_num_info and set it to jmethod.line_number_table 205 // Get the line_num_info and set it to jmethod.line_number_table
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 void InitializeVtuneForV8() { 269 void InitializeVtuneForV8() {
271 if (v8::V8::Initialize()) { 270 if (v8::V8::Initialize()) {
272 v8::V8::SetFlagsFromString("--nocompact_code_space", 271 v8::V8::SetFlagsFromString("--nocompact_code_space",
273 (int)strlen("--nocompact_code_space")); 272 (int)strlen("--nocompact_code_space"));
274 v8::V8::SetJitCodeEventHandler(v8::kJitCodeEventDefault, 273 v8::V8::SetJitCodeEventHandler(v8::kJitCodeEventDefault,
275 vTune::internal::VTUNEJITInterface::event_handler); 274 vTune::internal::VTUNEJITInterface::event_handler);
276 } 275 }
277 } 276 }
278 277
279 } // namespace vTune 278 } // namespace vTune
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698