| 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 "include/dart_debugger_api.h" | 5 #include "include/dart_debugger_api.h" |
| 6 #include "platform/assert.h" | 6 #include "platform/assert.h" |
| 7 #include "vm/bigint_operations.h" | 7 #include "vm/bigint_operations.h" |
| 8 #include "vm/class_finalizer.h" | 8 #include "vm/class_finalizer.h" |
| 9 #include "vm/dart_api_impl.h" | 9 #include "vm/dart_api_impl.h" |
| 10 #include "vm/dart_api_message.h" | 10 #include "vm/dart_api_message.h" |
| (...skipping 2385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2396 " list[index++] = new Uint32List(256);\n" | 2396 " list[index++] = new Uint32List(256);\n" |
| 2397 " list[index++] = new Int64List(256);\n" | 2397 " list[index++] = new Int64List(256);\n" |
| 2398 " list[index++] = new Uint64List(256);\n" | 2398 " list[index++] = new Uint64List(256);\n" |
| 2399 " list[index++] = new Float32List(256);\n" | 2399 " list[index++] = new Float32List(256);\n" |
| 2400 " list[index++] = new Float64List(256);\n" | 2400 " list[index++] = new Float64List(256);\n" |
| 2401 " return list;\n" | 2401 " return list;\n" |
| 2402 "}\n" | 2402 "}\n" |
| 2403 "getTypedDataViewList() {\n" | 2403 "getTypedDataViewList() {\n" |
| 2404 " var list = new List(30);\n" | 2404 " var list = new List(30);\n" |
| 2405 " var index = 0;\n" | 2405 " var index = 0;\n" |
| 2406 " list[index++] = new Int8List.view(new Int8List(256));\n" | 2406 " list[index++] = new Int8List.view(new Int8List(256).buffer);\n" |
| 2407 " list[index++] = new Uint8List.view(new Uint8List(256));\n" | 2407 " list[index++] = new Uint8List.view(new Uint8List(256).buffer);\n" |
| 2408 " list[index++] = new Int16List.view(new Int16List(256));\n" | 2408 " list[index++] = new Int16List.view(new Int16List(256).buffer);\n" |
| 2409 " list[index++] = new Uint16List.view(new Uint16List(256));\n" | 2409 " list[index++] = new Uint16List.view(new Uint16List(256).buffer);\n" |
| 2410 " list[index++] = new Int32List.view(new Int32List(256));\n" | 2410 " list[index++] = new Int32List.view(new Int32List(256).buffer);\n" |
| 2411 " list[index++] = new Uint32List.view(new Uint32List(256));\n" | 2411 " list[index++] = new Uint32List.view(new Uint32List(256).buffer);\n" |
| 2412 " list[index++] = new Int64List.view(new Int64List(256));\n" | 2412 " list[index++] = new Int64List.view(new Int64List(256).buffer);\n" |
| 2413 " list[index++] = new Uint64List.view(new Uint64List(256));\n" | 2413 " list[index++] = new Uint64List.view(new Uint64List(256).buffer);\n" |
| 2414 " list[index++] = new Float32List.view(new Float32List(256));\n" | 2414 " list[index++] = new Float32List.view(new Float32List(256).buffer);\n" |
| 2415 " list[index++] = new Float64List.view(new Float64List(256));\n" | 2415 " list[index++] = new Float64List.view(new Float64List(256).buffer);\n" |
| 2416 | 2416 |
| 2417 " list[index++] = new Int8List.view(new Int16List(256));\n" | 2417 " list[index++] = new Int8List.view(new Int16List(256).buffer);\n" |
| 2418 " list[index++] = new Uint8List.view(new Uint16List(256));\n" | 2418 " list[index++] = new Uint8List.view(new Uint16List(256).buffer);\n" |
| 2419 " list[index++] = new Int8List.view(new Int32List(256));\n" | 2419 " list[index++] = new Int8List.view(new Int32List(256).buffer);\n" |
| 2420 " list[index++] = new Uint8List.view(new Uint32List(256));\n" | 2420 " list[index++] = new Uint8List.view(new Uint32List(256).buffer);\n" |
| 2421 " list[index++] = new Int8List.view(new Int64List(256));\n" | 2421 " list[index++] = new Int8List.view(new Int64List(256).buffer);\n" |
| 2422 " list[index++] = new Uint8List.view(new Uint64List(256));\n" | 2422 " list[index++] = new Uint8List.view(new Uint64List(256).buffer);\n" |
| 2423 " list[index++] = new Int8List.view(new Float32List(256));\n" | 2423 " list[index++] = new Int8List.view(new Float32List(256).buffer);\n" |
| 2424 " list[index++] = new Uint8List.view(new Float32List(256));\n" | 2424 " list[index++] = new Uint8List.view(new Float32List(256).buffer);\n" |
| 2425 " list[index++] = new Int8List.view(new Float64List(256));\n" | 2425 " list[index++] = new Int8List.view(new Float64List(256).buffer);\n" |
| 2426 " list[index++] = new Uint8List.view(new Float64List(256));\n" | 2426 " list[index++] = new Uint8List.view(new Float64List(256).buffer);\n" |
| 2427 | 2427 |
| 2428 " list[index++] = new Int16List.view(new Int8List(256));\n" | 2428 " list[index++] = new Int16List.view(new Int8List(256).buffer);\n" |
| 2429 " list[index++] = new Uint16List.view(new Uint8List(256));\n" | 2429 " list[index++] = new Uint16List.view(new Uint8List(256).buffer);\n" |
| 2430 " list[index++] = new Int16List.view(new Int32List(256));\n" | 2430 " list[index++] = new Int16List.view(new Int32List(256).buffer);\n" |
| 2431 " list[index++] = new Uint16List.view(new Uint32List(256));\n" | 2431 " list[index++] = new Uint16List.view(new Uint32List(256).buffer);\n" |
| 2432 " list[index++] = new Int16List.view(new Int64List(256));\n" | 2432 " list[index++] = new Int16List.view(new Int64List(256).buffer);\n" |
| 2433 " list[index++] = new Uint16List.view(new Uint64List(256));\n" | 2433 " list[index++] = new Uint16List.view(new Uint64List(256).buffer);\n" |
| 2434 " list[index++] = new Int16List.view(new Float32List(256));\n" | 2434 " list[index++] = new Int16List.view(new Float32List(256).buffer);\n" |
| 2435 " list[index++] = new Uint16List.view(new Float32List(256));\n" | 2435 " list[index++] = new Uint16List.view(new Float32List(256).buffer);\n" |
| 2436 " list[index++] = new Int16List.view(new Float64List(256));\n" | 2436 " list[index++] = new Int16List.view(new Float64List(256).buffer);\n" |
| 2437 " list[index++] = new Uint16List.view(new Float64List(256));\n" | 2437 " list[index++] = new Uint16List.view(new Float64List(256).buffer);\n" |
| 2438 " return list;\n" | 2438 " return list;\n" |
| 2439 "}\n" | 2439 "}\n" |
| 2440 "getMultipleTypedDataViewList() {\n" | 2440 "getMultipleTypedDataViewList() {\n" |
| 2441 " var list = new List(10);\n" | 2441 " var list = new List(10);\n" |
| 2442 " var index = 0;\n" | 2442 " var index = 0;\n" |
| 2443 " var data = new Uint8List(256);\n" | 2443 " var data = new Uint8List(256).buffer;\n" |
| 2444 " list[index++] = new Int8List.view(data);\n" | 2444 " list[index++] = new Int8List.view(data);\n" |
| 2445 " list[index++] = new Uint8List.view(data);\n" | 2445 " list[index++] = new Uint8List.view(data);\n" |
| 2446 " list[index++] = new Int16List.view(data);\n" | 2446 " list[index++] = new Int16List.view(data);\n" |
| 2447 " list[index++] = new Uint16List.view(data);\n" | 2447 " list[index++] = new Uint16List.view(data);\n" |
| 2448 " list[index++] = new Int32List.view(data);\n" | 2448 " list[index++] = new Int32List.view(data);\n" |
| 2449 " list[index++] = new Uint32List.view(data);\n" | 2449 " list[index++] = new Uint32List.view(data);\n" |
| 2450 " list[index++] = new Int64List.view(data);\n" | 2450 " list[index++] = new Int64List.view(data);\n" |
| 2451 " list[index++] = new Uint64List.view(data);\n" | 2451 " list[index++] = new Uint64List.view(data);\n" |
| 2452 " list[index++] = new Float32List.view(data);\n" | 2452 " list[index++] = new Float32List.view(data);\n" |
| 2453 " list[index++] = new Float64List.view(data);\n" | 2453 " list[index++] = new Float64List.view(data);\n" |
| (...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2687 result = Dart_RunLoop(); | 2687 result = Dart_RunLoop(); |
| 2688 EXPECT(Dart_IsError(result)); | 2688 EXPECT(Dart_IsError(result)); |
| 2689 EXPECT(Dart_ErrorHasException(result)); | 2689 EXPECT(Dart_ErrorHasException(result)); |
| 2690 EXPECT_SUBSTRING("Exception: nulltruefalse123456æøå3.14[]100123456789\n", | 2690 EXPECT_SUBSTRING("Exception: nulltruefalse123456æøå3.14[]100123456789\n", |
| 2691 Dart_GetError(result)); | 2691 Dart_GetError(result)); |
| 2692 | 2692 |
| 2693 Dart_ExitScope(); | 2693 Dart_ExitScope(); |
| 2694 } | 2694 } |
| 2695 | 2695 |
| 2696 } // namespace dart | 2696 } // namespace dart |
| OLD | NEW |