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

Issue 19230002: Use V8 implementation of TypedArrays and DataView in Blink (Closed)

Created:
7 years, 5 months ago by Dmitry Lomov (no reviews)
Modified:
7 years, 4 months ago
CC:
blink-reviews, Nils Barth (inactive), aandrey+blink_chromium.org, jsbell+bindings_chromium.org, eae+blinkwatch, abarth-chromium, marja+watch_chromium.org, dglazkov+blink, Rik, adamk+blink_chromium.org, haraken, Nate Chapin, do-not-use
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Patch Set 1 #

Total comments: 11

Patch Set 2 : Typo fixed #

Total comments: 2

Patch Set 3 : Extracted tests for huge arrays and disabled them #

Total comments: 4

Patch Set 4 : Reverted test changes re BYTES_PER_ELEMENT and updated copyright notice #

Patch Set 5 : More copyright notices fixed. #

Total comments: 2

Patch Set 6 : Rebase + CR feedback #

Patch Set 7 : Patch for landing #

Patch Set 8 : Rebased #

Patch Set 9 : Added expectations for virtual/gpu test falvor #

Patch Set 10 : DataView issues #

Patch Set 11 : Added AllocateUnitialized implementation #

Patch Set 12 : Rebased for landing #

Patch Set 13 : Minor clean-ups #

Patch Set 14 : Rebased for relanding #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1854 lines, -1075 lines) Patch
M LayoutTests/TestExpectations View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +3 lines, -0 lines 0 comments Download
A LayoutTests/fast/canvas/webgl/array-large-array-tests.html View 1 2 1 chunk +101 lines, -0 lines 0 comments Download
A LayoutTests/fast/canvas/webgl/array-large-array-tests-expected.txt View 1 2 1 chunk +14 lines, -0 lines 0 comments Download
M LayoutTests/fast/canvas/webgl/array-set-invalid-arguments-expected.txt View 1 chunk +21 lines, -21 lines 0 comments Download
M LayoutTests/fast/canvas/webgl/array-set-out-of-bounds-expected.txt View 1 chunk +14 lines, -14 lines 0 comments Download
M LayoutTests/fast/canvas/webgl/array-unit-tests.html View 1 2 3 4 5 6 3 chunks +6 lines, -17 lines 0 comments Download
M LayoutTests/fast/canvas/webgl/array-unit-tests-expected.txt View 1 2 3 4 5 6 7 chunks +1 line, -7 lines 0 comments Download
M LayoutTests/fast/canvas/webgl/data-view-crash-expected.txt View 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/canvas/webgl/data-view-test-expected.txt View 1 2 3 4 5 6 7 8 9 4 chunks +183 lines, -183 lines 0 comments Download
M LayoutTests/fast/canvas/webgl/script-tests/arraybuffer-transfer-of-control.js View 2 chunks +2 lines, -1 line 0 comments Download
M LayoutTests/fast/canvas/webgl/webgl-array-invalid-ranges.html View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +0 lines, -14 lines 0 comments Download
M LayoutTests/fast/canvas/webgl/webgl-array-invalid-ranges-expected.txt View 5 chunks +0 lines, -5 lines 0 comments Download
M LayoutTests/fast/dom/call-a-constructor-as-a-function-expected.txt View 1 2 3 4 5 6 7 8 9 1 chunk +9 lines, -9 lines 0 comments Download
M LayoutTests/fast/js/constructor-length.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +10 lines, -10 lines 0 comments Download
M LayoutTests/fast/js/constructor-length-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +10 lines, -10 lines 0 comments Download
M LayoutTests/fast/js/getOwnPropertyDescriptor-expected.txt View 1 chunk +0 lines, -10 lines 0 comments Download
M LayoutTests/fast/js/resources/getOwnPropertyDescriptor.js View 1 chunk +0 lines, -4 lines 0 comments Download
M Source/bindings/bindings.gypi View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +11 lines, -0 lines 0 comments Download
M Source/bindings/scripts/deprecated_code_generator_v8.pm View 1 2 3 4 5 6 7 8 9 10 11 8 chunks +9 lines, -29 lines 0 comments Download
M Source/bindings/tests/results/V8Float64Array.cpp View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +5 lines, -9 lines 0 comments Download
M Source/bindings/tests/results/V8TestObject.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +2 lines, -2 lines 0 comments Download
M Source/bindings/tests/results/V8TestOverloadedConstructors.cpp View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +2 lines, -2 lines 0 comments Download
M Source/bindings/v8/Dictionary.cpp View 1 chunk +2 lines, -1 line 0 comments Download
M Source/bindings/v8/SerializedScriptValue.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +11 lines, -11 lines 0 comments Download
M Source/bindings/v8/V8Binding.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +7 lines, -0 lines 0 comments Download
M Source/bindings/v8/custom/V8ArrayBufferViewCustom.h View 1 2 3 4 5 1 chunk +15 lines, -259 lines 0 comments Download
M Source/bindings/v8/custom/V8ArrayBufferViewCustom.cpp View 1 chunk +52 lines, -21 lines 0 comments Download
M Source/bindings/v8/custom/V8BlobCustom.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/v8/custom/V8CryptoCustom.cpp View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
A Source/bindings/v8/custom/V8DataViewCustom.h View 1 2 3 4 1 chunk +113 lines, -0 lines 0 comments Download
M Source/bindings/v8/custom/V8DataViewCustom.cpp View 1 2 3 4 5 1 chunk +15 lines, -23 lines 0 comments Download
A Source/bindings/v8/custom/V8Float32ArrayCustom.h View 1 2 3 4 1 chunk +113 lines, -0 lines 0 comments Download
A Source/bindings/v8/custom/V8Float64ArrayCustom.h View 1 2 3 4 1 chunk +113 lines, -0 lines 0 comments Download
M Source/bindings/v8/custom/V8ImageDataCustom.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/v8/custom/V8InjectedScriptHostCustom.cpp View 1 2 3 4 5 6 7 2 chunks +9 lines, -9 lines 0 comments Download
A Source/bindings/v8/custom/V8Int16ArrayCustom.h View 1 2 3 4 1 chunk +113 lines, -0 lines 0 comments Download
A Source/bindings/v8/custom/V8Int32ArrayCustom.h View 1 2 3 4 1 chunk +113 lines, -0 lines 0 comments Download
A Source/bindings/v8/custom/V8Int8ArrayCustom.h View 1 2 3 4 1 chunk +113 lines, -0 lines 0 comments Download
A Source/bindings/v8/custom/V8TypedArrayCustom.h View 1 2 3 4 5 6 7 8 9 1 chunk +189 lines, -0 lines 0 comments Download
A Source/bindings/v8/custom/V8Uint16ArrayCustom.h View 1 2 3 4 1 chunk +113 lines, -0 lines 0 comments Download
A Source/bindings/v8/custom/V8Uint32ArrayCustom.h View 1 2 3 4 1 chunk +113 lines, -0 lines 0 comments Download
A Source/bindings/v8/custom/V8Uint8ArrayCustom.h View 1 2 3 4 1 chunk +113 lines, -0 lines 0 comments Download
A Source/bindings/v8/custom/V8Uint8ClampedArrayCustom.h View 1 2 3 4 1 chunk +113 lines, -0 lines 0 comments Download
M Source/bindings/v8/custom/V8WebGLRenderingContextCustom.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +8 lines, -8 lines 0 comments Download
M Source/bindings/v8/custom/V8XMLHttpRequestCustom.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +1 line, -1 line 0 comments Download
M Source/core/core.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -11 lines 0 comments Download
D Source/core/html/canvas/Float32Array.idl View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -42 lines 0 comments Download
D Source/core/html/canvas/Float64Array.idl View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -42 lines 0 comments Download
D Source/core/html/canvas/Int16Array.idl View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -41 lines 0 comments Download
D Source/core/html/canvas/Int32Array.idl View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -42 lines 0 comments Download
D Source/core/html/canvas/Int8Array.idl View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -42 lines 0 comments Download
D Source/core/html/canvas/Uint16Array.idl View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -41 lines 0 comments Download
D Source/core/html/canvas/Uint32Array.idl View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -41 lines 0 comments Download
D Source/core/html/canvas/Uint8Array.idl View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -41 lines 0 comments Download
D Source/core/html/canvas/Uint8ClampedArray.idl View 1 chunk +0 lines, -42 lines 0 comments Download
M Source/web/WebArrayBufferView.cpp View 1 2 chunks +2 lines, -2 lines 0 comments Download
M Source/web/WebBindings.cpp View 1 2 3 4 5 2 chunks +1 line, -1 line 0 comments Download
M Source/web/WebKit.cpp View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 26 (0 generated)
Dmitry Lomov (no reviews)
Ken/Jochen, please take a look. This is not a small CL :( It is not ...
7 years, 5 months ago (2013-07-15 16:58:05 UTC) #1
jochen (gone - plz use gerrit)
I'm deferring to Ken. Basically, the approach with the templates looks sane. I'm not sure ...
7 years, 5 months ago (2013-07-16 08:53:57 UTC) #2
Dmitry Lomov (no reviews)
https://codereview.chromium.org/19230002/diff/10001/LayoutTests/fast/canvas/webgl/array-unit-tests.html File LayoutTests/fast/canvas/webgl/array-unit-tests.html (right): https://codereview.chromium.org/19230002/diff/10001/LayoutTests/fast/canvas/webgl/array-unit-tests.html#newcode1004 LayoutTests/fast/canvas/webgl/array-unit-tests.html:1004: // testConstructionOfHugeArray(type, name, testCase.elementSizeInBytes); On 2013/07/16 08:53:57, jochen wrote: ...
7 years, 5 months ago (2013-07-16 13:05:48 UTC) #3
Ken Russell (switch to Gerrit)
This is awesome work. A couple of high-level concerns about compatibility that must be addressed ...
7 years, 5 months ago (2013-07-17 03:01:35 UTC) #4
Dmitry Lomov (no reviews)
My approach to resolving compatibility issues is, of the following 3: 1. ES6 spec 2. ...
7 years, 5 months ago (2013-07-17 09:44:53 UTC) #5
Dmitry Lomov (no reviews)
BYTES_PER_ELEMENT issue is fixed in V8 bleeding_edge (https://code.google.com/p/v8/source/detail?r=15712). Also updated copyright notices.
7 years, 5 months ago (2013-07-17 12:13:08 UTC) #6
Ken Russell (switch to Gerrit)
LGTM https://codereview.chromium.org/19230002/diff/28001/LayoutTests/fast/canvas/webgl/array-unit-tests.html File LayoutTests/fast/canvas/webgl/array-unit-tests.html (left): https://codereview.chromium.org/19230002/diff/28001/LayoutTests/fast/canvas/webgl/array-unit-tests.html#oldcode128 LayoutTests/fast/canvas/webgl/array-unit-tests.html:128: shouldBe('new Uint8ClampedArray(1) instanceof Uint8Array', 'true'); Now that this ...
7 years, 5 months ago (2013-07-19 20:31:36 UTC) #7
Dmitry Lomov (no reviews)
On 2013/07/19 20:31:36, Ken Russell wrote: > LGTM > > https://codereview.chromium.org/19230002/diff/28001/LayoutTests/fast/canvas/webgl/array-unit-tests.html > File LayoutTests/fast/canvas/webgl/array-unit-tests.html (left): ...
7 years, 5 months ago (2013-07-19 23:49:14 UTC) #8
Ken Russell (switch to Gerrit)
> Note that there is another change to this test, the one related to huge ...
7 years, 5 months ago (2013-07-20 01:37:44 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dslomov@chromium.org/19230002/38001
7 years, 5 months ago (2013-07-22 18:29:37 UTC) #10
commit-bot: I haz the power
Failed to apply patch for Source/bindings/v8/custom/V8CryptoCustom.cpp: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 5 months ago (2013-07-22 18:29:49 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dslomov@chromium.org/19230002/41001
7 years, 5 months ago (2013-07-22 19:01:28 UTC) #12
commit-bot: I haz the power
Retried try job too often on blink_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=blink_presubmit&number=3986
7 years, 5 months ago (2013-07-22 19:20:04 UTC) #13
jochen (gone - plz use gerrit)
lgtm
7 years, 5 months ago (2013-07-23 07:20:58 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dslomov@chromium.org/19230002/50001
7 years, 5 months ago (2013-07-23 07:44:15 UTC) #15
commit-bot: I haz the power
Change committed as 154741
7 years, 5 months ago (2013-07-23 09:16:30 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dslomov@chromium.org/19230002/69001
7 years, 4 months ago (2013-08-06 11:20:59 UTC) #17
commit-bot: I haz the power
Change committed as 155611
7 years, 4 months ago (2013-08-06 13:45:03 UTC) #18
Stephen White
On 2013/08/06 13:45:03, I haz the power (commit-bot) wrote: > Change committed as 155611 This ...
7 years, 4 months ago (2013-08-06 15:19:16 UTC) #19
Dmitry Lomov (no reviews)
On 2013/08/06 15:19:16, Stephen White wrote: > On 2013/08/06 13:45:03, I haz the power (commit-bot) ...
7 years, 4 months ago (2013-08-07 11:16:26 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dslomov@chromium.org/19230002/69001
7 years, 4 months ago (2013-08-07 13:33:11 UTC) #21
commit-bot: I haz the power
Failed to apply patch for Source/bindings/v8/ScriptProfiler.cpp: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 4 months ago (2013-08-07 13:33:31 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dslomov@chromium.org/19230002/69001
7 years, 4 months ago (2013-08-07 13:42:53 UTC) #23
commit-bot: I haz the power
Failed to apply patch for Source/bindings/v8/ScriptProfiler.cpp: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 4 months ago (2013-08-07 13:43:41 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dslomov@chromium.org/19230002/83002
7 years, 4 months ago (2013-08-07 13:53:58 UTC) #25
commit-bot: I haz the power
7 years, 4 months ago (2013-08-07 15:39:46 UTC) #26
Message was sent while issue was closed.
Change committed as 155697

Powered by Google App Engine
This is Rietveld 408576698