RESOLVED FIXED 154569
Native Typed Array functions should use Symbol.species
https://bugs.webkit.org/show_bug.cgi?id=154569
Summary Native Typed Array functions should use Symbol.species
Keith Miller
Reported 2016-02-22 17:29:09 PST
Native Typed Array functions should use Symbol.species
Attachments
Patch (26.83 KB, patch)
2016-02-24 13:49 PST, Keith Miller
no flags
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
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
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
Patch (26.82 KB, patch)
2016-02-24 15:58 PST, Keith Miller
no flags
Patch (27.02 KB, patch)
2016-02-24 16:10 PST, Keith Miller
no flags
Patch (27.08 KB, patch)
2016-02-24 16:24 PST, Keith Miller
no flags
Patch (27.85 KB, patch)
2016-02-25 11:38 PST, Keith Miller
no flags
Patch (29.60 KB, patch)
2016-02-25 13:11 PST, Keith Miller
no flags
Patch (28.88 KB, patch)
2016-02-25 15:14 PST, Keith Miller
no flags
Patch for landing (28.33 KB, patch)
2016-02-26 11:26 PST, Keith Miller
no flags
Keith Miller
Comment 1 2016-02-24 13:49:48 PST
WebKit Commit Bot
Comment 2 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.
Build Bot
Comment 3 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
Build Bot
Comment 4 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
Build Bot
Comment 5 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
Build Bot
Comment 6 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
Build Bot
Comment 7 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
Build Bot
Comment 8 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
Keith Miller
Comment 9 2016-02-24 15:58:28 PST
WebKit Commit Bot
Comment 10 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.
Keith Miller
Comment 11 2016-02-24 16:10:59 PST
WebKit Commit Bot
Comment 12 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.
Keith Miller
Comment 13 2016-02-24 16:24:02 PST
WebKit Commit Bot
Comment 14 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.
Keith Miller
Comment 15 2016-02-25 11:38:08 PST
WebKit Commit Bot
Comment 16 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.
Keith Miller
Comment 17 2016-02-25 13:11:48 PST
WebKit Commit Bot
Comment 18 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.
Keith Miller
Comment 19 2016-02-25 15:14:37 PST
WebKit Commit Bot
Comment 20 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.
Michael Saboff
Comment 21 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.
Keith Miller
Comment 22 2016-02-26 11:26:05 PST
Created attachment 272350 [details] Patch for landing
WebKit Commit Bot
Comment 23 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>
WebKit Commit Bot
Comment 24 2016-02-26 12:25:43 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.