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

Issue 400493005: Make vector conversion more general in V8Bindings (Closed)

Created:
6 years, 5 months ago by gavinp
Modified:
6 years, 5 months ago
Reviewers:
haraken, tasak, yhirano
CC:
blink-reviews, blink-reviews-bindings_chromium.org, arv+blink, abarth-chromium
Project:
blink
Visibility:
Public.

Description

Make vector conversion more general in V8Bindings toV8Value() could not convert vectors of basic types; by removing toV8ArrayNoInline() and always calling v8Array(), we instead pass back through V8ValueTraits<> for each element, and as a result can convert arrays of basic types through the explicit specializations of that class. R=kentaro@chromium.org,yhirano@chromium.org BUG=None Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=178724

Patch Set 1 #

Patch Set 2 : closer #

Patch Set 3 : comments and remove unneeded changes #

Patch Set 4 : typo #

Patch Set 5 : finished self review, PTAL #

Total comments: 4

Patch Set 6 : rebase only #

Patch Set 7 : narrower #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+119 lines, -37 lines) Patch
M Source/bindings/core/v8/V8Binding.h View 1 2 3 4 5 6 3 chunks +15 lines, -37 lines 2 comments Download
M Source/bindings/core/v8/V8BindingTest.cpp View 1 2 3 4 5 2 chunks +104 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
gavinp
Hara-san, Hirano-san, can you each please take a look at this patch? This is my ...
6 years, 5 months ago (2014-07-20 04:15:18 UTC) #1
haraken
+tasak Looks good but have one question. https://codereview.chromium.org/400493005/diff/70001/Source/bindings/core/v8/V8Binding.h File Source/bindings/core/v8/V8Binding.h (right): https://codereview.chromium.org/400493005/diff/70001/Source/bindings/core/v8/V8Binding.h#newcode263 Source/bindings/core/v8/V8Binding.h:263: // should ...
6 years, 5 months ago (2014-07-20 04:50:46 UTC) #2
gavinp
https://codereview.chromium.org/400493005/diff/70001/Source/bindings/core/v8/V8Binding.h File Source/bindings/core/v8/V8Binding.h (right): https://codereview.chromium.org/400493005/diff/70001/Source/bindings/core/v8/V8Binding.h#newcode263 Source/bindings/core/v8/V8Binding.h:263: // should also have an explicit specialization of toV8NoInline<>() ...
6 years, 5 months ago (2014-07-20 05:11:16 UTC) #3
haraken
https://codereview.chromium.org/400493005/diff/70001/Source/bindings/core/v8/V8Binding.h File Source/bindings/core/v8/V8Binding.h (right): https://codereview.chromium.org/400493005/diff/70001/Source/bindings/core/v8/V8Binding.h#newcode263 Source/bindings/core/v8/V8Binding.h:263: // should also have an explicit specialization of toV8NoInline<>() ...
6 years, 5 months ago (2014-07-20 05:16:36 UTC) #4
yhirano
On 2014/07/20 05:16:36, haraken wrote: > https://codereview.chromium.org/400493005/diff/70001/Source/bindings/core/v8/V8Binding.h > File Source/bindings/core/v8/V8Binding.h (right): > > https://codereview.chromium.org/400493005/diff/70001/Source/bindings/core/v8/V8Binding.h#newcode263 > ...
6 years, 5 months ago (2014-07-22 01:46:33 UTC) #5
gavinp
On 2014/07/22 01:46:33, yhirano wrote: > > Either of the following look reasonable to me: ...
6 years, 5 months ago (2014-07-22 02:16:47 UTC) #6
gavinp
Hirano-san, Hara-san, Here's the latest version of this patch. I kept toV8NoInline() in the end, ...
6 years, 5 months ago (2014-07-22 08:40:15 UTC) #7
haraken
On 2014/07/22 08:40:15, gavinp wrote: > Hirano-san, Hara-san, > > Here's the latest version of ...
6 years, 5 months ago (2014-07-22 08:57:07 UTC) #8
yhirano
https://codereview.chromium.org/400493005/diff/110001/Source/bindings/core/v8/V8Binding.h File Source/bindings/core/v8/V8Binding.h (right): https://codereview.chromium.org/400493005/diff/110001/Source/bindings/core/v8/V8Binding.h#newcode406 Source/bindings/core/v8/V8Binding.h:406: struct V8ValueTraits<WTF::Vector<T, inlineCapacity, Allocator> > { Can you tell ...
6 years, 5 months ago (2014-07-23 01:51:52 UTC) #9
gavinp
https://codereview.chromium.org/400493005/diff/110001/Source/bindings/core/v8/V8Binding.h File Source/bindings/core/v8/V8Binding.h (right): https://codereview.chromium.org/400493005/diff/110001/Source/bindings/core/v8/V8Binding.h#newcode406 Source/bindings/core/v8/V8Binding.h:406: struct V8ValueTraits<WTF::Vector<T, inlineCapacity, Allocator> > { On 2014/07/23 01:51:52, ...
6 years, 5 months ago (2014-07-23 01:57:24 UTC) #10
yhirano
Thanks, lgtm
6 years, 5 months ago (2014-07-23 02:24:32 UTC) #11
haraken
LGTM2
6 years, 5 months ago (2014-07-23 02:25:00 UTC) #12
gavinp
The CQ bit was checked by gavinp@chromium.org
6 years, 5 months ago (2014-07-23 02:45:15 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gavinp@chromium.org/400493005/110001
6 years, 5 months ago (2014-07-23 02:46:03 UTC) #14
commit-bot: I haz the power
6 years, 5 months ago (2014-07-23 03:32:18 UTC) #15
Message was sent while issue was closed.
Change committed as 178724

Powered by Google App Engine
This is Rietveld 408576698