Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(461)

Side by Side Diff: tests/compiler/dart2js/sourcemaps/source_mapping_operators_test.dart

Issue 1769013002: Add white-listing to sourcemap tests. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698