Ignore:
Timestamp:
Apr 18, 2012, 5:15:29 PM (13 years ago)
Author:
[email protected]
Message:

JSC testing should have complete coverage over typed array types
https://bugs.webkit.org/show_bug.cgi?id=84302

Source/JavaScriptCore:

Reviewed by Geoff Garen.

Added Uint8ClampedArray to the set of typed arrays that are supported by jsc
command-line.

  • JSCTypedArrayStubs.h:

(JSC):

  • jsc.cpp:

(GlobalObject::finishCreation):

Tools:

Reviewed by Geoff Garen.

Made run-fast-jsc print something and a newline if jsc threw an exception or
otherwise returned with an error code, but did not crash.

  • Scripts/run-fast-jsc:

LayoutTests:

Reviewed by Geoff Garen.

Added tests for uint8 and uint16 arrays. Added a test for uint32 arrays that
does not focus entirely on overflow values.

Also added the typed array tests to the repertoire that can be run by
run-fast-jsc.

  • fast/js/dfg-int16array-expected.txt:
  • fast/js/dfg-int8array-expected.txt:
  • fast/js/dfg-uint16array-expected.txt: Added.
  • fast/js/dfg-uint16array.html: Added.
  • fast/js/dfg-uint32array-expected.txt: Added.
  • fast/js/dfg-uint32array.html: Added.
  • fast/js/dfg-uint8array-expected.txt: Added.
  • fast/js/dfg-uint8array.html: Added.
  • fast/js/jsc-test-list:
  • fast/js/script-tests/dfg-int16array.js:
  • fast/js/script-tests/dfg-int8array.js:
  • fast/js/script-tests/dfg-uint16array.js: Added.

(getter1):
(setter1):
(getter2):
(setter2):
(getter3):
(setter3):
(getter4):
(setter4):
(getters.getter1.a):
(.a):
(setters.setter1.a):
(safeGetter):
(safeSetter):

  • fast/js/script-tests/dfg-uint32array.js: Added.

(getter1):
(setter1):
(getter2):
(setter2):
(getter3):
(setter3):
(getter4):
(setter4):
(getters.getter1.a):
(.a):
(setters.setter1.a):
(safeGetter):
(safeSetter):

  • fast/js/script-tests/dfg-uint8array.js: Added.

(getter1):
(setter1):
(getter2):
(setter2):
(getter3):
(setter3):
(getter4):
(setter4):
(getters.getter1.a):
(.a):
(setters.setter1.a):
(safeGetter):
(safeSetter):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/jsc.cpp

    r114575 r114587  
    197197       
    198198        addConstructableFunction(globalData, "Uint8Array", constructJSUint8Array, 1);
     199        addConstructableFunction(globalData, "Uint8ClampedArray", constructJSUint8ClampedArray, 1);
    199200        addConstructableFunction(globalData, "Uint16Array", constructJSUint16Array, 1);
    200201        addConstructableFunction(globalData, "Uint32Array", constructJSUint32Array, 1);
Note: See TracChangeset for help on using the changeset viewer.