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

Issue 2274693002: Add an experimental public API for value serialization. (Closed)

Created:
4 years, 4 months ago by jbroman
Modified:
4 years, 3 months ago
CC:
v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Add an experimental public API for value serialization. Suitably scary warnings attached, as this will yet evolve (notably to handle host objects, which are not currently handled). Unit tests adjusted to use the public version of ValueSerializer, eliminating any need they have to access v8::internal. With this, Blink can begin using this code experimentally behind a flag as it develops. BUG=chromium:148757 Committed: https://crrev.com/58cac6501f6b17d9cc8fb84ce65e7c89416dd9af Cr-Commit-Position: refs/heads/master@{#38915}

Patch Set 1 #

Patch Set 2 : explicitly manage the pointer rather than using std::unique_ptr, to deal with C4521 (Windows) #

Total comments: 8

Patch Set 3 : review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+224 lines, -48 lines) Patch
M include/v8.h View 1 2 1 chunk +85 lines, -0 lines 0 comments Download
M src/api.cc View 1 2 3 chunks +97 lines, -0 lines 0 comments Download
M src/counters.h View 1 chunk +3 lines, -1 line 0 comments Download
M src/value-serializer.h View 1 chunk +7 lines, -0 lines 0 comments Download
M test/unittests/value-serializer-unittest.cc View 3 chunks +32 lines, -47 lines 0 comments Download

Messages

Total messages: 25 (16 generated)
jbroman
PS1 used unique_ptr for the private data (i::ValueSerializer, etc.), but unlike Chromium, V8 doesn't suppress ...
4 years, 4 months ago (2016-08-23 20:37:15 UTC) #10
Jakob Kummerow
Looks good, but I see a chicken-and-egg problem around private_->supports_legacy_wire_format. https://codereview.chromium.org/2274693002/diff/20001/src/api.cc File src/api.cc (right): https://codereview.chromium.org/2274693002/diff/20001/src/api.cc#newcode2851 ...
4 years, 4 months ago (2016-08-24 17:41:04 UTC) #11
jbroman
PTAL. https://codereview.chromium.org/2274693002/diff/20001/src/api.cc File src/api.cc (right): https://codereview.chromium.org/2274693002/diff/20001/src/api.cc#newcode2851 src/api.cc:2851: CHECK(private_); On 2016/08/24 at 17:41:04, Jakob wrote: > ...
4 years, 4 months ago (2016-08-24 21:26:36 UTC) #14
Jakob Kummerow
lgtm
4 years, 3 months ago (2016-08-25 08:29:17 UTC) #17
jbroman
+jochen for include/
4 years, 3 months ago (2016-08-25 14:11:21 UTC) #19
jochen (gone - plz use gerrit)
lgtm
4 years, 3 months ago (2016-08-25 14:42:43 UTC) #20
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/2274693002/40001
4 years, 3 months ago (2016-08-25 15:56:13 UTC) #22
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 3 months ago (2016-08-25 15:59:54 UTC) #23
commit-bot: I haz the power
4 years, 3 months ago (2016-08-25 16:00:38 UTC) #25
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/58cac6501f6b17d9cc8fb84ce65e7c89416dd9af
Cr-Commit-Position: refs/heads/master@{#38915}

Powered by Google App Engine
This is Rietveld 408576698