OLD | NEW |
1 // Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dartino 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.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
4 | 4 |
5 foo() => 42; | 5 foo() => 42; |
6 | 6 |
7 class C { | 7 class C { |
8 bar() => 87; | 8 bar() => 87; |
9 } | 9 } |
10 | 10 |
11 main() { | 11 main() { |
12 // For now, this just tests that we exercise | 12 // For now, this just tests that we exercise |
13 // the new native interpreter. | 13 // the new native interpreter. |
14 var o = new C(); | 14 var o = new C(); |
15 for (int i = 0; i < 1000; i++) { | 15 for (int i = 0; i < 1000; i++) { |
16 for (int j = 0; j < 10000; j++) { | 16 for (int j = 0; j < 10000; j++) { |
17 foo(); | 17 foo(); |
18 o.bar(); | 18 o.bar(); |
19 } | 19 } |
20 } | 20 } |
21 } | 21 } |
OLD | NEW |