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

Issue 21042003: Patch to enhance the source code line information for profiler. (Closed)

Created:
7 years, 4 months ago by chunyang.dai
Modified:
7 years, 4 months ago
Reviewers:
danno
CC:
v8-dev
Visibility:
Public.

Description

Patch to enhance the source code line information for profiler. This patch is to enhance the source code line information for profiler. For the Hydrogen compilation, most of the source code line information is not copied from the HInstruction the to corresponding LInstruction. This patch defines one PositionBits field for LInstruction and copies the sorce code position value from the HInstruction. When Generating the native code, we use RecordPosition(..) function to write LInstruction's position value to position recorder. For the MIPS platform, I did not touch because I have no devices to verify the modification on it.

Patch Set 1 #

Total comments: 3

Patch Set 2 : #

Total comments: 4

Patch Set 3 : #

Total comments: 6

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+131 lines, -27 lines) Patch
M src/arm/lithium-arm.h View 1 2 3 3 chunks +25 lines, -9 lines 0 comments Download
M src/arm/lithium-arm.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M src/arm/lithium-codegen-arm.h View 1 2 3 3 chunks +5 lines, -1 line 0 comments Download
M src/arm/lithium-codegen-arm.cc View 1 2 3 3 chunks +14 lines, -0 lines 0 comments Download
M src/ia32/lithium-codegen-ia32.h View 1 2 3 3 chunks +6 lines, -1 line 0 comments Download
M src/ia32/lithium-codegen-ia32.cc View 1 2 3 3 chunks +14 lines, -0 lines 0 comments Download
M src/ia32/lithium-ia32.h View 1 2 3 3 chunks +21 lines, -6 lines 0 comments Download
M src/ia32/lithium-ia32.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M src/x64/lithium-codegen-x64.h View 1 2 3 3 chunks +5 lines, -1 line 0 comments Download
M src/x64/lithium-codegen-x64.cc View 1 2 3 3 chunks +14 lines, -0 lines 0 comments Download
M src/x64/lithium-x64.h View 1 2 3 3 chunks +24 lines, -9 lines 0 comments Download
M src/x64/lithium-x64.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
danno
My comments below apply to all platforms. Please also do the port to ARM, which ...
7 years, 4 months ago (2013-07-29 12:29:01 UTC) #1
chunyang.dai
Hello, Daniel. For the comments in lithim-ia32.h: If I use BitField to represent both is_call ...
7 years, 4 months ago (2013-07-30 10:37:54 UTC) #2
danno
I suggest using bit fields as we do elsewhere in Hydrogen, perhaps defining: class IsCallField: ...
7 years, 4 months ago (2013-07-30 10:55:20 UTC) #3
chunyang.dai
Hello, Daniel. I implemented the same code according to your suggestion. But the position value ...
7 years, 4 months ago (2013-07-30 14:50:05 UTC) #4
chunyang.dai
Hello, Daniel. I implemented the same code according to your suggestion. But the position value ...
7 years, 4 months ago (2013-07-30 14:50:08 UTC) #5
danno
Can you not store (position + 1) in the encoded field? If you protect access ...
7 years, 4 months ago (2013-07-31 08:29:20 UTC) #6
chunyang.dai
Hello, Daniel. I updated the code and please review it. Thanks a lot for this ...
7 years, 4 months ago (2013-08-01 07:48:24 UTC) #7
chunyang.dai
Hello. Daniel. Could you please review this patch? Thanks.
7 years, 4 months ago (2013-08-02 10:14:21 UTC) #8
danno
Note that all comments for ARM apply to other platforms, too. Please note that I ...
7 years, 4 months ago (2013-08-02 10:53:16 UTC) #9
chunyang.dai
Hello, Daniel. I am sorry I send too many messages to notify you. This time ...
7 years, 4 months ago (2013-08-05 16:05:48 UTC) #10
danno
Please make sure that your patch works for all platforms by running: make check https://codereview.chromium.org/21042003/diff/28001/src/arm/lithium-codegen-arm.cc ...
7 years, 4 months ago (2013-08-05 16:59:16 UTC) #11
chunyang.dai
hello. Daniel. I am sorry I uploaded the incorrect code for code review because I ...
7 years, 4 months ago (2013-08-06 10:08:22 UTC) #12
danno
lgtm
7 years, 4 months ago (2013-08-07 19:10:26 UTC) #13
haitao.feng
7 years, 4 months ago (2013-08-08 02:27:46 UTC) #14
Message was sent while issue was closed.
I have helped to commit this CL as r16114.

Powered by Google App Engine
This is Rietveld 408576698