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

Issue 2228283002: Make a deserializing function (Closed)

Created:
4 years, 4 months ago by lkawai
Modified:
4 years, 4 months ago
Reviewers:
haraken, peria, bashi, Yuki
CC:
chromium-reviews, blink-reviews, blink-reviews-bindings_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make a deserializing function In the previous code, a conditional operator was used and {cpp_value} was evaluated twice in the success case. This CL adds a separate function in order to avoid evaluating it twice. BUG=607215 Committed: https://crrev.com/400793e57acc5f8b315a27caf44edc1a362d7afc Cr-Commit-Position: refs/heads/master@{#410995}

Patch Set 1 #

Total comments: 7

Patch Set 2 : addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -3 lines) Patch
M third_party/WebKit/Source/bindings/core/v8/GeneratedCodeHelper.h View 1 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/GeneratedCodeHelper.cpp View 1 2 chunks +8 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/scripts/v8_types.py View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestObject.cpp View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 23 (7 generated)
lkawai
PTAL
4 years, 4 months ago (2016-08-10 02:07:50 UTC) #2
Yuki
LGTM. https://codereview.chromium.org/2228283002/diff/1/third_party/WebKit/Source/bindings/core/v8/GeneratedCodeHelper.h File third_party/WebKit/Source/bindings/core/v8/GeneratedCodeHelper.h (right): https://codereview.chromium.org/2228283002/diff/1/third_party/WebKit/Source/bindings/core/v8/GeneratedCodeHelper.h#newcode14 third_party/WebKit/Source/bindings/core/v8/GeneratedCodeHelper.h:14: #include "bindings/core/v8/SerializedScriptValue.h" I'm not sure if it's possible ...
4 years, 4 months ago (2016-08-10 02:16:34 UTC) #3
peria
LGTM I'm not sure but is this the only place to evaluate methods twice in ...
4 years, 4 months ago (2016-08-10 02:19:01 UTC) #4
haraken
https://codereview.chromium.org/2228283002/diff/1/third_party/WebKit/Source/bindings/core/v8/GeneratedCodeHelper.h File third_party/WebKit/Source/bindings/core/v8/GeneratedCodeHelper.h (right): https://codereview.chromium.org/2228283002/diff/1/third_party/WebKit/Source/bindings/core/v8/GeneratedCodeHelper.h#newcode22 third_party/WebKit/Source/bindings/core/v8/GeneratedCodeHelper.h:22: CORE_EXPORT v8::Local<v8::Value> v8Deserialize(v8::Isolate*, PassRefPtr<SerializedScriptValue>); I'm getting confused about what ...
4 years, 4 months ago (2016-08-10 02:19:37 UTC) #5
Yuki
https://codereview.chromium.org/2228283002/diff/1/third_party/WebKit/Source/bindings/core/v8/GeneratedCodeHelper.h File third_party/WebKit/Source/bindings/core/v8/GeneratedCodeHelper.h (right): https://codereview.chromium.org/2228283002/diff/1/third_party/WebKit/Source/bindings/core/v8/GeneratedCodeHelper.h#newcode22 third_party/WebKit/Source/bindings/core/v8/GeneratedCodeHelper.h:22: CORE_EXPORT v8::Local<v8::Value> v8Deserialize(v8::Isolate*, PassRefPtr<SerializedScriptValue>); On 2016/08/10 02:19:36, haraken wrote: ...
4 years, 4 months ago (2016-08-10 02:30:16 UTC) #6
peria
https://codereview.chromium.org/2228283002/diff/1/third_party/WebKit/Source/bindings/core/v8/GeneratedCodeHelper.h File third_party/WebKit/Source/bindings/core/v8/GeneratedCodeHelper.h (right): https://codereview.chromium.org/2228283002/diff/1/third_party/WebKit/Source/bindings/core/v8/GeneratedCodeHelper.h#newcode22 third_party/WebKit/Source/bindings/core/v8/GeneratedCodeHelper.h:22: CORE_EXPORT v8::Local<v8::Value> v8Deserialize(v8::Isolate*, PassRefPtr<SerializedScriptValue>); On 2016/08/10 02:19:36, haraken wrote: ...
4 years, 4 months ago (2016-08-10 02:31:43 UTC) #7
Yuki
https://codereview.chromium.org/2228283002/diff/1/third_party/WebKit/Source/bindings/core/v8/GeneratedCodeHelper.h File third_party/WebKit/Source/bindings/core/v8/GeneratedCodeHelper.h (right): https://codereview.chromium.org/2228283002/diff/1/third_party/WebKit/Source/bindings/core/v8/GeneratedCodeHelper.h#newcode22 third_party/WebKit/Source/bindings/core/v8/GeneratedCodeHelper.h:22: CORE_EXPORT v8::Local<v8::Value> v8Deserialize(v8::Isolate*, PassRefPtr<SerializedScriptValue>); Note that toV8() is ideally ...
4 years, 4 months ago (2016-08-10 02:37:32 UTC) #8
haraken
On 2016/08/10 02:30:16, Yuki wrote: > https://codereview.chromium.org/2228283002/diff/1/third_party/WebKit/Source/bindings/core/v8/GeneratedCodeHelper.h > File third_party/WebKit/Source/bindings/core/v8/GeneratedCodeHelper.h (right): > > https://codereview.chromium.org/2228283002/diff/1/third_party/WebKit/Source/bindings/core/v8/GeneratedCodeHelper.h#newcode22 > ...
4 years, 4 months ago (2016-08-10 02:38:26 UTC) #9
haraken
On 2016/08/10 02:38:26, haraken wrote: > On 2016/08/10 02:30:16, Yuki wrote: > > > https://codereview.chromium.org/2228283002/diff/1/third_party/WebKit/Source/bindings/core/v8/GeneratedCodeHelper.h ...
4 years, 4 months ago (2016-08-10 02:40:50 UTC) #10
Yuki
On 2016/08/10 02:40:50, haraken wrote: > FWIW, we have v8StringOrNull() in V8Binding.h. And it's used ...
4 years, 4 months ago (2016-08-10 02:46:17 UTC) #11
lkawai
PTAL
4 years, 4 months ago (2016-08-10 05:26:26 UTC) #12
lkawai
PTAL https://codereview.chromium.org/2228283002/diff/1/third_party/WebKit/Source/bindings/core/v8/GeneratedCodeHelper.h File third_party/WebKit/Source/bindings/core/v8/GeneratedCodeHelper.h (right): https://codereview.chromium.org/2228283002/diff/1/third_party/WebKit/Source/bindings/core/v8/GeneratedCodeHelper.h#newcode14 third_party/WebKit/Source/bindings/core/v8/GeneratedCodeHelper.h:14: #include "bindings/core/v8/SerializedScriptValue.h" On 2016/08/10 02:16:34, Yuki wrote: > ...
4 years, 4 months ago (2016-08-10 05:28:31 UTC) #15
haraken
On 2016/08/10 02:46:17, Yuki wrote: > On 2016/08/10 02:40:50, haraken wrote: > > FWIW, we ...
4 years, 4 months ago (2016-08-10 05:31:27 UTC) #16
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/2228283002/20001
4 years, 4 months ago (2016-08-10 05:32:32 UTC) #20
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 4 months ago (2016-08-10 07:37:02 UTC) #21
commit-bot: I haz the power
4 years, 4 months ago (2016-08-10 07:39:02 UTC) #23
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/400793e57acc5f8b315a27caf44edc1a362d7afc
Cr-Commit-Position: refs/heads/master@{#410995}

Powered by Google App Engine
This is Rietveld 408576698