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 | 4 |
5 import 'source_mapping_tester.dart' as tester; | 5 import 'source_mapping_tester.dart'; |
| 6 import 'sourcemap_helper.dart'; |
| 7 import 'package:compiler/src/io/position_information.dart'; |
6 | 8 |
7 void main() { | 9 void main() { |
8 tester.main(['operators']); | 10 test(['operators'], whiteListFunction: (String config, String file) { |
| 11 bool allowGtOptimization(CodePoint codePoint) { |
| 12 // Allow missing code points for bailout optimization. |
| 13 return codePoint.jsCode.contains(r'.$gt()'); // # Issue 25304 |
| 14 } |
| 15 |
| 16 if (config == 'cps') { |
| 17 return (CodePoint codePoint) { |
| 18 // Temporarily allow missing code points on expression statements. |
| 19 if (codePoint.kind == StepKind.EXPRESSION_STATEMENT || |
| 20 codePoint.kind == StepKind.IF_CONDITION) { |
| 21 return true; |
| 22 } |
| 23 if (codePoint.jsCode.contains(r'H.iae(')) { |
| 24 // Allow missing code points for bailout calls. |
| 25 return true; |
| 26 } |
| 27 return allowGtOptimization(codePoint); |
| 28 }; |
| 29 } |
| 30 return allowGtOptimization; |
| 31 }); |
9 } | 32 } |
OLD | NEW |