| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 // VMOptions=--compile-all --error_on_bad_type --error_on_bad_override --checked | 4 // VMOptions=--optimization_filter=doesNotExist |
| 5 // ^Force code to be unoptimized so the invocation counts are accurate. |
| 5 | 6 |
| 6 library call_site_data_test; | 7 library call_site_data_test; |
| 7 | 8 |
| 8 import 'package:observatory/service_io.dart'; | 9 import 'package:observatory/service_io.dart'; |
| 9 import 'package:unittest/unittest.dart'; | 10 import 'package:unittest/unittest.dart'; |
| 10 import 'test_helper.dart'; | 11 import 'test_helper.dart'; |
| 11 | 12 |
| 12 class A { foo() => 'A'; } | 13 class A { foo() => 'A'; } |
| 13 class B { foo() => 'B'; } | 14 class B { foo() => 'B'; } |
| 14 class C { foo() => 'C'; } | 15 class C { foo() => 'C'; } |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 var tests = [ | 180 var tests = [ |
| 180 testMonomorphic, | 181 testMonomorphic, |
| 181 testPolymorphic, | 182 testPolymorphic, |
| 182 testMegamorphic, | 183 testMegamorphic, |
| 183 testStaticCall, | 184 testStaticCall, |
| 184 testConstructorCall, | 185 testConstructorCall, |
| 185 testTopLevelCall, | 186 testTopLevelCall, |
| 186 testSuperCall ]; | 187 testSuperCall ]; |
| 187 | 188 |
| 188 main(args) => runIsolateTests(args, tests, testeeBefore: script); | 189 main(args) => runIsolateTests(args, tests, testeeBefore: script); |
| OLD | NEW |