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

Issue 654473002: JS binding: remove redundant type check in attr setter for TypeChecking interface (Closed)

Created:
6 years, 2 months ago by yunchao
Modified:
6 years, 2 months ago
Reviewers:
haraken, Jens Widell
CC:
blink-reviews, blink-reviews-bindings_chromium.org, arv+blink
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

JS binding: remove redundant type check in attr setter for TypeChecking interface A [TypeChecking=interface] attribute has been checked already in its setter. If it is not nullable, just call toImpl instead of toImplWithTypeCheck to avoid redundant type check. This change can improve performance and save power. BUG= Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=183717

Patch Set 1 #

Patch Set 2 : edge case: nullable attributes #

Patch Set 3 : code rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -7 lines) Patch
M Source/bindings/scripts/v8_attributes.py View 1 2 chunks +6 lines, -1 line 0 comments Download
M Source/bindings/tests/results/core/V8TestInterface.cpp View 4 chunks +4 lines, -4 lines 0 comments Download
M Source/bindings/tests/results/core/V8TestObject.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/tests/results/modules/V8TestInterface5.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 13 (2 generated)
yunchao
A fix like https://codereview.chromium.org/608853008/. PTAL. Thanks!
6 years, 2 months ago (2014-10-13 07:56:42 UTC) #2
Jens Widell
LGTM AFAICT, this only affects CanvasRenderingContext2D.currentTransform and AudioBufferSourceNode.buffer. Since this just extends use of a ...
6 years, 2 months ago (2014-10-13 10:40:24 UTC) #3
haraken
On 2014/10/13 10:40:24, Jens Widell wrote: > LGTM > > AFAICT, this only affects CanvasRenderingContext2D.currentTransform ...
6 years, 2 months ago (2014-10-13 15:06:41 UTC) #4
yunchao
On 2014/10/13 15:06:41, haraken wrote: > On 2014/10/13 10:40:24, Jens Widell wrote: > > LGTM ...
6 years, 2 months ago (2014-10-14 02:49:56 UTC) #5
Jens Widell
On 2014/10/14 02:49:56, yunchao wrote: > On 2014/10/13 15:06:41, haraken wrote: > > On 2014/10/13 ...
6 years, 2 months ago (2014-10-14 06:41:09 UTC) #6
yunchao
On 2014/10/14 06:41:09, Jens Widell wrote: > On 2014/10/14 02:49:56, yunchao wrote: > > On ...
6 years, 2 months ago (2014-10-14 07:31:12 UTC) #7
Jens Widell
On 2014/10/14 07:31:12, yunchao wrote: > On 2014/10/14 06:41:09, Jens Widell wrote: > > Also, ...
6 years, 2 months ago (2014-10-14 07:43:18 UTC) #8
yunchao
On 2014/10/14 07:43:18, Jens Widell wrote: > I of course agree that we should generate ...
6 years, 2 months ago (2014-10-14 07:47:54 UTC) #9
yunchao
Hi, jl@ and haraken@, if no objection, I will commit this change tomorrow.
6 years, 2 months ago (2014-10-14 09:30:06 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/654473002/200001
6 years, 2 months ago (2014-10-15 02:49:32 UTC) #12
commit-bot: I haz the power
6 years, 2 months ago (2014-10-15 04:27:48 UTC) #13
Message was sent while issue was closed.
Committed patchset #3 (id:200001) as 183717

Powered by Google App Engine
This is Rietveld 408576698