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

Issue 165237: Factored out common Instruction code in the CFG builder that depends only... (Closed)

Created:
11 years, 4 months ago by Kevin Millikin (Chromium)
Modified:
9 years, 7 months ago
Reviewers:
William Hesse
CC:
v8-dev
Visibility:
Public.

Description

Factored out common Instruction code in the CFG builder that depends only on the number of operands. Tinkered with instruction printing to align operands and not include so many parentheses. Committed: http://code.google.com/p/v8/source/detail?r=2657

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+167 lines, -95 lines) Patch
M src/cfg.h View 7 chunks +91 lines, -39 lines 0 comments Download
M src/cfg.cc View 5 chunks +76 lines, -56 lines 4 comments Download

Messages

Total messages: 3 (0 generated)
Kevin Millikin (Chromium)
11 years, 4 months ago (2009-08-10 11:26:32 UTC) #1
William Hesse
LGTM. http://codereview.chromium.org/165237/diff/1/3 File src/cfg.cc (right): http://codereview.chromium.org/165237/diff/1/3#newcode714 Line 714: PrintF("BinaryOp[%s] ", Token::Name(op())); If we print this ...
11 years, 4 months ago (2009-08-10 12:47:08 UTC) #2
Kevin Millikin (Chromium)
11 years, 4 months ago (2009-08-10 12:59:11 UTC) #3
http://codereview.chromium.org/165237/diff/1/3
File src/cfg.cc (right):

http://codereview.chromium.org/165237/diff/1/3#newcode714
Line 714: PrintF("BinaryOp[%s] ", Token::Name(op()));
On 2009/08/10 12:47:08, William Hesse wrote:
> If we print this on two lines, or don't print "BinaryOp", the instruction name
> field can get much shorter.  I think that would be good.

Printing on two lines seems annoying.  I'd much rather keep one instruction per
line.

I prefer painful explicitness (and accuracy) about the actual object structure
involved, since it's intended for debug printing.

http://codereview.chromium.org/165237/diff/1/3#newcode734
Line 734: PrintF("L%d:\n", number());
On 2009/08/10 12:47:08, William Hesse wrote:
> number is a pretty non-descriptive name for the node number.

CfgNode::number() doesn't seem non-descriptive for the node number.  I'd change
it to something else if there ever became a danger of confusion, but otherwise I
prefer the simplicity.

Powered by Google App Engine
This is Rietveld 408576698