| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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=--optimization-counter-threshold=10 |
| 4 | 5 |
| 5 import "package:expect/expect.dart"; | 6 import "package:expect/expect.dart"; |
| 6 | 7 |
| 7 class MyException { } | 8 class MyException { } |
| 8 | 9 |
| 9 class MyException1 extends MyException { } | 10 class MyException1 extends MyException { } |
| 10 | 11 |
| 11 class MyException2 extends MyException { } | 12 class MyException2 extends MyException { } |
| 12 | 13 |
| 13 class TryCatchTest { | 14 class TryCatchTest { |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 test4(); | 145 test4(); |
| 145 test5(); | 146 test5(); |
| 146 test6(); | 147 test6(); |
| 147 test7(); | 148 test7(); |
| 148 test8(); | 149 test8(); |
| 149 test9(); | 150 test9(); |
| 150 } | 151 } |
| 151 } | 152 } |
| 152 | 153 |
| 153 main() { | 154 main() { |
| 154 for (var i = 0; i < 2000; i++) { | 155 for (var i = 0; i < 20; i++) { |
| 155 TryCatchTest.testMain(); | 156 TryCatchTest.testMain(); |
| 156 } | 157 } |
| 157 } | 158 } |
| OLD | NEW |