Index: runtime/vm/snapshot_test.cc |
diff --git a/runtime/vm/snapshot_test.cc b/runtime/vm/snapshot_test.cc |
index 365d9e0d42e5ee105197785d9be5da6b2124fb4f..aebebd219cca61647edb5669def908aab2e3bf59 100644 |
--- a/runtime/vm/snapshot_test.cc |
+++ b/runtime/vm/snapshot_test.cc |
@@ -2403,44 +2403,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" |