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

Issue 655183002: Update intialization of vtune support. (Closed)

Created:
6 years, 2 months ago by chunyang.dai
Modified:
6 years, 2 months ago
CC:
v8-dev
Base URL:
https://chromium.googlesource.com/external/v8.git@bleeding_edge
Project:
v8
Visibility:
Public.

Description

Update intialization of vtune support. In R23940 (https://code.google.com/p/v8/source/detail?r=23940) it introduces Isolate::CreateParams and mentions that V8::SetJitCodeEventHandler should either be passed to Isolate::New as well, or invoked via the Isolate. When Chrome as embedder of V8, we will set the Jit Code event handler for Vtune support during the initialization of renderer process and V8 has be initialized at that time. It's better that we invoke V8::SetJitCodeEventHander via the Isolate. So we change the vTune::InitializeVtuneForV8(v8::Isolate::CreateParams& params) to vTune::InitializeVtuneForV8(v8::Isolate* isolate). we will do corresponding changes in chromium code if this patch is landed and Chromium updates V8 to the new release branch. some part of this patch is provided by denis.pravdin@intel.com. BUG= R=danno@chromium.org, jochen@chromium.org Committed: https://code.google.com/p/v8/source/detail?r=24811

Patch Set 1 #

Patch Set 2 : #

Total comments: 1

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -4 lines) Patch
M src/d8.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/third_party/vtune/v8-vtune.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/third_party/vtune/vtune-jit.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 13 (1 generated)
chunyang.dai
hello, Daniel & Jochen. PTAL. thanks.
6 years, 2 months ago (2014-10-15 08:27:34 UTC) #2
danno
lgtm
6 years, 2 months ago (2014-10-15 08:52:48 UTC) #3
chunyang.dai
Hello. Please help to commit it. Thanks
6 years, 2 months ago (2014-10-15 09:03:42 UTC) #4
jochen (gone - plz use gerrit)
note that you won't get jit events for all code jitted during deserialization of the ...
6 years, 2 months ago (2014-10-15 09:38:37 UTC) #5
jochen (gone - plz use gerrit)
btw, chrome also has a way to set the jit code event handler before isolate ...
6 years, 2 months ago (2014-10-15 09:39:18 UTC) #6
chunyang.dai
hello, Jochen. Thank you for your comments. Yes, This CL will lose some jit code ...
6 years, 2 months ago (2014-10-16 08:35:27 UTC) #7
jochen (gone - plz use gerrit)
On 2014/10/16 at 08:35:27, chunyang.dai wrote: > hello, Jochen. > Thank you for your comments. ...
6 years, 2 months ago (2014-10-17 11:55:17 UTC) #8
chunyang.dai
hello, Jochen. I updated the patch. PTAL. And I created one CL for the corresponding ...
6 years, 2 months ago (2014-10-21 09:24:42 UTC) #9
jochen (gone - plz use gerrit)
https://codereview.chromium.org/655183002/diff/20001/src/third_party/vtune/v8-vtune.h File src/third_party/vtune/v8-vtune.h (right): https://codereview.chromium.org/655183002/diff/20001/src/third_party/vtune/v8-vtune.h#newcode66 src/third_party/vtune/v8-vtune.h:66: v8::JitCodeEventHandler GetVtuneCodeEventHandler(); can you change d8 to use this ...
6 years, 2 months ago (2014-10-21 12:43:22 UTC) #10
chunyang.dai
I modified it according to your comments. Please review it. And please help to commit ...
6 years, 2 months ago (2014-10-22 02:03:31 UTC) #11
jochen (gone - plz use gerrit)
lgtm
6 years, 2 months ago (2014-10-22 15:26:12 UTC) #12
jochen (gone - plz use gerrit)
6 years, 2 months ago (2014-10-22 15:31:01 UTC) #13
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as 24811 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698