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

Issue 238723009: Implement V8ValueTraits<T>::toV8Value conversion functions (Closed)

Created:
6 years, 8 months ago by yhirano
Modified:
6 years, 8 months ago
Reviewers:
haraken
CC:
blink-reviews, Nils Barth (inactive), arv+blink, jsbell+bindings_chromium.org, sof, kouhei+bindings_chromium.org, abarth-chromium, marja+watch_chromium.org, adamk+blink_chromium.org, Nate Chapin, Inactive
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Implement V8ValueTraits<T>::toV8Value conversion functions Add toV8Value functions to V8ValueTraits<T>. It converts many types to v8::Handle<V8::Value>. Make ScriptPromiseResolver and ScriptPromiseResolverWithContext use them. BUG=352552 R=haraken Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=171932

Patch Set 1 #

Total comments: 5

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 2

Patch Set 5 : #

Patch Set 6 : #

Total comments: 4

Patch Set 7 : Add a V8ValueTraits specialization #

Patch Set 8 : #

Patch Set 9 : #

Patch Set 10 : #

Patch Set 11 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+204 lines, -112 lines) Patch
M Source/bindings/v8/ScriptPromiseResolver.h View 1 2 3 4 5 6 7 8 9 10 4 chunks +82 lines, -78 lines 0 comments Download
M Source/bindings/v8/ScriptPromiseResolver.cpp View 1 1 chunk +0 lines, -12 lines 0 comments Download
M Source/bindings/v8/ScriptPromiseResolverWithContext.h View 1 2 3 4 5 6 7 8 9 10 4 chunks +25 lines, -13 lines 0 comments Download
M Source/bindings/v8/V8Binding.h View 1 2 3 4 5 6 7 8 9 10 9 chunks +97 lines, -9 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
yhirano
Can you take a look at this CL? This change was originally included in https://codereview.chromium.org/236673003/ ...
6 years, 8 months ago (2014-04-17 03:32:09 UTC) #1
yhirano
On 2014/04/17 03:32:09, yhirano wrote: > Can you take a look at this CL? > ...
6 years, 8 months ago (2014-04-17 03:36:43 UTC) #2
haraken
https://codereview.chromium.org/238723009/diff/1/Source/bindings/v8/ScriptPromiseResolverWithContext.h File Source/bindings/v8/ScriptPromiseResolverWithContext.h (right): https://codereview.chromium.org/238723009/diff/1/Source/bindings/v8/ScriptPromiseResolverWithContext.h#newcode54 Source/bindings/v8/ScriptPromiseResolverWithContext.h:54: m_value.set(m_scriptState->isolate(), toV8(value)); I'm not sure if it's a good ...
6 years, 8 months ago (2014-04-17 03:46:23 UTC) #3
haraken
> If you feel that writing v8::Integer::New(value) in all call sites of > resolve/reject, Correction: ...
6 years, 8 months ago (2014-04-17 03:47:37 UTC) #4
yhirano
https://codereview.chromium.org/238723009/diff/1/Source/bindings/v8/ScriptPromiseResolverWithContext.h File Source/bindings/v8/ScriptPromiseResolverWithContext.h (right): https://codereview.chromium.org/238723009/diff/1/Source/bindings/v8/ScriptPromiseResolverWithContext.h#newcode54 Source/bindings/v8/ScriptPromiseResolverWithContext.h:54: m_value.set(m_scriptState->isolate(), toV8(value)); On 2014/04/17 03:46:23, haraken wrote: > > ...
6 years, 8 months ago (2014-04-17 03:52:24 UTC) #5
haraken
On 2014/04/17 03:52:24, yhirano wrote: > https://codereview.chromium.org/238723009/diff/1/Source/bindings/v8/ScriptPromiseResolverWithContext.h > File Source/bindings/v8/ScriptPromiseResolverWithContext.h (right): > > https://codereview.chromium.org/238723009/diff/1/Source/bindings/v8/ScriptPromiseResolverWithContext.h#newcode54 > ...
6 years, 8 months ago (2014-04-17 04:14:58 UTC) #6
haraken
On 2014/04/17 04:14:58, haraken wrote: > On 2014/04/17 03:52:24, yhirano wrote: > > > https://codereview.chromium.org/238723009/diff/1/Source/bindings/v8/ScriptPromiseResolverWithContext.h ...
6 years, 8 months ago (2014-04-17 06:10:49 UTC) #7
yhirano
Done. V8ValueTraits<T>::arrayValue and V8ValueTraits<T>::toV8Value are very similar, so we may be able to unify them, ...
6 years, 8 months ago (2014-04-17 11:23:01 UTC) #8
haraken
This looks much better. > V8ValueTraits<T>::arrayValue and V8ValueTraits<T>::toV8Value are very similar, > so we may ...
6 years, 8 months ago (2014-04-17 12:39:05 UTC) #9
haraken
https://codereview.chromium.org/238723009/diff/50001/Source/bindings/v8/V8Binding.h File Source/bindings/v8/V8Binding.h (right): https://codereview.chromium.org/238723009/diff/50001/Source/bindings/v8/V8Binding.h#newcode272 Source/bindings/v8/V8Binding.h:272: // set false otherwise. I'm not sure if we ...
6 years, 8 months ago (2014-04-17 12:42:27 UTC) #10
yhirano
https://codereview.chromium.org/238723009/diff/50001/Source/bindings/v8/V8Binding.h File Source/bindings/v8/V8Binding.h (right): https://codereview.chromium.org/238723009/diff/50001/Source/bindings/v8/V8Binding.h#newcode272 Source/bindings/v8/V8Binding.h:272: // set false otherwise. On 2014/04/17 12:42:27, haraken wrote: ...
6 years, 8 months ago (2014-04-18 01:09:42 UTC) #11
yhirano
At PS6 I reduced idential definitions by introducing V8ValueTraitsToV8ValueIsIdentialToArrayJsValue. I also introduced ToV8ValueHelper in V8Binding.h ...
6 years, 8 months ago (2014-04-18 03:11:40 UTC) #12
haraken
Hmm, actually I don't quite understand why this CL becomes such complicated. Now you have ...
6 years, 8 months ago (2014-04-18 03:59:58 UTC) #13
yhirano
Discussed with haraken, we agreed the following. - Use V8ValueTraits for types that don't need ...
6 years, 8 months ago (2014-04-18 06:31:25 UTC) #14
haraken
Discussed offline. It's a shame that we have to write a lot of specialization of ...
6 years, 8 months ago (2014-04-18 07:07:23 UTC) #15
yhirano
Thanks. The renaming is done.
6 years, 8 months ago (2014-04-18 07:17:37 UTC) #16
yhirano
The CQ bit was checked by yhirano@chromium.org
6 years, 8 months ago (2014-04-18 07:17:47 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yhirano@chromium.org/238723009/190001
6 years, 8 months ago (2014-04-18 07:17:55 UTC) #18
commit-bot: I haz the power
6 years, 8 months ago (2014-04-18 08:19:09 UTC) #19
Message was sent while issue was closed.
Change committed as 171932

Powered by Google App Engine
This is Rietveld 408576698