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

Issue 2245753002: Blink-compatible serialization of strings. (Closed)

Created:
4 years, 4 months ago by jbroman
Modified:
4 years, 4 months ago
Reviewers:
Camillo Bruni
CC:
esprehn, jochen (gone - plz use gerrit), v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@vs2
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Blink-compatible serialization of strings. This includes UTF-8 strings and two-byte strings, both length-delimited (in bytes, not characters). Two-byte strings are written/read in host byte order. BUG=chromium:148757 Committed: https://crrev.com/c5701e166ed3eee6f731ff1ec8ccac3c8ff85192 Cr-Commit-Position: refs/heads/master@{#38636}

Patch Set 1 #

Patch Set 2 : WARN_UNUSED_RESULT, comments #

Patch Set 3 : another note about BE #

Patch Set 4 : and a test that we satisfy padding requirements #

Patch Set 5 : clarify more #

Total comments: 2

Patch Set 6 : make windows happy (and be slightly more restrictive on platforms where sizeof(int) == 8) #

Patch Set 7 : explicit cast to actually make it an unsigned comparison #

Unified diffs Side-by-side diffs Delta from patch set Stats (+285 lines, -16 lines) Patch
M src/value-serializer.h View 1 2 chunks +11 lines, -0 lines 0 comments Download
M src/value-serializer.cc View 1 2 3 4 5 6 7 chunks +118 lines, -0 lines 0 comments Download
M test/unittests/value-serializer-unittest.cc View 1 2 3 4 4 chunks +156 lines, -16 lines 0 comments Download

Messages

Total messages: 17 (10 generated)
jbroman
4 years, 4 months ago (2016-08-12 19:28:57 UTC) #2
Camillo Bruni
LGTM https://codereview.chromium.org/2245753002/diff/80001/src/value-serializer.cc File src/value-serializer.cc (right): https://codereview.chromium.org/2245753002/diff/80001/src/value-serializer.cc#newcode202 src/value-serializer.cc:202: uint32_t utf8_length = api_string->Utf8Length(); performance nit: I'd prefer ...
4 years, 4 months ago (2016-08-14 15:10:49 UTC) #3
jbroman
https://codereview.chromium.org/2245753002/diff/80001/src/value-serializer.cc File src/value-serializer.cc (right): https://codereview.chromium.org/2245753002/diff/80001/src/value-serializer.cc#newcode202 src/value-serializer.cc:202: uint32_t utf8_length = api_string->Utf8Length(); On 2016/08/14 at 15:10:48, Camillo ...
4 years, 4 months ago (2016-08-15 01:33:52 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2245753002/100001
4 years, 4 months ago (2016-08-15 14:51:40 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2245753002/120001
4 years, 4 months ago (2016-08-15 14:54:11 UTC) #14
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 4 months ago (2016-08-15 15:26:45 UTC) #15
commit-bot: I haz the power
4 years, 4 months ago (2016-08-15 15:27:18 UTC) #17
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/c5701e166ed3eee6f731ff1ec8ccac3c8ff85192
Cr-Commit-Position: refs/heads/master@{#38636}

Powered by Google App Engine
This is Rietveld 408576698