| Index: runtime/vm/snapshot_test.cc
|
| diff --git a/runtime/vm/snapshot_test.cc b/runtime/vm/snapshot_test.cc
|
| index 7761863dc813cf8c563e9c3a5911e679d9ac6658..05b4df20fa9f0283f9f6d43a7bc86ee10f8ec893 100644
|
| --- a/runtime/vm/snapshot_test.cc
|
| +++ b/runtime/vm/snapshot_test.cc
|
| @@ -2429,44 +2429,44 @@ UNIT_TEST_CASE(DartGeneratedListMessagesWithTypedData) {
|
| "getTypedDataViewList() {\n"
|
| " var list = new List(30);\n"
|
| " var index = 0;\n"
|
| - " list[index++] = new Int8List.view(new Int8List(256));\n"
|
| - " list[index++] = new Uint8List.view(new Uint8List(256));\n"
|
| - " list[index++] = new Int16List.view(new Int16List(256));\n"
|
| - " list[index++] = new Uint16List.view(new Uint16List(256));\n"
|
| - " list[index++] = new Int32List.view(new Int32List(256));\n"
|
| - " list[index++] = new Uint32List.view(new Uint32List(256));\n"
|
| - " list[index++] = new Int64List.view(new Int64List(256));\n"
|
| - " list[index++] = new Uint64List.view(new Uint64List(256));\n"
|
| - " list[index++] = new Float32List.view(new Float32List(256));\n"
|
| - " list[index++] = new Float64List.view(new Float64List(256));\n"
|
| -
|
| - " list[index++] = new Int8List.view(new Int16List(256));\n"
|
| - " list[index++] = new Uint8List.view(new Uint16List(256));\n"
|
| - " list[index++] = new Int8List.view(new Int32List(256));\n"
|
| - " list[index++] = new Uint8List.view(new Uint32List(256));\n"
|
| - " list[index++] = new Int8List.view(new Int64List(256));\n"
|
| - " list[index++] = new Uint8List.view(new Uint64List(256));\n"
|
| - " list[index++] = new Int8List.view(new Float32List(256));\n"
|
| - " list[index++] = new Uint8List.view(new Float32List(256));\n"
|
| - " list[index++] = new Int8List.view(new Float64List(256));\n"
|
| - " list[index++] = new Uint8List.view(new Float64List(256));\n"
|
| -
|
| - " list[index++] = new Int16List.view(new Int8List(256));\n"
|
| - " list[index++] = new Uint16List.view(new Uint8List(256));\n"
|
| - " list[index++] = new Int16List.view(new Int32List(256));\n"
|
| - " list[index++] = new Uint16List.view(new Uint32List(256));\n"
|
| - " list[index++] = new Int16List.view(new Int64List(256));\n"
|
| - " list[index++] = new Uint16List.view(new Uint64List(256));\n"
|
| - " list[index++] = new Int16List.view(new Float32List(256));\n"
|
| - " list[index++] = new Uint16List.view(new Float32List(256));\n"
|
| - " list[index++] = new Int16List.view(new Float64List(256));\n"
|
| - " list[index++] = new Uint16List.view(new Float64List(256));\n"
|
| + " list[index++] = new Int8List.view(new Int8List(256).buffer);\n"
|
| + " list[index++] = new Uint8List.view(new Uint8List(256).buffer);\n"
|
| + " list[index++] = new Int16List.view(new Int16List(256).buffer);\n"
|
| + " list[index++] = new Uint16List.view(new Uint16List(256).buffer);\n"
|
| + " list[index++] = new Int32List.view(new Int32List(256).buffer);\n"
|
| + " list[index++] = new Uint32List.view(new Uint32List(256).buffer);\n"
|
| + " list[index++] = new Int64List.view(new Int64List(256).buffer);\n"
|
| + " list[index++] = new Uint64List.view(new Uint64List(256).buffer);\n"
|
| + " list[index++] = new Float32List.view(new Float32List(256).buffer);\n"
|
| + " list[index++] = new Float64List.view(new Float64List(256).buffer);\n"
|
| +
|
| + " list[index++] = new Int8List.view(new Int16List(256).buffer);\n"
|
| + " list[index++] = new Uint8List.view(new Uint16List(256).buffer);\n"
|
| + " list[index++] = new Int8List.view(new Int32List(256).buffer);\n"
|
| + " list[index++] = new Uint8List.view(new Uint32List(256).buffer);\n"
|
| + " list[index++] = new Int8List.view(new Int64List(256).buffer);\n"
|
| + " list[index++] = new Uint8List.view(new Uint64List(256).buffer);\n"
|
| + " list[index++] = new Int8List.view(new Float32List(256).buffer);\n"
|
| + " list[index++] = new Uint8List.view(new Float32List(256).buffer);\n"
|
| + " list[index++] = new Int8List.view(new Float64List(256).buffer);\n"
|
| + " list[index++] = new Uint8List.view(new Float64List(256).buffer);\n"
|
| +
|
| + " list[index++] = new Int16List.view(new Int8List(256).buffer);\n"
|
| + " list[index++] = new Uint16List.view(new Uint8List(256).buffer);\n"
|
| + " list[index++] = new Int16List.view(new Int32List(256).buffer);\n"
|
| + " list[index++] = new Uint16List.view(new Uint32List(256).buffer);\n"
|
| + " list[index++] = new Int16List.view(new Int64List(256).buffer);\n"
|
| + " list[index++] = new Uint16List.view(new Uint64List(256).buffer);\n"
|
| + " list[index++] = new Int16List.view(new Float32List(256).buffer);\n"
|
| + " list[index++] = new Uint16List.view(new Float32List(256).buffer);\n"
|
| + " list[index++] = new Int16List.view(new Float64List(256).buffer);\n"
|
| + " list[index++] = new Uint16List.view(new Float64List(256).buffer);\n"
|
| " return list;\n"
|
| "}\n"
|
| "getMultipleTypedDataViewList() {\n"
|
| " var list = new List(10);\n"
|
| " var index = 0;\n"
|
| - " var data = new Uint8List(256);\n"
|
| + " var data = new Uint8List(256).buffer;\n"
|
| " list[index++] = new Int8List.view(data);\n"
|
| " list[index++] = new Uint8List.view(data);\n"
|
| " list[index++] = new Int16List.view(data);\n"
|
|
|