| 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=--stacktrace-every=3 --optimization-counter-threshold=10 --enable-i
nlining-annotations | 4 // VMOptions=--stacktrace-every=3 --optimization-counter-threshold=10 --enable-i
nlining-annotations --no-background-compilation |
| 5 | 5 |
| 6 // Test generating stacktraces with inlining and deferred code. | 6 // Test generating stacktraces with inlining and deferred code. |
| 7 // Regression test for issue dartbug.com/22331 | 7 // Regression test for issue dartbug.com/22331 |
| 8 | 8 |
| 9 class A { | 9 class A { |
| 10 final N; | 10 final N; |
| 11 final inc; | 11 final inc; |
| 12 var next; | 12 var next; |
| 13 A(this.N, this.inc) { | 13 A(this.N, this.inc) { |
| 14 next = this; | 14 next = this; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 33 var value = 0x100000000 + o.inc; | 33 var value = 0x100000000 + o.inc; |
| 34 baz(0, 0, foo(o, value)); | 34 baz(0, 0, foo(o, value)); |
| 35 } | 35 } |
| 36 | 36 |
| 37 main() { | 37 main() { |
| 38 var o = new A(10, 1); | 38 var o = new A(10, 1); |
| 39 for (var i = 0; i < 100; i++) bar(o); | 39 for (var i = 0; i < 100; i++) bar(o); |
| 40 bar(new A(100000, 1)); | 40 bar(new A(100000, 1)); |
| 41 } | 41 } |
| 42 | 42 |
| OLD | NEW |