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

Side by Side Diff: tests/compiler/dart2js/array_tracing_mirror_test.dart

Issue 1322973007: Use memory compiler in compiler_helper.dart. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Update cf. comments. Created 5 years, 3 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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 // Make sure that limiting mirrors through @MirrorsUsed does not 5 // Make sure that limiting mirrors through @MirrorsUsed does not
6 // affect optimizations done on arrays. 6 // affect optimizations done on arrays.
7 7
8 import 'package:expect/expect.dart'; 8 import 'package:expect/expect.dart';
9 import "package:async_helper/async_helper.dart"; 9 import "package:async_helper/async_helper.dart";
10 import 'memory_compiler.dart'; 10 import 'memory_compiler.dart';
(...skipping 17 matching lines...) Expand all
28 return array.length; 28 return array.length;
29 } 29 }
30 ''', 30 ''',
31 }; 31 };
32 32
33 main() { 33 main() {
34 asyncTest(() async { 34 asyncTest(() async {
35 var result = await runCompiler(memorySourceFiles: MEMORY_SOURCE_FILES); 35 var result = await runCompiler(memorySourceFiles: MEMORY_SOURCE_FILES);
36 var compiler = result.compiler; 36 var compiler = result.compiler;
37 var element = compiler.mainApp.findExported('main'); 37 var element = compiler.mainApp.findExported('main');
38 var code = compiler.backend.assembleCode(element); 38 var code = compiler.backend.getGeneratedCode(element);
39 Expect.isTrue(code.contains('return 2')); 39 Expect.isTrue(code.contains('return 2'));
40 }); 40 });
41 } 41 }
42 42
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/arithmetic_simplification_test.dart ('k') | tests/compiler/dart2js/bad_loop_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698