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

Issue 115123: Return immediately from GetLogLines if logging to memory isn't enabled. (Closed)

Created:
11 years, 7 months ago by Mikhail Naganov
Modified:
9 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

Return immediately from GetLogLines if logging to memory isn't enabled. Committed: http://code.google.com/p/v8/source/detail?r=1901

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -0 lines) Patch
M src/log.cc View 1 chunk +1 line, -0 lines 2 comments Download
M test/cctest/test-log.cc View 2 chunks +15 lines, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Mikhail Naganov
11 years, 7 months ago (2009-05-08 09:38:48 UTC) #1
Søren Thygesen Gjesse
LGTM http://codereview.chromium.org/115123/diff/1/2 File src/log.cc (right): http://codereview.chromium.org/115123/diff/1/2#newcode426 Line 426: if (Write != WriteToMemory) return 0; Maybe ...
11 years, 7 months ago (2009-05-08 09:59:33 UTC) #2
Mikhail Naganov
11 years, 7 months ago (2009-05-08 10:06:15 UTC) #3
Thanks for finding a minute of your holiday time on a review!

http://codereview.chromium.org/115123/diff/1/2
File src/log.cc (right):

http://codereview.chromium.org/115123/diff/1/2#newcode426
Line 426: if (Write != WriteToMemory) return 0;
On 2009/05/08 09:59:33, Søren Gjesse wrote:
> Maybe we should consider having an enum to indicate to where log output is
going
> instead of checking the write function.

And end up have two variables for specifying mode (Write and the new enum)? No.
I think the current semantics is fine.

Powered by Google App Engine
This is Rietveld 408576698