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

Issue 8359023: Deserialize string data directly into a newly allocated object. (Closed)

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

Description

Deserialize string data directly into a newly allocated object. BUG=5283593 Committed: https://code.google.com/p/dart/source/detail?r=619

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -29 lines) Patch
M runtime/vm/raw_object_snapshot.cc View 3 chunks +14 lines, -29 lines 4 comments Download

Messages

Total messages: 2 (0 generated)
cshapiro
9 years, 2 months ago (2011-10-21 03:17:02 UTC) #1
siva
9 years, 2 months ago (2011-10-21 20:40:55 UTC) #2
LGTM

http://codereview.chromium.org/8359023/diff/1/runtime/vm/raw_object_snapshot.cc
File runtime/vm/raw_object_snapshot.cc (right):

http://codereview.chromium.org/8359023/diff/1/runtime/vm/raw_object_snapshot....
runtime/vm/raw_object_snapshot.cc:1006: *str_obj.CharAddr(i) =
reader->Read<uint8_t>();
*(str_obj.CharAddr(i)) = reader->Read<uint8_t>();

would be more readable?
ignore the comment if you think it is not.

http://codereview.chromium.org/8359023/diff/1/runtime/vm/raw_object_snapshot....
runtime/vm/raw_object_snapshot.cc:1053: for (int i = 0; i < len; i++) {
int => intptr_t like above?

http://codereview.chromium.org/8359023/diff/1/runtime/vm/raw_object_snapshot....
runtime/vm/raw_object_snapshot.cc:1054: *str_obj.CharAddr(i) =
reader->Read<uint16_t>();
ditto.

http://codereview.chromium.org/8359023/diff/1/runtime/vm/raw_object_snapshot....
runtime/vm/raw_object_snapshot.cc:1102: *str_obj.CharAddr(i) =
reader->Read<uint32_t>();
ditto.

Powered by Google App Engine
This is Rietveld 408576698