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

Issue 521019: Style cleanup of switches over Slot::Type in the nonoptimizing code... (Closed)

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

Description

Style cleanup of switches over Slot::Type in the nonoptimizing code generator. The Slot::Type enumeration has four values. It should never be necessary to use a default to handle the case of a value out of range of the enumeration. Doing so silences a useful warning when one of the enumeration values is actually forgotten or when a new enumeration value is added. Committed: http://code.google.com/p/v8/source/detail?r=3532

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -32 lines) Patch
M src/arm/fast-codegen-arm.cc View 5 chunks +4 lines, -11 lines 2 comments Download
M src/fast-codegen.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/ia32/fast-codegen-ia32.cc View 4 chunks +3 lines, -10 lines 0 comments Download
M src/x64/fast-codegen-x64.cc View 4 chunks +3 lines, -10 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Kevin Millikin (Chromium)
10 years, 11 months ago (2010-01-04 13:10:23 UTC) #1
Lasse Reichstein
LGTM http://codereview.chromium.org/521019/diff/1/5 File src/arm/fast-codegen-arm.cc (right): http://codereview.chromium.org/521019/diff/1/5#newcode255 src/arm/fast-codegen-arm.cc:255: case Slot::PARAMETER: // Fall through. I think two ...
10 years, 11 months ago (2010-01-05 06:16:57 UTC) #2
Lasse Reichstein
10 years, 11 months ago (2010-01-05 06:17:52 UTC) #3
http://codereview.chromium.org/521019/diff/1/5
File src/arm/fast-codegen-arm.cc (right):

http://codereview.chromium.org/521019/diff/1/5#newcode255
src/arm/fast-codegen-arm.cc:255: case Slot::PARAMETER:  // Fall through.
"Idiom", even.

Powered by Google App Engine
This is Rietveld 408576698