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

Issue 135843008: Remove V8HiddenPropertyName (Closed)

Created:
6 years, 11 months ago by haraken
Modified:
6 years, 10 months ago
CC:
blink-reviews, abarth-chromium, adamk, rossberg, Nils Barth (inactive), kouhei (in TOK), kojih, arv+blink, jsbell+bindings_chromium.org, sof, marja+watch_chromium.org, dglazkov+blink, dominicc+watchlist_chromium.org, adamk+blink_chromium.org, Nate Chapin, watchdog-blink-watchlist_google.com, Inactive
Visibility:
Public.

Description

Remove V8HiddenPropertyName V8HiddenPropertyName is used as a thin wrapper for GetHiddenValue(name) and SetHiddenValue(name) in order to prefix the name with "WebCore::HiddenProperty::". This prefix is for avoiding naming conflicts with someone who sets hidden values as well. However, given that V8 binding is the only guy who sets the hidden values on DOM wrappers, there is no need to use the prefix. - By removing the prefix, we can remove all code about V8HiddenPropertyName. - By removing the prefix, we can slightly improve performance of GetHiddenValue() and SetHiddenValue() since we no longer need to prefix strings nor look up V8PerIsolateData to get cached, prefixed strings. (I don't know if the performance of GetHiddenValue()/SetHiddenValue() matters though.) Given the above, this CL removes V8HiddenPropertyName. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=165735

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Total comments: 1

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+130 lines, -292 lines) Patch
M Source/bindings/bindings.gypi View 1 2 3 4 1 chunk +0 lines, -2 lines 0 comments Download
M Source/bindings/scripts/code_generator_v8.pm View 1 2 3 4 5 9 chunks +8 lines, -9 lines 0 comments Download
M Source/bindings/tests/results/V8TestInterfaceCheckSecurity.cpp View 1 2 3 4 5 6 chunks +6 lines, -6 lines 0 comments Download
M Source/bindings/tests/results/V8TestInterfaceEventConstructor.cpp View 1 2 3 4 5 5 chunks +4 lines, -5 lines 0 comments Download
M Source/bindings/tests/results/V8TestObject.cpp View 1 2 3 4 5 7 chunks +7 lines, -8 lines 0 comments Download
M Source/bindings/tests/results/V8TestObjectPython.cpp View 1 2 3 4 5 4 chunks +4 lines, -5 lines 0 comments Download
M Source/bindings/v8/CustomElementConstructorBuilder.cpp View 1 2 3 4 5 5 chunks +10 lines, -11 lines 0 comments Download
M Source/bindings/v8/IDBBindingUtilities.cpp View 1 2 3 4 5 3 chunks +2 lines, -3 lines 0 comments Download
M Source/bindings/v8/ScriptController.cpp View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M Source/bindings/v8/ScriptState.cpp View 1 2 3 4 5 2 chunks +2 lines, -3 lines 0 comments Download
M Source/bindings/v8/V8AbstractEventListener.cpp View 1 2 3 4 5 4 chunks +5 lines, -6 lines 0 comments Download
M Source/bindings/v8/V8Binding.h View 1 2 3 4 5 1 chunk +8 lines, -1 line 0 comments Download
M Source/bindings/v8/V8Binding.cpp View 1 2 3 4 5 1 chunk +36 lines, -1 line 0 comments Download
M Source/bindings/v8/V8CustomElementLifecycleCallbacks.cpp View 1 2 3 4 5 2 chunks +2 lines, -3 lines 0 comments Download
M Source/bindings/v8/V8DOMWrapper.cpp View 1 chunk +0 lines, -1 line 0 comments Download
M Source/bindings/v8/V8ErrorHandler.cpp View 1 2 3 4 5 3 chunks +2 lines, -3 lines 0 comments Download
M Source/bindings/v8/V8EventListenerList.h View 1 2 3 4 5 5 chunks +5 lines, -8 lines 0 comments Download
D Source/bindings/v8/V8HiddenPropertyName.h View 1 chunk +0 lines, -84 lines 0 comments Download
D Source/bindings/v8/V8HiddenPropertyName.cpp View 1 chunk +0 lines, -79 lines 0 comments Download
M Source/bindings/v8/V8Initializer.cpp View 1 chunk +0 lines, -1 line 0 comments Download
M Source/bindings/v8/V8LazyEventListener.cpp View 1 2 3 4 5 3 chunks +2 lines, -3 lines 0 comments Download
M Source/bindings/v8/V8MutationCallback.cpp View 1 2 3 4 5 2 chunks +1 line, -2 lines 0 comments Download
M Source/bindings/v8/V8NodeFilterCondition.cpp View 1 2 3 4 5 2 chunks +1 line, -2 lines 0 comments Download
M Source/bindings/v8/V8PerIsolateData.h View 1 2 3 4 3 chunks +0 lines, -4 lines 0 comments Download
M Source/bindings/v8/V8PerIsolateData.cpp View 1 2 3 4 2 chunks +0 lines, -2 lines 0 comments Download
M Source/bindings/v8/V8WindowShell.cpp View 1 2 3 4 5 2 chunks +1 line, -2 lines 0 comments Download
M Source/bindings/v8/custom/V8CustomEventCustom.cpp View 1 2 3 4 5 4 chunks +4 lines, -5 lines 0 comments Download
M Source/bindings/v8/custom/V8ErrorEventCustom.cpp View 1 2 3 4 5 1 chunk +1 line, -3 lines 0 comments Download
M Source/bindings/v8/custom/V8HistoryCustom.cpp View 1 2 3 4 5 5 chunks +4 lines, -5 lines 0 comments Download
M Source/bindings/v8/custom/V8InjectedScriptHostCustom.cpp View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M Source/bindings/v8/custom/V8MessageChannelCustom.cpp View 1 2 3 4 5 2 chunks +2 lines, -3 lines 0 comments Download
M Source/bindings/v8/custom/V8MessageEventCustom.cpp View 1 2 3 4 5 3 chunks +3 lines, -4 lines 0 comments Download
M Source/bindings/v8/custom/V8PopStateEventCustom.cpp View 1 2 3 4 5 4 chunks +5 lines, -6 lines 0 comments Download
M Source/bindings/v8/custom/V8PromiseCustom.cpp View 1 2 3 4 5 3 chunks +2 lines, -3 lines 0 comments Download
M Source/bindings/v8/custom/V8WebGLRenderingContextCustom.cpp View 1 2 3 4 5 2 chunks +1 line, -2 lines 0 comments Download
M Source/bindings/v8/custom/V8WindowCustom.cpp View 1 2 3 4 5 3 chunks +2 lines, -5 lines 0 comments Download

Messages

Total messages: 29 (0 generated)
haraken
PTAL This CL includes https://codereview.chromium.org/140783007/, so please ignore the MIDI part in this CL.
6 years, 11 months ago (2014-01-17 07:51:08 UTC) #1
kouhei (in TOK)
On 2014/01/17 07:51:08, haraken wrote: > PTAL > > This CL includes https://codereview.chromium.org/140783007/, so please ...
6 years, 11 months ago (2014-01-17 07:56:23 UTC) #2
haraken
On 2014/01/17 07:56:23, kouhei wrote: > On 2014/01/17 07:51:08, haraken wrote: > > PTAL > ...
6 years, 11 months ago (2014-01-17 08:05:22 UTC) #3
haraken
On 2014/01/17 08:05:22, haraken wrote: > On 2014/01/17 07:56:23, kouhei wrote: > > On 2014/01/17 ...
6 years, 11 months ago (2014-01-17 12:15:06 UTC) #4
jochen (gone - plz use gerrit)
+dcarney
6 years, 11 months ago (2014-01-17 12:29:21 UTC) #5
dcarney
On 2014/01/17 12:29:21, jochen wrote: > +dcarney
6 years, 11 months ago (2014-01-17 12:46:42 UTC) #6
dcarney
instead of removing the cache, it might a good idea to use v8::Private instead and ...
6 years, 11 months ago (2014-01-17 12:48:20 UTC) #7
haraken
On 2014/01/17 12:48:20, dcarney wrote: > instead of removing the cache, it might a good ...
6 years, 11 months ago (2014-01-17 12:54:03 UTC) #8
dcarney
On 2014/01/17 12:54:03, haraken wrote: > On 2014/01/17 12:48:20, dcarney wrote: > > instead of ...
6 years, 11 months ago (2014-01-17 12:56:49 UTC) #9
abarth-chromium
v8::Private > SetHiddenValue Ideally we'd remove all callers of SetHiddenValue. That will let V8 simplify ...
6 years, 11 months ago (2014-01-18 08:45:47 UTC) #10
haraken
+rossberg > v8::Private > SetHiddenValue > > Ideally we'd remove all callers of SetHiddenValue. That ...
6 years, 11 months ago (2014-01-20 01:11:22 UTC) #11
rossberg1
On 20 January 2014 02:11, <haraken@chromium.org> wrote: >> v8::Private > SetHiddenValue > >> Ideally we'd ...
6 years, 11 months ago (2014-01-20 10:46:46 UTC) #12
haraken
> > @rossberg: Will it now make sense to use v8::Private in V8 bindings instead ...
6 years, 11 months ago (2014-01-20 10:56:33 UTC) #13
haraken
On 2014/01/20 10:56:33, haraken wrote: > > > @rossberg: Will it now make sense to ...
6 years, 11 months ago (2014-01-20 10:57:38 UTC) #14
haraken
ping on this? I guess that even if we replace GetHiddenValue/SetHiddenValue with v8::Private at some ...
6 years, 11 months ago (2014-01-24 05:59:48 UTC) #15
abarth-chromium
On 2014/01/24 05:59:48, haraken wrote: > So PTAL. You've listed 7 reviewers. Who would you ...
6 years, 11 months ago (2014-01-24 06:55:25 UTC) #16
haraken
On 2014/01/24 06:55:25, abarth wrote: > On 2014/01/24 05:59:48, haraken wrote: > > So PTAL. ...
6 years, 11 months ago (2014-01-24 06:56:35 UTC) #17
haraken
Dan: PTAL https://codereview.chromium.org/135843008/diff/310001/Source/bindings/v8/V8Binding.h File Source/bindings/v8/V8Binding.h (right): https://codereview.chromium.org/135843008/diff/310001/Source/bindings/v8/V8Binding.h#newcode690 Source/bindings/v8/V8Binding.h:690: bool deleteHiddenValue(v8::Handle<v8::Object>, v8::Handle<v8::String>); As Dan suggested offline, ...
6 years, 11 months ago (2014-01-24 09:11:32 UTC) #18
dcarney
I'd prefer if you removed the String argument and instead passed a const char * ...
6 years, 11 months ago (2014-01-24 09:17:28 UTC) #19
haraken
On 2014/01/24 09:17:28, dcarney wrote: > I'd prefer if you removed the String argument and ...
6 years, 11 months ago (2014-01-24 09:24:52 UTC) #20
dcarney
On 2014/01/24 09:24:52, haraken wrote: > On 2014/01/24 09:17:28, dcarney wrote: > > I'd prefer ...
6 years, 11 months ago (2014-01-24 09:34:37 UTC) #21
haraken
On 2014/01/24 09:34:37, dcarney wrote: > On 2014/01/24 09:24:52, haraken wrote: > > On 2014/01/24 ...
6 years, 11 months ago (2014-01-24 09:59:34 UTC) #22
dcarney
lgtm
6 years, 11 months ago (2014-01-24 10:06:43 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haraken@chromium.org/135843008/390001
6 years, 11 months ago (2014-01-24 10:07:45 UTC) #24
commit-bot: I haz the power
Change committed as 165735
6 years, 11 months ago (2014-01-24 13:23:42 UTC) #25
haraken
On 2014/01/24 13:23:42, I haz the power (commit-bot) wrote: > Change committed as 165735 dan, ...
6 years, 10 months ago (2014-01-30 00:46:09 UTC) #26
haraken
On 2014/01/30 00:46:09, haraken wrote: > On 2014/01/24 13:23:42, I haz the power (commit-bot) wrote: ...
6 years, 10 months ago (2014-01-31 00:03:25 UTC) #27
arv1
You can use v8::Private today but you would have to cache the symbol on the ...
6 years, 10 months ago (2014-01-31 00:09:20 UTC) #28
haraken
6 years, 10 months ago (2014-01-31 00:34:37 UTC) #29
Message was sent while issue was closed.
> You can use v8::Private today but you would have to cache the symbol on the
> blink side.
> 
> ES6 requires us to have a symbol registry that is shared between all Realms
> (globals) but we do not have a solution within sight for that.

I see, let me try.

Powered by Google App Engine
This is Rietveld 408576698