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

Side by Side Diff: tests/compiler/dart2js/backend_dart/test_helper.dart

Issue 716823002: Set up a stub pipline for using the new cps-based ir to generate js. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Move IrEnabled to compiler Created 6 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « tests/compiler/dart2js/backend_dart/dart_new_backend_test.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 library dart_backend.test_helper; 5 library dart_backend.test_helper;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'package:async_helper/async_helper.dart'; 8 import 'package:async_helper/async_helper.dart';
9 import 'package:compiler/src/dart2jslib.dart'; 9 import 'package:compiler/src/dart2jslib.dart';
10 import '../../../../pkg/analyzer2dart/test/test_helper.dart'; 10 import '../../../../pkg/analyzer2dart/test/test_helper.dart';
(...skipping 13 matching lines...) Expand all
24 if (element == null) return null; 24 if (element == null) return null;
25 25
26 compiler.mainFunction = element; 26 compiler.mainFunction = element;
27 compiler.phase = Compiler.PHASE_RESOLVING; 27 compiler.phase = Compiler.PHASE_RESOLVING;
28 compiler.backend.enqueueHelpers(compiler.enqueuer.resolution, 28 compiler.backend.enqueueHelpers(compiler.enqueuer.resolution,
29 compiler.globalDependencies); 29 compiler.globalDependencies);
30 compiler.processQueue(compiler.enqueuer.resolution, element); 30 compiler.processQueue(compiler.enqueuer.resolution, element);
31 compiler.world.populate(); 31 compiler.world.populate();
32 compiler.backend.onResolutionComplete(); 32 compiler.backend.onResolutionComplete();
33 33
34 compiler.irBuilder.buildNodes(useNewBackend: true); 34 compiler.irBuilder.buildNodes();
35 35
36 return compiler; 36 return compiler;
37 }); 37 });
38 } 38 }
39 39
40 /// Test group using async_helper. 40 /// Test group using async_helper.
41 asyncTester(Group group, RunTest runTest) { 41 asyncTester(Group group, RunTest runTest) {
42 asyncTest(() => Future.forEach(group.results, runTest)); 42 asyncTest(() => Future.forEach(group.results, runTest));
43 } 43 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/backend_dart/dart_new_backend_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698