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

Issue 9018002: Refactor some of the snapshot writer classes to eliminate code duplication. (Closed)

Created:
9 years ago by siva
Modified:
9 years ago
Reviewers:
hausner
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Refactor some of the snapshot writer classes to eliminate code duplication. Committed: https://code.google.com/p/dart/source/detail?r=2718

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 2

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -55 lines) Patch
M vm/dart_api_impl.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M vm/snapshot.h View 1 2 3 chunks +35 lines, -53 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
siva
9 years ago (2011-12-21 02:03:28 UTC) #1
hausner
LGTM, feel free to ignore comment. http://codereview.chromium.org/9018002/diff/2001/vm/snapshot.h File vm/snapshot.h (right): http://codereview.chromium.org/9018002/diff/2001/vm/snapshot.h#newcode336 vm/snapshot.h:336: intptr_t Size() const ...
9 years ago (2011-12-21 17:15:38 UTC) #2
siva
9 years ago (2011-12-21 19:22:08 UTC) #3
http://codereview.chromium.org/9018002/diff/2001/vm/snapshot.h
File vm/snapshot.h (right):

http://codereview.chromium.org/9018002/diff/2001/vm/snapshot.h#newcode336
vm/snapshot.h:336: intptr_t Size() const { return stream_.bytes_written(); }
Renamed to BytesWritten.

On 2011/12/21 17:15:39, hausner wrote:
> You didn't introduce this name in this change, but I find Size() a bit
> misleading because it's only valid after the data has been written.

Powered by Google App Engine
This is Rietveld 408576698