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

Issue 2304563004: Take advantage of fast properties in ValueSerializer when JSObject has them. (Closed)

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

Description

Take advantage of fast properties in ValueSerializer when JSObject has them. This yields a ~20% serialization time improvement on typical JSON-esque data. BUG=chromium:148757 Committed: https://crrev.com/11f74547f8eba199bbbb2dc46213bc16ced47cf5 Cr-Commit-Position: refs/heads/master@{#39221}

Patch Set 1 #

Total comments: 9

Patch Set 2 : cbruni comments #

Total comments: 4

Patch Set 3 : cbruni review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -5 lines) Patch
M src/value-serializer.h View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M src/value-serializer.cc View 1 2 4 chunks +50 lines, -4 lines 0 comments Download

Messages

Total messages: 25 (16 generated)
jbroman
First fast path. Pretty close match to how json-stringifier does it.
4 years, 3 months ago (2016-09-01 20:23:52 UTC) #6
Camillo Bruni
back from holidays for a couple of days :) https://codereview.chromium.org/2304563004/diff/1/src/value-serializer.cc File src/value-serializer.cc (right): https://codereview.chromium.org/2304563004/diff/1/src/value-serializer.cc#newcode378 src/value-serializer.cc:378: ...
4 years, 3 months ago (2016-09-01 20:50:33 UTC) #8
Jakob Kummerow
https://codereview.chromium.org/2304563004/diff/1/src/value-serializer.cc File src/value-serializer.cc (right): https://codereview.chromium.org/2304563004/diff/1/src/value-serializer.cc#newcode380 src/value-serializer.cc:380: object->HasFastProperties() && object->elements()->length() == 0; On 2016/09/01 20:50:32, Camillo ...
4 years, 3 months ago (2016-09-02 10:44:23 UTC) #9
jbroman
https://codereview.chromium.org/2304563004/diff/1/src/value-serializer.cc File src/value-serializer.cc (right): https://codereview.chromium.org/2304563004/diff/1/src/value-serializer.cc#newcode378 src/value-serializer.cc:378: DCHECK(object->map()->instance_type() > LAST_CUSTOM_ELEMENTS_RECEIVER); On 2016/09/01 at 20:50:32, Camillo Bruni ...
4 years, 3 months ago (2016-09-02 15:31:42 UTC) #12
Camillo Bruni
lgtm with nits https://codereview.chromium.org/2304563004/diff/20001/src/value-serializer.cc File src/value-serializer.cc (right): https://codereview.chromium.org/2304563004/diff/20001/src/value-serializer.cc#newcode385 src/value-serializer.cc:385: DCHECK(!object->HasNamedInterceptor()); nit: you can replace the ...
4 years, 3 months ago (2016-09-05 16:49:41 UTC) #15
jbroman
https://codereview.chromium.org/2304563004/diff/20001/src/value-serializer.cc File src/value-serializer.cc (right): https://codereview.chromium.org/2304563004/diff/20001/src/value-serializer.cc#newcode385 src/value-serializer.cc:385: DCHECK(!object->HasNamedInterceptor()); On 2016/09/05 at 16:49:41, Camillo Bruni wrote: > ...
4 years, 3 months ago (2016-09-06 17:37:50 UTC) #18
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/2304563004/40001
4 years, 3 months ago (2016-09-06 17:38:08 UTC) #22
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 3 months ago (2016-09-06 18:05:28 UTC) #23
commit-bot: I haz the power
4 years, 3 months ago (2016-09-06 18:06:00 UTC) #25
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/11f74547f8eba199bbbb2dc46213bc16ced47cf5
Cr-Commit-Position: refs/heads/master@{#39221}

Powered by Google App Engine
This is Rietveld 408576698