[test] Avoid slow initialization in large_constant_index_test on simulators.
Bug: https://github.com/dart-lang/sdk/issues/62512 Change-Id: If183af259a41549c17615949fad03c16dfce5bae Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/475901 Reviewed-by: Alexander Aprelev <aam@google.com> Commit-Queue: Ryan Macnak <rmacnak@google.com>
This commit is contained in:
committed by
Commit Queue
parent
8b1c803c61
commit
47d300538b
@@ -7,6 +7,7 @@
|
||||
import "package:expect/expect.dart";
|
||||
import 'dart:typed_data';
|
||||
|
||||
// ARM64 has three addressing strategies for 12, 24, 24+ bits.
|
||||
const large = 1 << 25;
|
||||
|
||||
@pragma("vm:never-inline")
|
||||
@@ -84,7 +85,8 @@ testFloat64(Float64List array) {
|
||||
main() {
|
||||
var x;
|
||||
for (var i = 0; i < 20; i++) {
|
||||
x = new List.filled(large + 1, 0);
|
||||
x = new List<int?>.filled(large + 1, null);
|
||||
x[large] = 0;
|
||||
testArray(x);
|
||||
Expect.equals(x[large], 1);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user