@@ -1703,7 +1703,7 @@ VM_UNIT_TEST_CASE(DartGeneratedListMessagesWithTypedData) {
1703
1703
static const char * kScriptChars =
1704
1704
" import 'dart:typed_data';\n "
1705
1705
" getTypedDataList() {\n "
1706
- " var list = List<dynamic>.filled(10 , null);\n "
1706
+ " var list = List<dynamic>.filled(13 , null);\n "
1707
1707
" var index = 0;\n "
1708
1708
" list[index++] = Int8List(256);\n "
1709
1709
" list[index++] = Uint8List(256);\n "
@@ -1715,10 +1715,13 @@ VM_UNIT_TEST_CASE(DartGeneratedListMessagesWithTypedData) {
1715
1715
" list[index++] = Uint64List(256);\n "
1716
1716
" list[index++] = Float32List(256);\n "
1717
1717
" list[index++] = Float64List(256);\n "
1718
+ " list[index++] = Int32x4List(256);\n "
1719
+ " list[index++] = Float32x4List(256);\n "
1720
+ " list[index++] = Float64x2List(256);\n "
1718
1721
" return list;\n "
1719
1722
" }\n "
1720
1723
" getTypedDataViewList() {\n "
1721
- " var list = List<dynamic>.filled(30 , null);\n "
1724
+ " var list = List<dynamic>.filled(45 , null);\n "
1722
1725
" var index = 0;\n "
1723
1726
" list[index++] = Int8List.view(Int8List(256).buffer);\n "
1724
1727
" list[index++] = Uint8List.view(Uint8List(256).buffer);\n "
@@ -1730,6 +1733,9 @@ VM_UNIT_TEST_CASE(DartGeneratedListMessagesWithTypedData) {
1730
1733
" list[index++] = Uint64List.view(new Uint64List(256).buffer);\n "
1731
1734
" list[index++] = Float32List.view(new Float32List(256).buffer);\n "
1732
1735
" 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 "
1733
1739
1734
1740
" list[index++] = Int8List.view(new Int16List(256).buffer);\n "
1735
1741
" list[index++] = Uint8List.view(new Uint16List(256).buffer);\n "
@@ -1741,6 +1747,12 @@ VM_UNIT_TEST_CASE(DartGeneratedListMessagesWithTypedData) {
1741
1747
" list[index++] = Uint8List.view(new Float32List(256).buffer);\n "
1742
1748
" list[index++] = Int8List.view(new Float64List(256).buffer);\n "
1743
1749
" 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 "
1744
1756
1745
1757
" list[index++] = Int16List.view(new Int8List(256).buffer);\n "
1746
1758
" list[index++] = Uint16List.view(new Uint8List(256).buffer);\n "
@@ -1752,10 +1764,16 @@ VM_UNIT_TEST_CASE(DartGeneratedListMessagesWithTypedData) {
1752
1764
" list[index++] = Uint16List.view(new Float32List(256).buffer);\n "
1753
1765
" list[index++] = Int16List.view(new Float64List(256).buffer);\n "
1754
1766
" 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 "
1755
1773
" return list;\n "
1756
1774
" }\n "
1757
1775
" getMultipleTypedDataViewList() {\n "
1758
- " var list = List<dynamic>.filled(10 , null);\n "
1776
+ " var list = List<dynamic>.filled(13 , null);\n "
1759
1777
" var index = 0;\n "
1760
1778
" var data = Uint8List(256).buffer;\n "
1761
1779
" list[index++] = Int8List.view(data);\n "
@@ -1768,6 +1786,9 @@ VM_UNIT_TEST_CASE(DartGeneratedListMessagesWithTypedData) {
1768
1786
" list[index++] = Uint64List.view(data);\n "
1769
1787
" list[index++] = Float32List.view(data);\n "
1770
1788
" 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 "
1771
1792
" return list;\n "
1772
1793
" }\n " ;
1773
1794
@@ -1795,12 +1816,13 @@ VM_UNIT_TEST_CASE(DartGeneratedListMessagesWithTypedData) {
1795
1816
Dart_TypedData_Type type;
1796
1817
int size;
1797
1818
} 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 }};
1804
1826
1805
1827
int i = 0 ;
1806
1828
while (expected[i].type != Dart_TypedData_kInvalid) {
@@ -1822,23 +1844,31 @@ VM_UNIT_TEST_CASE(DartGeneratedListMessagesWithTypedData) {
1822
1844
Dart_TypedData_Type type;
1823
1845
int size;
1824
1846
} 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 },
1842
1872
1843
1873
{Dart_TypedData_kInvalid, -1 }};
1844
1874
@@ -1862,12 +1892,13 @@ VM_UNIT_TEST_CASE(DartGeneratedListMessagesWithTypedData) {
1862
1892
Dart_TypedData_Type type;
1863
1893
int size;
1864
1894
} 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 }};
1871
1902
1872
1903
int i = 0 ;
1873
1904
while (expected[i].type != Dart_TypedData_kInvalid) {
0 commit comments