Bug 154569 - Native Typed Array functions should use Symbol.species
Summary: Native Typed Array functions should use Symbol.species
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Keith Miller
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-22 17:29 PST by Keith Miller
Modified: 2016-02-26 12:25 PST (History)
6 users (show)

See Also:


Attachments
Patch (26.83 KB, patch)
2016-02-24 13:49 PST, Keith Miller
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from ews102 for mac-yosemite (1.22 MB, application/zip)
2016-02-24 14:46 PST, Build Bot
no flags Details
Archive of layout-test-results from ews107 for mac-yosemite-wk2 (1.06 MB, application/zip)
2016-02-24 15:03 PST, Build Bot
no flags Details
Archive of layout-test-results from ews117 for mac-yosemite (1.30 MB, application/zip)
2016-02-24 15:07 PST, Build Bot
no flags Details
Patch (26.82 KB, patch)
2016-02-24 15:58 PST, Keith Miller
no flags Details | Formatted Diff | Diff
Patch (27.02 KB, patch)
2016-02-24 16:10 PST, Keith Miller
no flags Details | Formatted Diff | Diff
Patch (27.08 KB, patch)
2016-02-24 16:24 PST, Keith Miller
no flags Details | Formatted Diff | Diff
Patch (27.85 KB, patch)
2016-02-25 11:38 PST, Keith Miller
no flags Details | Formatted Diff | Diff
Patch (29.60 KB, patch)
2016-02-25 13:11 PST, Keith Miller
no flags Details | Formatted Diff | Diff
Patch (28.88 KB, patch)
2016-02-25 15:14 PST, Keith Miller
no flags Details | Formatted Diff | Diff
Patch for landing (28.33 KB, patch)
2016-02-26 11:26 PST, Keith Miller
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Keith Miller 2016-02-22 17:29:09 PST
Native Typed Array functions should use Symbol.species
Comment 1 Keith Miller 2016-02-24 13:49:48 PST
Created attachment 272144 [details]
Patch
Comment 2 WebKit Commit Bot 2016-02-24 13:51:49 PST
Attachment 272144 [details] did not pass style-queue:


ERROR: Source/JavaScriptCore/runtime/JSGenericTypedArrayView.h:228:  The parameter name "type" adds no information, so it should be removed.  [readability/parameter_name] [5]
Total errors found: 1 in 9 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Build Bot 2016-02-24 14:46:44 PST
Comment on attachment 272144 [details]
Patch

Attachment 272144 [details] did not pass mac-ews (mac):
Output: http://webkit-queues.webkit.org/results/878903

New failing tests:
fast/canvas/webgl/array-set-invalid-arguments.html
js/typedarray-set-overlapping-elements-of-same-size.html
fast/canvas/webgl/webgl-array-invalid-ranges.html
js/typedarray-set-same-type-memmove.html
fast/canvas/webgl/array-unit-tests.html
webgl/1.0.2/conformance/typedarrays/array-unit-tests.html
webgl/1.0.2/conformance/textures/texture-size-cube-maps.html
fast/canvas/webgl/array-setters.html
webgl/1.0.2/conformance/textures/texture-size.html
Comment 4 Build Bot 2016-02-24 14:46:47 PST
Created attachment 272149 [details]
Archive of layout-test-results from ews102 for mac-yosemite

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews102  Port: mac-yosemite  Platform: Mac OS X 10.10.5
Comment 5 Build Bot 2016-02-24 15:03:19 PST
Comment on attachment 272144 [details]
Patch

Attachment 272144 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.webkit.org/results/878946

New failing tests:
fast/canvas/webgl/array-set-invalid-arguments.html
fast/canvas/webgl/webgl-array-invalid-ranges.html
js/typedarray-set-overlapping-elements-of-same-size.html
js/typedarray-set-same-type-memmove.html
fast/canvas/webgl/array-unit-tests.html
webgl/1.0.2/conformance/typedarrays/array-unit-tests.html
webgl/1.0.2/conformance/textures/texture-size-cube-maps.html
fast/canvas/webgl/array-setters.html
webgl/1.0.2/conformance/textures/texture-size.html
Comment 6 Build Bot 2016-02-24 15:03:22 PST
Created attachment 272152 [details]
Archive of layout-test-results from ews107 for mac-yosemite-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews107  Port: mac-yosemite-wk2  Platform: Mac OS X 10.10.5
Comment 7 Build Bot 2016-02-24 15:07:16 PST
Comment on attachment 272144 [details]
Patch

Attachment 272144 [details] did not pass mac-debug-ews (mac):
Output: http://webkit-queues.webkit.org/results/878938

New failing tests:
fast/canvas/webgl/array-set-invalid-arguments.html
js/typedarray-set-overlapping-elements-of-same-size.html
fast/canvas/webgl/webgl-array-invalid-ranges.html
js/typedarray-set-same-type-memmove.html
fast/canvas/webgl/array-unit-tests.html
webgl/1.0.2/conformance/typedarrays/array-unit-tests.html
webgl/1.0.2/conformance/textures/texture-size-cube-maps.html
fast/canvas/webgl/array-setters.html
webgl/1.0.2/conformance/textures/texture-size.html
Comment 8 Build Bot 2016-02-24 15:07:19 PST
Created attachment 272153 [details]
Archive of layout-test-results from ews117 for mac-yosemite

The attached test failures were seen while running run-webkit-tests on the mac-debug-ews.
Bot: ews117  Port: mac-yosemite  Platform: Mac OS X 10.10.5
Comment 9 Keith Miller 2016-02-24 15:58:28 PST
Created attachment 272156 [details]
Patch
Comment 10 WebKit Commit Bot 2016-02-24 16:00:49 PST
Attachment 272156 [details] did not pass style-queue:


ERROR: Source/JavaScriptCore/runtime/JSGenericTypedArrayView.h:228:  The parameter name "type" adds no information, so it should be removed.  [readability/parameter_name] [5]
Total errors found: 1 in 9 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 11 Keith Miller 2016-02-24 16:10:59 PST
Created attachment 272157 [details]
Patch
Comment 12 WebKit Commit Bot 2016-02-24 16:13:30 PST
Attachment 272157 [details] did not pass style-queue:


ERROR: Source/JavaScriptCore/runtime/JSGenericTypedArrayView.h:228:  The parameter name "type" adds no information, so it should be removed.  [readability/parameter_name] [5]
Total errors found: 1 in 9 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 13 Keith Miller 2016-02-24 16:24:02 PST
Created attachment 272159 [details]
Patch
Comment 14 WebKit Commit Bot 2016-02-24 16:26:22 PST
Attachment 272159 [details] did not pass style-queue:


ERROR: Source/JavaScriptCore/runtime/JSGenericTypedArrayView.h:228:  The parameter name "type" adds no information, so it should be removed.  [readability/parameter_name] [5]
Total errors found: 1 in 9 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 15 Keith Miller 2016-02-25 11:38:08 PST
Created attachment 272221 [details]
Patch
Comment 16 WebKit Commit Bot 2016-02-25 11:39:44 PST
Attachment 272221 [details] did not pass style-queue:


ERROR: Source/JavaScriptCore/runtime/JSGenericTypedArrayView.h:228:  The parameter name "type" adds no information, so it should be removed.  [readability/parameter_name] [5]
Total errors found: 1 in 10 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 17 Keith Miller 2016-02-25 13:11:48 PST
Created attachment 272229 [details]
Patch
Comment 18 WebKit Commit Bot 2016-02-25 13:14:29 PST
Attachment 272229 [details] did not pass style-queue:


ERROR: Source/JavaScriptCore/runtime/JSGenericTypedArrayView.h:228:  The parameter name "type" adds no information, so it should be removed.  [readability/parameter_name] [5]
Total errors found: 1 in 10 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 19 Keith Miller 2016-02-25 15:14:37 PST
Created attachment 272248 [details]
Patch
Comment 20 WebKit Commit Bot 2016-02-25 15:15:42 PST
Attachment 272248 [details] did not pass style-queue:


ERROR: Source/JavaScriptCore/runtime/JSGenericTypedArrayView.h:228:  The parameter name "type" adds no information, so it should be removed.  [readability/parameter_name] [5]
Total errors found: 1 in 9 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 21 Michael Saboff 2016-02-26 10:38:44 PST
Comment on attachment 272248 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=272248&action=review

r=me with comments.

> Source/JavaScriptCore/runtime/JSGenericTypedArrayViewInlines.h:201
> +    // This method doesn't currently support an otherOffset when type != CopyType::LeftToRight.
> +    // In theory there is no reason why this method couldn't, in fact, it probably already works,
> +    // it's just not tested.
> +    ASSERT(!otherOffset || type != CopyType::LeftToRight);

Since we don't think !otherOffset is likely and we haven't tested it, let's either test it and remove the comment, make sure we properly handle it here, or handle it as case (3).

> Source/JavaScriptCore/runtime/JSGenericTypedArrayViewInlines.h:279
> +        // This method doesn't currently support an objectOffset when object is not a TypedArray view.
> +        // In theory there is no reason why this method couldn't, in fact it probably already works,
> +        // it's just not tested.
> +        ASSERT(!objectOffset);

Let's remove this comment and ASSERT, as the object->get() below will make sure things work correctly.
Comment 22 Keith Miller 2016-02-26 11:26:05 PST
Created attachment 272350 [details]
Patch for landing
Comment 23 WebKit Commit Bot 2016-02-26 12:25:37 PST
Comment on attachment 272350 [details]
Patch for landing

Clearing flags on attachment: 272350

Committed r197192: <http://trac.webkit.org/changeset/197192>
Comment 24 WebKit Commit Bot 2016-02-26 12:25:43 PST
All reviewed patches have been landed.  Closing bug.