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

Issue 113641: Fix test-log/EquivalenceOfLoggingAndTraversal for the snapshot case. (Closed)

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

Description

Fix test-log/EquivalenceOfLoggingAndTraversal for the snapshot case. If was failing because with snapshot the range between minimum and maximum addresses of heap objects is very large (close to 0xf0000000). To fix this I rewrote handling of address maps in the test. Submitting with TBR because of late time. I think, we'll need to revisit this change tomorrow. TBR=sgjesse@chromium.org Committed: http://code.google.com/p/v8/source/detail?r=2019

Patch Set 1 #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+143 lines, -71 lines) Patch
M test/cctest/test-log.cc View 7 chunks +143 lines, -71 lines 6 comments Download

Messages

Total messages: 3 (0 generated)
Mikhail Naganov
11 years, 7 months ago (2009-05-20 16:42:33 UTC) #1
Søren Thygesen Gjesse
LGTM http://codereview.chromium.org/113641/diff/1/2 File test/cctest/test-log.cc (right): http://codereview.chromium.org/113641/diff/1/2#newcode166 Line 166: if (next != NULL) return next->Contains(addr); Please ...
11 years, 7 months ago (2009-05-25 08:45:52 UTC) #2
Mikhail Naganov
11 years, 7 months ago (2009-05-25 09:32:09 UTC) #3
Thanks, I'll send you a CL fix fixes.

http://codereview.chromium.org/113641/diff/1/2
File test/cctest/test-log.cc (right):

http://codereview.chromium.org/113641/diff/1/2#newcode166
Line 166: if (next != NULL) return next->Contains(addr);
On 2009/05/25 08:45:53, Søren Gjesse wrote:
> Please add {}'s for one statement if. Maybe use an else part for 'return
false'.
> How long does these chains normally get? If they can get very long consider a
> loop instead of recursion.

Usually, there is no 'next' at all. 'next' appears only on tests involving
snapshots, and there're 2 or 3 items in a chain, so recursion seems to be fine.

http://codereview.chromium.org/113641/diff/1/2#newcode206
Line 206: Address min_addr;
On 2009/05/25 08:45:53, Søren Gjesse wrote:
> Missing trailing underscores?

Done.

http://codereview.chromium.org/113641/diff/1/2#newcode274
Line 274: Interval bounds;
On 2009/05/25 08:45:53, Søren Gjesse wrote:
> Missing trailing underscores?

Um, actually encapsulation is sort of leaking here, so these members are not
private.

Powered by Google App Engine
This is Rietveld 408576698