OLD | NEW |
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, 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 'dart:async'; | 5 import 'dart:async'; |
6 import 'package:async_helper/async_helper.dart'; | 6 import 'package:async_helper/async_helper.dart'; |
7 import 'package:compiler/src/commandline_options.dart'; | 7 import 'package:compiler/src/commandline_options.dart'; |
8 import 'package:compiler/src/common.dart'; | 8 import 'package:compiler/src/common.dart'; |
9 import 'package:compiler/src/compiler.dart'; | 9 import 'package:compiler/src/compiler.dart'; |
10 import 'package:compiler/src/js_model/js_strategy.dart'; | 10 import 'package:compiler/src/js_model/js_strategy.dart'; |
(...skipping 26 matching lines...) Expand all Loading... |
37 memorySourceFiles = SOURCE; | 37 memorySourceFiles = SOURCE; |
38 } | 38 } |
39 | 39 |
40 enableDebugMode(); | 40 enableDebugMode(); |
41 | 41 |
42 Compiler compiler1 = await compileWithDill(entryPoint, memorySourceFiles, [ | 42 Compiler compiler1 = await compileWithDill(entryPoint, memorySourceFiles, [ |
43 Flags.disableInlining, | 43 Flags.disableInlining, |
44 Flags.disableTypeInference | 44 Flags.disableTypeInference |
45 ], beforeRun: (Compiler compiler) { | 45 ], beforeRun: (Compiler compiler) { |
46 compiler.backendStrategy = new JsBackendStrategy(compiler); | 46 compiler.backendStrategy = new JsBackendStrategy(compiler); |
47 }); | 47 }, printSteps: true); |
48 Expect.isFalse(compiler1.compilationFailed); | 48 Expect.isFalse(compiler1.compilationFailed); |
49 } | 49 } |
OLD | NEW |