OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 #include "platform/globals.h" | 5 #include "platform/globals.h" |
6 | 6 |
7 #include "include/dart_debugger_api.h" | 7 #include "include/dart_debugger_api.h" |
8 #include "platform/assert.h" | 8 #include "platform/assert.h" |
9 #include "vm/bigint_operations.h" | 9 #include "vm/bigint_operations.h" |
10 #include "vm/class_finalizer.h" | 10 #include "vm/class_finalizer.h" |
(...skipping 2411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2422 " list[index++] = new Uint32List(256);\n" | 2422 " list[index++] = new Uint32List(256);\n" |
2423 " list[index++] = new Int64List(256);\n" | 2423 " list[index++] = new Int64List(256);\n" |
2424 " list[index++] = new Uint64List(256);\n" | 2424 " list[index++] = new Uint64List(256);\n" |
2425 " list[index++] = new Float32List(256);\n" | 2425 " list[index++] = new Float32List(256);\n" |
2426 " list[index++] = new Float64List(256);\n" | 2426 " list[index++] = new Float64List(256);\n" |
2427 " return list;\n" | 2427 " return list;\n" |
2428 "}\n" | 2428 "}\n" |
2429 "getTypedDataViewList() {\n" | 2429 "getTypedDataViewList() {\n" |
2430 " var list = new List(30);\n" | 2430 " var list = new List(30);\n" |
2431 " var index = 0;\n" | 2431 " var index = 0;\n" |
2432 " list[index++] = new Int8List.view(new Int8List(256));\n" | 2432 " list[index++] = new Int8List.view(new Int8List(256).buffer);\n" |
2433 " list[index++] = new Uint8List.view(new Uint8List(256));\n" | 2433 " list[index++] = new Uint8List.view(new Uint8List(256).buffer);\n" |
2434 " list[index++] = new Int16List.view(new Int16List(256));\n" | 2434 " list[index++] = new Int16List.view(new Int16List(256).buffer);\n" |
2435 " list[index++] = new Uint16List.view(new Uint16List(256));\n" | 2435 " list[index++] = new Uint16List.view(new Uint16List(256).buffer);\n" |
2436 " list[index++] = new Int32List.view(new Int32List(256));\n" | 2436 " list[index++] = new Int32List.view(new Int32List(256).buffer);\n" |
2437 " list[index++] = new Uint32List.view(new Uint32List(256));\n" | 2437 " list[index++] = new Uint32List.view(new Uint32List(256).buffer);\n" |
2438 " list[index++] = new Int64List.view(new Int64List(256));\n" | 2438 " list[index++] = new Int64List.view(new Int64List(256).buffer);\n" |
2439 " list[index++] = new Uint64List.view(new Uint64List(256));\n" | 2439 " list[index++] = new Uint64List.view(new Uint64List(256).buffer);\n" |
2440 " list[index++] = new Float32List.view(new Float32List(256));\n" | 2440 " list[index++] = new Float32List.view(new Float32List(256).buffer);\n" |
2441 " list[index++] = new Float64List.view(new Float64List(256));\n" | 2441 " list[index++] = new Float64List.view(new Float64List(256).buffer);\n" |
2442 | 2442 |
2443 " list[index++] = new Int8List.view(new Int16List(256));\n" | 2443 " list[index++] = new Int8List.view(new Int16List(256).buffer);\n" |
2444 " list[index++] = new Uint8List.view(new Uint16List(256));\n" | 2444 " list[index++] = new Uint8List.view(new Uint16List(256).buffer);\n" |
2445 " list[index++] = new Int8List.view(new Int32List(256));\n" | 2445 " list[index++] = new Int8List.view(new Int32List(256).buffer);\n" |
2446 " list[index++] = new Uint8List.view(new Uint32List(256));\n" | 2446 " list[index++] = new Uint8List.view(new Uint32List(256).buffer);\n" |
2447 " list[index++] = new Int8List.view(new Int64List(256));\n" | 2447 " list[index++] = new Int8List.view(new Int64List(256).buffer);\n" |
2448 " list[index++] = new Uint8List.view(new Uint64List(256));\n" | 2448 " list[index++] = new Uint8List.view(new Uint64List(256).buffer);\n" |
2449 " list[index++] = new Int8List.view(new Float32List(256));\n" | 2449 " list[index++] = new Int8List.view(new Float32List(256).buffer);\n" |
2450 " list[index++] = new Uint8List.view(new Float32List(256));\n" | 2450 " list[index++] = new Uint8List.view(new Float32List(256).buffer);\n" |
2451 " list[index++] = new Int8List.view(new Float64List(256));\n" | 2451 " list[index++] = new Int8List.view(new Float64List(256).buffer);\n" |
2452 " list[index++] = new Uint8List.view(new Float64List(256));\n" | 2452 " list[index++] = new Uint8List.view(new Float64List(256).buffer);\n" |
2453 | 2453 |
2454 " list[index++] = new Int16List.view(new Int8List(256));\n" | 2454 " list[index++] = new Int16List.view(new Int8List(256).buffer);\n" |
2455 " list[index++] = new Uint16List.view(new Uint8List(256));\n" | 2455 " list[index++] = new Uint16List.view(new Uint8List(256).buffer);\n" |
2456 " list[index++] = new Int16List.view(new Int32List(256));\n" | 2456 " list[index++] = new Int16List.view(new Int32List(256).buffer);\n" |
2457 " list[index++] = new Uint16List.view(new Uint32List(256));\n" | 2457 " list[index++] = new Uint16List.view(new Uint32List(256).buffer);\n" |
2458 " list[index++] = new Int16List.view(new Int64List(256));\n" | 2458 " list[index++] = new Int16List.view(new Int64List(256).buffer);\n" |
2459 " list[index++] = new Uint16List.view(new Uint64List(256));\n" | 2459 " list[index++] = new Uint16List.view(new Uint64List(256).buffer);\n" |
2460 " list[index++] = new Int16List.view(new Float32List(256));\n" | 2460 " list[index++] = new Int16List.view(new Float32List(256).buffer);\n" |
2461 " list[index++] = new Uint16List.view(new Float32List(256));\n" | 2461 " list[index++] = new Uint16List.view(new Float32List(256).buffer);\n" |
2462 " list[index++] = new Int16List.view(new Float64List(256));\n" | 2462 " list[index++] = new Int16List.view(new Float64List(256).buffer);\n" |
2463 " list[index++] = new Uint16List.view(new Float64List(256));\n" | 2463 " list[index++] = new Uint16List.view(new Float64List(256).buffer);\n" |
2464 " return list;\n" | 2464 " return list;\n" |
2465 "}\n" | 2465 "}\n" |
2466 "getMultipleTypedDataViewList() {\n" | 2466 "getMultipleTypedDataViewList() {\n" |
2467 " var list = new List(10);\n" | 2467 " var list = new List(10);\n" |
2468 " var index = 0;\n" | 2468 " var index = 0;\n" |
2469 " var data = new Uint8List(256);\n" | 2469 " var data = new Uint8List(256).buffer;\n" |
2470 " list[index++] = new Int8List.view(data);\n" | 2470 " list[index++] = new Int8List.view(data);\n" |
2471 " list[index++] = new Uint8List.view(data);\n" | 2471 " list[index++] = new Uint8List.view(data);\n" |
2472 " list[index++] = new Int16List.view(data);\n" | 2472 " list[index++] = new Int16List.view(data);\n" |
2473 " list[index++] = new Uint16List.view(data);\n" | 2473 " list[index++] = new Uint16List.view(data);\n" |
2474 " list[index++] = new Int32List.view(data);\n" | 2474 " list[index++] = new Int32List.view(data);\n" |
2475 " list[index++] = new Uint32List.view(data);\n" | 2475 " list[index++] = new Uint32List.view(data);\n" |
2476 " list[index++] = new Int64List.view(data);\n" | 2476 " list[index++] = new Int64List.view(data);\n" |
2477 " list[index++] = new Uint64List.view(data);\n" | 2477 " list[index++] = new Uint64List.view(data);\n" |
2478 " list[index++] = new Float32List.view(data);\n" | 2478 " list[index++] = new Float32List.view(data);\n" |
2479 " list[index++] = new Float64List.view(data);\n" | 2479 " list[index++] = new Float64List.view(data);\n" |
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2710 result = Dart_RunLoop(); | 2710 result = Dart_RunLoop(); |
2711 EXPECT(Dart_IsError(result)); | 2711 EXPECT(Dart_IsError(result)); |
2712 EXPECT(Dart_ErrorHasException(result)); | 2712 EXPECT(Dart_ErrorHasException(result)); |
2713 EXPECT_SUBSTRING("Exception: nulltruefalse123456æøå3.14[]100123456789\n", | 2713 EXPECT_SUBSTRING("Exception: nulltruefalse123456æøå3.14[]100123456789\n", |
2714 Dart_GetError(result)); | 2714 Dart_GetError(result)); |
2715 | 2715 |
2716 Dart_ExitScope(); | 2716 Dart_ExitScope(); |
2717 } | 2717 } |
2718 | 2718 |
2719 } // namespace dart | 2719 } // namespace dart |
OLD | NEW |