@@ -1703,7 +1703,7 @@ VM_UNIT_TEST_CASE(DartGeneratedListMessagesWithTypedData) {
17031703 static const char * kScriptChars =
17041704 " import 'dart:typed_data';\n "
17051705 " getTypedDataList() {\n "
1706- " var list = List<dynamic>.filled(10 , null);\n "
1706+ " var list = List<dynamic>.filled(13 , null);\n "
17071707 " var index = 0;\n "
17081708 " list[index++] = Int8List(256);\n "
17091709 " list[index++] = Uint8List(256);\n "
@@ -1715,10 +1715,13 @@ VM_UNIT_TEST_CASE(DartGeneratedListMessagesWithTypedData) {
17151715 " list[index++] = Uint64List(256);\n "
17161716 " list[index++] = Float32List(256);\n "
17171717 " list[index++] = Float64List(256);\n "
1718+ " list[index++] = Int32x4List(256);\n "
1719+ " list[index++] = Float32x4List(256);\n "
1720+ " list[index++] = Float64x2List(256);\n "
17181721 " return list;\n "
17191722 " }\n "
17201723 " getTypedDataViewList() {\n "
1721- " var list = List<dynamic>.filled(30 , null);\n "
1724+ " var list = List<dynamic>.filled(45 , null);\n "
17221725 " var index = 0;\n "
17231726 " list[index++] = Int8List.view(Int8List(256).buffer);\n "
17241727 " list[index++] = Uint8List.view(Uint8List(256).buffer);\n "
@@ -1730,6 +1733,9 @@ VM_UNIT_TEST_CASE(DartGeneratedListMessagesWithTypedData) {
17301733 " list[index++] = Uint64List.view(new Uint64List(256).buffer);\n "
17311734 " list[index++] = Float32List.view(new Float32List(256).buffer);\n "
17321735 " list[index++] = Float64List.view(new Float64List(256).buffer);\n "
1736+ " list[index++] = Int32x4List.view(new Int32x4List(256).buffer);\n "
1737+ " list[index++] = Float32x4List.view(new Float32x4List(256).buffer);\n "
1738+ " list[index++] = Float64x2List.view(new Float64x2List(256).buffer);\n "
17331739
17341740 " list[index++] = Int8List.view(new Int16List(256).buffer);\n "
17351741 " list[index++] = Uint8List.view(new Uint16List(256).buffer);\n "
@@ -1741,6 +1747,12 @@ VM_UNIT_TEST_CASE(DartGeneratedListMessagesWithTypedData) {
17411747 " list[index++] = Uint8List.view(new Float32List(256).buffer);\n "
17421748 " list[index++] = Int8List.view(new Float64List(256).buffer);\n "
17431749 " list[index++] = Uint8List.view(new Float64List(256).buffer);\n "
1750+ " list[index++] = Int8List.view(new Int32x4List(256).buffer);\n "
1751+ " list[index++] = Uint8List.view(new Int32x4List(256).buffer);\n "
1752+ " list[index++] = Int8List.view(new Float32x4List(256).buffer);\n "
1753+ " list[index++] = Uint8List.view(new Float32x4List(256).buffer);\n "
1754+ " list[index++] = Int8List.view(new Float64x2List(256).buffer);\n "
1755+ " list[index++] = Uint8List.view(new Float64x2List(256).buffer);\n "
17441756
17451757 " list[index++] = Int16List.view(new Int8List(256).buffer);\n "
17461758 " list[index++] = Uint16List.view(new Uint8List(256).buffer);\n "
@@ -1752,10 +1764,16 @@ VM_UNIT_TEST_CASE(DartGeneratedListMessagesWithTypedData) {
17521764 " list[index++] = Uint16List.view(new Float32List(256).buffer);\n "
17531765 " list[index++] = Int16List.view(new Float64List(256).buffer);\n "
17541766 " list[index++] = Uint16List.view(new Float64List(256).buffer);\n "
1767+ " list[index++] = Int16List.view(new Int32x4List(256).buffer);\n "
1768+ " list[index++] = Uint16List.view(new Int32x4List(256).buffer);\n "
1769+ " list[index++] = Int16List.view(new Float32x4List(256).buffer);\n "
1770+ " list[index++] = Uint16List.view(new Float32x4List(256).buffer);\n "
1771+ " list[index++] = Int16List.view(new Float64x2List(256).buffer);\n "
1772+ " list[index++] = Uint16List.view(new Float64x2List(256).buffer);\n "
17551773 " return list;\n "
17561774 " }\n "
17571775 " getMultipleTypedDataViewList() {\n "
1758- " var list = List<dynamic>.filled(10 , null);\n "
1776+ " var list = List<dynamic>.filled(13 , null);\n "
17591777 " var index = 0;\n "
17601778 " var data = Uint8List(256).buffer;\n "
17611779 " list[index++] = Int8List.view(data);\n "
@@ -1768,6 +1786,9 @@ VM_UNIT_TEST_CASE(DartGeneratedListMessagesWithTypedData) {
17681786 " list[index++] = Uint64List.view(data);\n "
17691787 " list[index++] = Float32List.view(data);\n "
17701788 " list[index++] = Float64List.view(data);\n "
1789+ " list[index++] = Int32x4List.view(data);\n "
1790+ " list[index++] = Float32x4List.view(data);\n "
1791+ " list[index++] = Float64x2List.view(data);\n "
17711792 " return list;\n "
17721793 " }\n " ;
17731794
@@ -1795,12 +1816,13 @@ VM_UNIT_TEST_CASE(DartGeneratedListMessagesWithTypedData) {
17951816 Dart_TypedData_Type type;
17961817 int size;
17971818 } expected[] = {
1798- {Dart_TypedData_kInt8, 256 }, {Dart_TypedData_kUint8, 256 },
1799- {Dart_TypedData_kInt16, 512 }, {Dart_TypedData_kUint16, 512 },
1800- {Dart_TypedData_kInt32, 1024 }, {Dart_TypedData_kUint32, 1024 },
1801- {Dart_TypedData_kInt64, 2048 }, {Dart_TypedData_kUint64, 2048 },
1802- {Dart_TypedData_kFloat32, 1024 }, {Dart_TypedData_kFloat64, 2048 },
1803- {Dart_TypedData_kInvalid, -1 }};
1819+ {Dart_TypedData_kInt8, 256 }, {Dart_TypedData_kUint8, 256 },
1820+ {Dart_TypedData_kInt16, 512 }, {Dart_TypedData_kUint16, 512 },
1821+ {Dart_TypedData_kInt32, 1024 }, {Dart_TypedData_kUint32, 1024 },
1822+ {Dart_TypedData_kInt64, 2048 }, {Dart_TypedData_kUint64, 2048 },
1823+ {Dart_TypedData_kFloat32, 1024 }, {Dart_TypedData_kFloat64, 2048 },
1824+ {Dart_TypedData_kInt32x4, 4096 }, {Dart_TypedData_kFloat32x4, 4096 },
1825+ {Dart_TypedData_kFloat64x2, 4096 }, {Dart_TypedData_kInvalid, -1 }};
18041826
18051827 int i = 0 ;
18061828 while (expected[i].type != Dart_TypedData_kInvalid) {
@@ -1822,23 +1844,31 @@ VM_UNIT_TEST_CASE(DartGeneratedListMessagesWithTypedData) {
18221844 Dart_TypedData_Type type;
18231845 int size;
18241846 } expected[] = {
1825- {Dart_TypedData_kInt8, 256 }, {Dart_TypedData_kUint8, 256 },
1826- {Dart_TypedData_kInt16, 512 }, {Dart_TypedData_kUint16, 512 },
1827- {Dart_TypedData_kInt32, 1024 }, {Dart_TypedData_kUint32, 1024 },
1828- {Dart_TypedData_kInt64, 2048 }, {Dart_TypedData_kUint64, 2048 },
1829- {Dart_TypedData_kFloat32, 1024 }, {Dart_TypedData_kFloat64, 2048 },
1830-
1831- {Dart_TypedData_kInt8, 512 }, {Dart_TypedData_kUint8, 512 },
1832- {Dart_TypedData_kInt8, 1024 }, {Dart_TypedData_kUint8, 1024 },
1833- {Dart_TypedData_kInt8, 2048 }, {Dart_TypedData_kUint8, 2048 },
1834- {Dart_TypedData_kInt8, 1024 }, {Dart_TypedData_kUint8, 1024 },
1835- {Dart_TypedData_kInt8, 2048 }, {Dart_TypedData_kUint8, 2048 },
1836-
1837- {Dart_TypedData_kInt16, 256 }, {Dart_TypedData_kUint16, 256 },
1838- {Dart_TypedData_kInt16, 1024 }, {Dart_TypedData_kUint16, 1024 },
1839- {Dart_TypedData_kInt16, 2048 }, {Dart_TypedData_kUint16, 2048 },
1840- {Dart_TypedData_kInt16, 1024 }, {Dart_TypedData_kUint16, 1024 },
1841- {Dart_TypedData_kInt16, 2048 }, {Dart_TypedData_kUint16, 2048 },
1847+ {Dart_TypedData_kInt8, 256 }, {Dart_TypedData_kUint8, 256 },
1848+ {Dart_TypedData_kInt16, 512 }, {Dart_TypedData_kUint16, 512 },
1849+ {Dart_TypedData_kInt32, 1024 }, {Dart_TypedData_kUint32, 1024 },
1850+ {Dart_TypedData_kInt64, 2048 }, {Dart_TypedData_kUint64, 2048 },
1851+ {Dart_TypedData_kFloat32, 1024 }, {Dart_TypedData_kFloat64, 2048 },
1852+ {Dart_TypedData_kInt32x4, 4096 }, {Dart_TypedData_kFloat32x4, 4096 },
1853+ {Dart_TypedData_kFloat64x2, 4096 },
1854+
1855+ {Dart_TypedData_kInt8, 512 }, {Dart_TypedData_kUint8, 512 },
1856+ {Dart_TypedData_kInt8, 1024 }, {Dart_TypedData_kUint8, 1024 },
1857+ {Dart_TypedData_kInt8, 2048 }, {Dart_TypedData_kUint8, 2048 },
1858+ {Dart_TypedData_kInt8, 1024 }, {Dart_TypedData_kUint8, 1024 },
1859+ {Dart_TypedData_kInt8, 2048 }, {Dart_TypedData_kUint8, 2048 },
1860+ {Dart_TypedData_kInt8, 4096 }, {Dart_TypedData_kUint8, 4096 },
1861+ {Dart_TypedData_kInt8, 4096 }, {Dart_TypedData_kUint8, 4096 },
1862+ {Dart_TypedData_kInt8, 4096 }, {Dart_TypedData_kUint8, 4096 },
1863+
1864+ {Dart_TypedData_kInt16, 256 }, {Dart_TypedData_kUint16, 256 },
1865+ {Dart_TypedData_kInt16, 1024 }, {Dart_TypedData_kUint16, 1024 },
1866+ {Dart_TypedData_kInt16, 2048 }, {Dart_TypedData_kUint16, 2048 },
1867+ {Dart_TypedData_kInt16, 1024 }, {Dart_TypedData_kUint16, 1024 },
1868+ {Dart_TypedData_kInt16, 2048 }, {Dart_TypedData_kUint16, 2048 },
1869+ {Dart_TypedData_kInt16, 4096 }, {Dart_TypedData_kUint16, 4096 },
1870+ {Dart_TypedData_kInt16, 4096 }, {Dart_TypedData_kUint16, 4096 },
1871+ {Dart_TypedData_kInt16, 4096 }, {Dart_TypedData_kUint16, 4096 },
18421872
18431873 {Dart_TypedData_kInvalid, -1 }};
18441874
@@ -1862,12 +1892,13 @@ VM_UNIT_TEST_CASE(DartGeneratedListMessagesWithTypedData) {
18621892 Dart_TypedData_Type type;
18631893 int size;
18641894 } expected[] = {
1865- {Dart_TypedData_kInt8, 256 }, {Dart_TypedData_kUint8, 256 },
1866- {Dart_TypedData_kInt16, 256 }, {Dart_TypedData_kUint16, 256 },
1867- {Dart_TypedData_kInt32, 256 }, {Dart_TypedData_kUint32, 256 },
1868- {Dart_TypedData_kInt64, 256 }, {Dart_TypedData_kUint64, 256 },
1869- {Dart_TypedData_kFloat32, 256 }, {Dart_TypedData_kFloat64, 256 },
1870- {Dart_TypedData_kInvalid, -1 }};
1895+ {Dart_TypedData_kInt8, 256 }, {Dart_TypedData_kUint8, 256 },
1896+ {Dart_TypedData_kInt16, 256 }, {Dart_TypedData_kUint16, 256 },
1897+ {Dart_TypedData_kInt32, 256 }, {Dart_TypedData_kUint32, 256 },
1898+ {Dart_TypedData_kInt64, 256 }, {Dart_TypedData_kUint64, 256 },
1899+ {Dart_TypedData_kFloat32, 256 }, {Dart_TypedData_kFloat64, 256 },
1900+ {Dart_TypedData_kInt32x4, 256 }, {Dart_TypedData_kFloat32x4, 256 },
1901+ {Dart_TypedData_kFloat64x2, 256 }, {Dart_TypedData_kInvalid, -1 }};
18711902
18721903 int i = 0 ;
18731904 while (expected[i].type != Dart_TypedData_kInvalid) {
0 commit comments