| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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=-DUSE_CPS_IR=true | |
| 5 | 4 |
| 6 // Tests of operators. | 5 // Tests of operators. |
| 7 | 6 |
| 8 library operators_tests; | 7 library operators_tests; |
| 9 | 8 |
| 10 import 'js_backend_cps_ir.dart'; | 9 import 'js_backend_cps_ir.dart'; |
| 11 | 10 |
| 12 const List<TestEntry> tests = const [ | 11 const List<TestEntry> tests = const [ |
| 13 const TestEntry("main() { return true ? 42 : 'foo'; }"), | 12 const TestEntry("main() { return true ? 42 : 'foo'; }"), |
| 14 const TestEntry(""" | 13 const TestEntry(""" |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 var list = [1, 2, 3]; | 69 var list = [1, 2, 3]; |
| 71 J.getInterceptor$a(list).$indexSet(list, 1, 6); | 70 J.getInterceptor$a(list).$indexSet(list, 1, 6); |
| 72 P.print(list); | 71 P.print(list); |
| 73 return null; | 72 return null; |
| 74 }"""), | 73 }"""), |
| 75 ]; | 74 ]; |
| 76 | 75 |
| 77 void main() { | 76 void main() { |
| 78 runTests(tests); | 77 runTests(tests); |
| 79 } | 78 } |
| OLD | NEW |