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

Issue 9086005: When shrinking semispace don't relink pages if semispace is not committed (Closed)

Created:
8 years, 11 months ago by Vyacheslav Egorov (Chromium)
Modified:
8 years, 11 months ago
CC:
v8-dev
Visibility:
Public.

Description

When shrinking semispace don't relink pages if semispace is not committed R=mstarzinger@chromium.org Committed: http://code.google.com/p/v8/source/detail?r=10333

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -1 line) Patch
M src/spaces.cc View 1 chunk +6 lines, -1 line 2 comments Download

Messages

Total messages: 3 (0 generated)
Vyacheslav Egorov (Chromium)
8 years, 11 months ago (2012-01-04 13:44:09 UTC) #1
Michael Starzinger
LGTM (with a nit). http://codereview.chromium.org/9086005/diff/1/src/spaces.cc File src/spaces.cc (right): http://codereview.chromium.org/9086005/diff/1/src/spaces.cc#newcode1272 src/spaces.cc:1272: if (!is_committed()) { Can we ...
8 years, 11 months ago (2012-01-04 14:38:28 UTC) #2
Sven Panne
8 years, 11 months ago (2012-01-04 14:46:54 UTC) #3
http://codereview.chromium.org/9086005/diff/1/src/spaces.cc
File src/spaces.cc (right):

http://codereview.chromium.org/9086005/diff/1/src/spaces.cc#newcode1272
src/spaces.cc:1272: if (!is_committed()) {
On 2012/01/04 14:38:28, Michael Starzinger wrote:
> Can we invert the condition and place the block below inside the if statement?
I
> like that better than early returns.

Drive-by comment: I *do* like guard clauses, they can make the normal control
flow much clearer.
(http://martinfowler.com/refactoring/catalog/replaceNestedConditionalWithGuard...)

Just my 2c... :-)

Powered by Google App Engine
This is Rietveld 408576698