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

Issue 2093013002: [turbolizer] Show a label with a shorter parameter for some opcodes. (Closed)

Created:
4 years, 6 months ago by bgeron
Modified:
4 years, 5 months ago
Reviewers:
Jarin, danno
CC:
v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[turbolizer] Show a label with a shorter parameter for some opcodes. With this patch, every node in turbo-*.json has an opcode, a title, and a label. The label field is new; the opcode and title were already there. The title is for the mouseover text. The label is what will be displayed in the graph view, unless it's too long, in which case only the opcode will be displayed. (This is similar to the preexisting behaviour of putting titles in labels, except that the titles were rarely short enough to fit in a label.) With this patch, the labels generated are in practice the same as the titles we had before, except for LoadField and StoreField, which will be rendered as LoadField[[+432]] and StoreField[[+432]] (if 432 was the offset). This diff adds an overloadable method virtual void Operator1<T>::PrintParameter(ostream&, PrintVerbosity) for each type T to Operator1. Its default implementation just uses operator<<(ostream&, T const&) and adds square brackets around it, but it is overridden for FieldAccess to print "[+432]" in the example case. BUG= R=jarin,danno Committed: https://crrev.com/feb93dd60bee1a2853105c2fd154ed07a2b40670 Cr-Commit-Position: refs/heads/master@{#37795}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Address feedback. #

Total comments: 6

Patch Set 3 : Address more feedback. Fix bug. #

Patch Set 4 : Merge with master #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -18 lines) Patch
M src/compiler/common-operator.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M src/compiler/graph-visualizer.cc View 1 2 3 1 chunk +5 lines, -3 lines 0 comments Download
M src/compiler/operator.h View 1 2 3 chunks +21 lines, -8 lines 0 comments Download
M src/compiler/operator.cc View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M src/compiler/simplified-operator.h View 1 2 3 2 chunks +4 lines, -0 lines 0 comments Download
M src/compiler/simplified-operator.cc View 1 2 3 1 chunk +9 lines, -0 lines 0 comments Download
M tools/turbolizer/graph-view.js View 1 chunk +1 line, -1 line 0 comments Download
M tools/turbolizer/node.js View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 31 (17 generated)
bgeron
PTAL.
4 years, 6 months ago (2016-06-24 11:35:40 UTC) #1
danno
https://codereview.chromium.org/2093013002/diff/1/src/compiler/operator.h File src/compiler/operator.h (right): https://codereview.chromium.org/2093013002/diff/1/src/compiler/operator.h#newcode117 src/compiler/operator.h:117: void PrintTo(std::ostream& os, bool verbose = true) const { ...
4 years, 5 months ago (2016-06-27 07:57:00 UTC) #2
bgeron
Thanks; good points. See below. https://codereview.chromium.org/2093013002/diff/1/src/compiler/operator.h File src/compiler/operator.h (right): https://codereview.chromium.org/2093013002/diff/1/src/compiler/operator.h#newcode124 src/compiler/operator.h:124: virtual void PrintTo2(std::ostream& os, ...
4 years, 5 months ago (2016-07-05 13:54:35 UTC) #4
danno
getting close! https://codereview.chromium.org/2093013002/diff/1/src/compiler/operator.h File src/compiler/operator.h (right): https://codereview.chromium.org/2093013002/diff/1/src/compiler/operator.h#newcode162 src/compiler/operator.h:162: os << parameter; On 2016/07/05 13:54:35, bgeron ...
4 years, 5 months ago (2016-07-06 09:25:47 UTC) #5
bgeron
See below. Also, I fixed the printing behaviour of subclasses of Operator1<T>, such as CallOperator. ...
4 years, 5 months ago (2016-07-13 11:08:06 UTC) #7
danno
lgtm
4 years, 5 months ago (2016-07-13 12:56:57 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2093013002/60001
4 years, 5 months ago (2016-07-13 14:21:05 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2093013002/80001
4 years, 5 months ago (2016-07-13 14:36:25 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: v8_presubmit on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_presubmit/builds/19364)
4 years, 5 months ago (2016-07-13 14:43:36 UTC) #22
bgeron
Jaro, I need another LGTM from an owner. What do you think? Cheers, Bram
4 years, 5 months ago (2016-07-13 14:46:12 UTC) #24
Jarin
lgtm
4 years, 5 months ago (2016-07-15 11:05:17 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2093013002/80001
4 years, 5 months ago (2016-07-15 11:41:36 UTC) #27
commit-bot: I haz the power
Committed patchset #4 (id:80001)
4 years, 5 months ago (2016-07-15 12:05:59 UTC) #29
commit-bot: I haz the power
4 years, 5 months ago (2016-07-15 12:07:54 UTC) #31
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/feb93dd60bee1a2853105c2fd154ed07a2b40670
Cr-Commit-Position: refs/heads/master@{#37795}

Powered by Google App Engine
This is Rietveld 408576698