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

Issue 28296: Simplify the way that we compile slow-case switch statements. Compile... (Closed)

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

Description

Simplify the way that we compile slow-case switch statements. Compile all the reachable tests first, and then all the reachable bodies. Committed: http://code.google.com/p/v8/source/detail?r=1397

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+72 lines, -156 lines) Patch
M src/ast.h View 1 chunk +2 lines, -0 lines 0 comments Download
M src/codegen-ia32.cc View 1 2 1 chunk +70 lines, -156 lines 2 comments Download

Messages

Total messages: 2 (0 generated)
Kevin Millikin (Chromium)
11 years, 10 months ago (2009-02-28 07:42:27 UTC) #1
iposva
11 years, 9 months ago (2009-03-02 10:16:20 UTC) #2
Small comments as discussed, otherwise LGTM.

-Ivan

http://codereview.chromium.org/28296/diff/12/14
File src/codegen-ia32.cc (right):

http://codereview.chromium.org/28296/diff/12/14#newcode2103
Line 2103: // Compile case bodies as needed.
ASSERT that you do not have a valid frame here and comment why this is so.

http://codereview.chromium.org/28296/diff/12/14#newcode2132
Line 2132: }
Add else case here for the only fall-through case with an ASSERT.

Powered by Google App Engine
This is Rietveld 408576698