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

Issue 334263018: Fix the vtune support bug. (Closed)

Created:
6 years, 6 months ago by chunyang.dai
Modified:
6 years, 5 months ago
Reviewers:
Sven Panne, danno, marja
CC:
v8-dev
Base URL:
https://github.com/v8/v8.git@master
Project:
v8
Visibility:
Public.

Description

fix the vtune support bug. During https://code.google.com/p/v8/source/detail?r=19925 checkin context bound scripts (Script) and context unbound scripts (UnboundScript) are Distinguished. And then Sven Panne helped to fix the vtune support compilation error in https://code.google.com/p/v8/source/detail?r=20955. The problem is that there is runtime error for vtune support. In our original implementation, we encapsulated and passed v8::internal::Script to V8 API. It will leads to type check error for current V8::Script definition. So I changed the Handle<Script> definition in JitCodeEvent to Handle<UnboundScript> and add the corresponding change in log.cc. If you do NOT prefer to change in include/v8.h. I think I can change the definition of CodeEventLogger::LogRecordedBuffer(...) so that the we can pass the correct type (JSFunction) as V8::Script to V8 API. BUG= R=danno@chromium.org, svenpanne@chromium.org Committed: https://code.google.com/p/v8/source/detail?r=22393

Patch Set 1 #

Total comments: 1

Patch Set 2 : #

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

Messages

Total messages: 8 (0 generated)
chunyang.dai
hello. Daniel & Marja. please help to review this patch. thanks.
6 years, 6 months ago (2014-06-26 08:20:08 UTC) #1
marja
Looks correct to me. UnboundScript is a SharedFunctionInfo. Looks like I should've done this change ...
6 years, 6 months ago (2014-06-26 11:43:36 UTC) #2
Sven Panne
LGTM, I think that the external API change is OK, there are probably not that ...
6 years, 6 months ago (2014-06-26 12:18:47 UTC) #3
chunyang.dai
hello, Daniel. Could you please help review and port this patch? And I think it's ...
6 years, 5 months ago (2014-06-30 01:47:15 UTC) #4
danno
I'm happy to land this in 3.28, but since this is not a critical bug ...
6 years, 5 months ago (2014-06-30 09:25:28 UTC) #5
chunyang.dai
hi, Daniel. thanks for review comments. I changed it according to your suggestion. thanks.
6 years, 5 months ago (2014-07-01 03:18:46 UTC) #6
danno
lgtm. I will land this for you when the tree opens up again.
6 years, 5 months ago (2014-07-01 07:12:05 UTC) #7
danno
6 years, 5 months ago (2014-07-15 08:14:13 UTC) #8
Message was sent while issue was closed.
Committed patchset #2 manually as r22393 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698