Chromium Code Reviews
Help | Chromium Project | Gerrit Changes | Sign in
(51)

Issue 1180023002: Inline the only callers of TypedArrayBase::{setRange,zeroRange} (Closed)

Created:
4 years, 10 months ago by adamk
Modified:
4 years, 10 months ago
CC:
blink-reviews, blink-reviews-dom_chromium.org, blink-reviews-wtf_chromium.org, dglazkov+blink, eae+blinkwatch, Mikhail, rwlbuis, sof
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Inline the only callers of TypedArrayBase::{setRange,zeroRange} These two methods are only called by WebAudio code, and only on Float32Arrays. Replace those calls by inlining the appropriate calls to memmove/memset. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=197058

Patch Set 1 #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -53 lines) Patch
M Source/core/dom/DOMTypedArray.h View 1 chunk +0 lines, -8 lines 0 comments Download
M Source/modules/webaudio/AudioBuffer.cpp View 2 chunks +7 lines, -3 lines 5 comments Download
M Source/wtf/ArrayBufferView.h View 2 chunks +0 lines, -32 lines 0 comments Download
M Source/wtf/TypedArrayBase.h View 1 chunk +0 lines, -10 lines 0 comments Download

Messages

Total messages: 14 (3 generated)
adamk
This is barely worthwhile, but I ran into it while cleaning up other stuff in ...
4 years, 10 months ago (2015-06-12 00:43:48 UTC) #2
Ken Russell (switch to Gerrit)
lgtm if rtoy and/or hongchan are happy
4 years, 10 months ago (2015-06-12 01:09:48 UTC) #4
jochen (gone - plz use gerrit)
lgtm
4 years, 10 months ago (2015-06-12 08:35:09 UTC) #5
adamk
https://codereview.chromium.org/1180023002/diff/1/Source/modules/webaudio/AudioBuffer.cpp File Source/modules/webaudio/AudioBuffer.cpp (right): https://codereview.chromium.org/1180023002/diff/1/Source/modules/webaudio/AudioBuffer.cpp#newcode181 Source/modules/webaudio/AudioBuffer.cpp:181: memmove(dst, src, m_length * sizeof(*dst)); For WebAudio reviewers: this ...
4 years, 10 months ago (2015-06-12 17:59:25 UTC) #6
Raymond Toy
https://codereview.chromium.org/1180023002/diff/1/Source/modules/webaudio/AudioBuffer.cpp File Source/modules/webaudio/AudioBuffer.cpp (right): https://codereview.chromium.org/1180023002/diff/1/Source/modules/webaudio/AudioBuffer.cpp#newcode181 Source/modules/webaudio/AudioBuffer.cpp:181: memmove(dst, src, m_length * sizeof(*dst)); On 2015/06/12 17:59:25, adamk ...
4 years, 10 months ago (2015-06-12 18:05:50 UTC) #7
adamk
The previous checks on the parameters always passed trivially, but I can make the code ...
4 years, 10 months ago (2015-06-12 18:14:28 UTC) #8
Raymond Toy
On 2015/06/12 18:14:28, adamk wrote: > The previous checks on the parameters always passed trivially, ...
4 years, 10 months ago (2015-06-12 18:19:56 UTC) #9
adamk
One more note about the length stuff: there are already other bits of code that ...
4 years, 10 months ago (2015-06-12 18:20:48 UTC) #10
hongchan
lgtm
4 years, 10 months ago (2015-06-12 18:23:38 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1180023002/1
4 years, 10 months ago (2015-06-12 18:24:11 UTC) #13
commit-bot: I haz the power
4 years, 10 months ago (2015-06-12 19:55:13 UTC) #14
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://src.chromium.org/viewvc/blink?view=rev&revision=197058

Powered by Google App Engine
This is Rietveld 408576698