eb82559db2
- Fix assembler->Stop("My address is not deterministic").
- Skip tests on -cdartk + simulators as DFE is too slow.
Bug: https://github.com/dart-lang/sdk/issues/31427
Bug: https://github.com/dart-lang/sdk/issues/33264
Change-Id: Id79a8b8c8fc4b3842fcd1d3827d6d4551890b794
Reviewed-on: https://dart-review.googlesource.com/57483
Reviewed-by: Zach Anderson <zra@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
23 lines
590 B
Dart
23 lines
590 B
Dart
// Copyright (c) 2018, the Dart project authors. Please see the AUTHORS file
|
|
// for details. All rights reserved. Use of this source code is governed by a
|
|
// BSD-style license that can be found in the LICENSE file.
|
|
|
|
// Verify creating a script snapshot twice generates the same bits.
|
|
|
|
import 'dart:async';
|
|
import 'snapshot_test_helper.dart';
|
|
|
|
int fib(int n) {
|
|
if (n <= 1) return 1;
|
|
return fib(n - 1) + fib(n - 2);
|
|
}
|
|
|
|
Future<void> main(List<String> args) async {
|
|
if (args.contains('--child')) {
|
|
print(fib(35));
|
|
return;
|
|
}
|
|
|
|
await checkDeterministicSnapshot("script", "");
|
|
}
|