blob: 3eeaaf0b22a38b9dbf965de661a63b059fe06e63 [file] [log] [blame]
// 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 an app-jit snapshot twice generates the same bits.
import 'dart:async';
import 'snapshot_test_helper.dart';
import 'gc/splay_test.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')) {
var splay = StrongSplay();
splay.setup();
for (var i = 0; i < 100; i++) {
splay.exercise();
}
splay.tearDown();
print(fib(35));
return;
}
await checkDeterministicSnapshot("app-jit", "14930352");
}