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

Unified Diff: tests/compiler/dart2js/kernel/compile_from_dill_test.dart

Issue 2918543003: Handle static invocation (Closed)
Patch Set: Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/compiler/dart2js/find_my_name_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/kernel/compile_from_dill_test.dart
diff --git a/tests/compiler/dart2js/kernel/compile_from_dill_test.dart b/tests/compiler/dart2js/kernel/compile_from_dill_test.dart
index aebbaf46a049dbb82c4dd866370530f2db18c34b..0e2482a8797750292b514492a140fe3c41aea0db 100644
--- a/tests/compiler/dart2js/kernel/compile_from_dill_test.dart
+++ b/tests/compiler/dart2js/kernel/compile_from_dill_test.dart
@@ -33,7 +33,9 @@ import 'compiler_helper.dart';
const SOURCE = const {
'main.dart': '''
+foo() {}
main() {
+ foo();
return null;
}
'''
@@ -77,7 +79,11 @@ Future<ResultKind> mainInternal(List<String> args,
entryPoint: entryPoint,
diagnosticHandler: collector,
outputProvider: collector1,
- options: [Flags.disableTypeInference, Flags.enableAssertMessage]);
+ options: [
+ Flags.disableTypeInference,
+ Flags.disableInlining,
+ Flags.enableAssertMessage
+ ]);
ElementResolutionWorldBuilder.useInstantiationMap = true;
compiler1.resolution.retainCachesForTesting = true;
await compiler1.run(entryPoint);
@@ -98,9 +104,16 @@ Future<ResultKind> mainInternal(List<String> args,
compiler1.resolutionWorldBuilder.closedWorldForTesting;
OutputCollector collector2 = new OutputCollector();
- Compiler compiler2 = await compileWithDill(entryPoint, const {},
- [Flags.disableTypeInference, Flags.enableAssertMessage],
- printSteps: true, compilerOutput: collector2);
+ Compiler compiler2 = await compileWithDill(
+ entryPoint,
+ const {},
+ [
+ Flags.disableTypeInference,
+ Flags.disableInlining,
+ Flags.enableAssertMessage
+ ],
+ printSteps: true,
+ compilerOutput: collector2);
KernelFrontEndStrategy frontEndStrategy = compiler2.frontEndStrategy;
KernelToElementMap elementMap = frontEndStrategy.elementMap;
« no previous file with comments | « tests/compiler/dart2js/find_my_name_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698