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

Issue 2643723010: [d8] Use ValueSerializer for postMessage (instead of ad-hoc serializer) (Closed)

Created:
3 years, 11 months ago by binji
Modified:
3 years, 10 months ago
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[d8] Use ValueSerializer for postMessage (instead of ad-hoc serializer) Review-Url: https://codereview.chromium.org/2643723010 Cr-Commit-Position: refs/heads/master@{#42749} Committed: https://chromium.googlesource.com/v8/v8/+/966355585bb3e6e21c063c2b670045f5a75e5aa5

Patch Set 1 #

Patch Set 2 : starting to work on switching to value serializer #

Total comments: 15

Patch Set 3 : fixes #

Patch Set 4 : Exit(1) #

Total comments: 8

Patch Set 5 : check value serializer allocation #

Patch Set 6 : check for OOM and throw #

Patch Set 7 : fix #

Total comments: 6

Patch Set 8 : fix comments #

Patch Set 9 : forgot hash_combine #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+389 lines, -474 lines) Patch
M include/v8.h View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M src/d8.h View 1 2 3 4 5 6 7 8 5 chunks +53 lines, -56 lines 0 comments Download
M src/d8.cc View 1 2 3 4 5 6 7 13 chunks +222 lines, -358 lines 0 comments Download
M src/messages.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M src/value-serializer.h View 1 2 3 4 5 3 chunks +5 lines, -2 lines 0 comments Download
M src/value-serializer.cc View 1 2 3 4 5 6 7 20 chunks +68 lines, -36 lines 0 comments Download
M test/mjsunit/d8-worker.js View 1 2 3 chunks +13 lines, -3 lines 0 comments Download
M test/mjsunit/d8-worker-sharedarraybuffer.js View 1 3 chunks +12 lines, -13 lines 0 comments Download
M test/mjsunit/harmony/futex.js View 1 2 3 4 4 chunks +4 lines, -4 lines 0 comments Download
M test/mjsunit/regress/regress-crbug-514081.js View 1 2 1 chunk +7 lines, -2 lines 1 comment Download

Messages

Total messages: 43 (26 generated)
binji
3 years, 11 months ago (2017-01-24 03:49:48 UTC) #4
jbroman
Just a few initial comments; I can have a closer look at the use of ...
3 years, 11 months ago (2017-01-24 18:53:43 UTC) #7
binji
https://codereview.chromium.org/2643723010/diff/20001/src/d8.cc File src/d8.cc (right): https://codereview.chromium.org/2643723010/diff/20001/src/d8.cc#newcode65 src/d8.cc:65: struct hash<v8::SharedArrayBuffer::Contents> { On 2017/01/24 18:53:43, jbroman wrote: > ...
3 years, 11 months ago (2017-01-25 00:31:36 UTC) #8
jbroman
https://codereview.chromium.org/2643723010/diff/20001/src/d8.cc File src/d8.cc (right): https://codereview.chromium.org/2643723010/diff/20001/src/d8.cc#newcode1176 src/d8.cc:1176: args.Length() >= 2 ? args[1] : Local<Value>::Cast(Undefined(isolate)); On 2017/01/25 ...
3 years, 11 months ago (2017-01-25 16:34:54 UTC) #13
Camillo Bruni
https://codereview.chromium.org/2643723010/diff/60001/src/d8.cc File src/d8.cc (right): https://codereview.chromium.org/2643723010/diff/60001/src/d8.cc#newcode2578 src/d8.cc:2578: if (transfer_array->Get(context, i).ToLocal(&element)) { I think you can avoid ...
3 years, 11 months ago (2017-01-25 19:06:12 UTC) #14
binji
https://codereview.chromium.org/2643723010/diff/60001/src/d8.cc File src/d8.cc (right): https://codereview.chromium.org/2643723010/diff/60001/src/d8.cc#newcode2563 src/d8.cc:2563: Shell::Exit(1); On 2017/01/25 16:34:54, jbroman wrote: > On 2017/01/25 ...
3 years, 11 months ago (2017-01-26 00:48:39 UTC) #17
Camillo Bruni
I'm not that familiar with all C++ 11, jbroman is definitely more confident than I ...
3 years, 11 months ago (2017-01-26 20:40:14 UTC) #28
jbroman
https://codereview.chromium.org/2643723010/diff/60001/src/d8.cc File src/d8.cc (right): https://codereview.chromium.org/2643723010/diff/60001/src/d8.cc#newcode2563 src/d8.cc:2563: Shell::Exit(1); On 2017/01/26 at 00:48:39, binji wrote: > On ...
3 years, 11 months ago (2017-01-26 21:03:18 UTC) #29
binji
On 2017/01/26 21:03:18, jbroman wrote: > https://codereview.chromium.org/2643723010/diff/60001/src/d8.cc > File src/d8.cc (right): > > https://codereview.chromium.org/2643723010/diff/60001/src/d8.cc#newcode2563 > ...
3 years, 10 months ago (2017-01-26 21:12:58 UTC) #30
jbroman
ok lgtm https://codereview.chromium.org/2643723010/diff/120001/src/d8.cc File src/d8.cc (right): https://codereview.chromium.org/2643723010/diff/120001/src/d8.cc#newcode2692 src/d8.cc:2692: return std::unique_ptr<SerializationData>(); nit: Dunno about v8, but ...
3 years, 10 months ago (2017-01-26 21:53:03 UTC) #31
binji
https://codereview.chromium.org/2643723010/diff/120001/src/d8.cc File src/d8.cc (right): https://codereview.chromium.org/2643723010/diff/120001/src/d8.cc#newcode2692 src/d8.cc:2692: return std::unique_ptr<SerializationData>(); On 2017/01/26 21:53:03, jbroman wrote: > nit: ...
3 years, 10 months ago (2017-01-27 19:33:22 UTC) #32
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/2643723010/160001
3 years, 10 months ago (2017-01-27 19:34:12 UTC) #35
commit-bot: I haz the power
Committed patchset #9 (id:160001) as https://chromium.googlesource.com/v8/v8/+/966355585bb3e6e21c063c2b670045f5a75e5aa5
3 years, 10 months ago (2017-01-27 20:15:44 UTC) #38
Michael Achenbach
A revert of this CL (patchset #9 id:160001) has been created in https://codereview.chromium.org/2657403002/ by machenbach@chromium.org. ...
3 years, 10 months ago (2017-01-28 11:27:12 UTC) #39
Michael Achenbach
On 2017/01/28 11:27:12, Michael Achenbach wrote: > A revert of this CL (patchset #9 id:160001) ...
3 years, 10 months ago (2017-01-28 11:46:55 UTC) #40
Michael Achenbach
https://codereview.chromium.org/2643723010/diff/160001/test/mjsunit/regress/regress-crbug-514081.js File test/mjsunit/regress/regress-crbug-514081.js (right): https://codereview.chromium.org/2643723010/diff/160001/test/mjsunit/regress/regress-crbug-514081.js#newcode9 test/mjsunit/regress/regress-crbug-514081.js:9: var ab = new ArrayBuffer(2147483648); Still seeing flakes of ...
3 years, 10 months ago (2017-02-07 10:17:28 UTC) #42
binji
3 years, 10 months ago (2017-02-07 18:08:25 UTC) #43
Message was sent while issue was closed.
On 2017/02/07 10:17:28, Michael Achenbach wrote:
>
https://codereview.chromium.org/2643723010/diff/160001/test/mjsunit/regress/r...
> File test/mjsunit/regress/regress-crbug-514081.js (right):
> 
>
https://codereview.chromium.org/2643723010/diff/160001/test/mjsunit/regress/r...
> test/mjsunit/regress/regress-crbug-514081.js:9: var ab = new
> ArrayBuffer(2147483648);
> Still seeing flakes of this on windows, e.g.:
>
https://build.chromium.org/p/client.v8/builders/V8%20Win64/builds/15656/steps...
> 
> Either passes fast or times out. Could you make this more deterministic?
> Creating a too large array buffer might interfere with other test cases using
> too much RAM in the same time. Also, the exceptions seem to be deliberately
> non-deterministic here. You can't end up getting both, right?
> 
> Could we mock out the memory limits here with a d8 flag passed only in this
> test?

I'll take a look.

Powered by Google App Engine
This is Rietveld 408576698