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

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

Issue 16019002: Merge the dart:uri library into dart:core and update the Uri class (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Final cleanup Created 7 years, 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 "package:expect/expect.dart"; 5 import "package:expect/expect.dart";
6 import '../../../sdk/lib/_internal/compiler/implementation/js_backend/js_backend .dart'; 6 import '../../../sdk/lib/_internal/compiler/implementation/js_backend/js_backend .dart';
7 import '../../../sdk/lib/_internal/compiler/implementation/ssa/ssa.dart'; 7 import '../../../sdk/lib/_internal/compiler/implementation/ssa/ssa.dart';
8 8
9 import 'compiler_helper.dart'; 9 import 'compiler_helper.dart';
10 import 'parser_helper.dart'; 10 import 'parser_helper.dart';
(...skipping 11 matching lines...) Expand all
22 List<HType> IBS; 22 List<HType> IBS;
23 List<HType> IIS; 23 List<HType> IIS;
24 List<HType> BII; 24 List<HType> BII;
25 List<HType> IBI; 25 List<HType> IBI;
26 List<HType> IIB; 26 List<HType> IIB;
27 List<HType> III; 27 List<HType> III;
28 28
29 FunctionSignature compileAndFindSignature(String code, 29 FunctionSignature compileAndFindSignature(String code,
30 String className, 30 String className,
31 String memberName) { 31 String memberName) {
32 Uri uri = new Uri.fromComponents(scheme: 'source'); 32 Uri uri = new Uri(scheme: 'source');
33 var compiler = compilerFor(code, uri); 33 var compiler = compilerFor(code, uri);
34 compiler.runCompiler(uri); 34 compiler.runCompiler(uri);
35 var cls = findElement(compiler, className); 35 var cls = findElement(compiler, className);
36 var member = cls.lookupLocalMember(buildSourceString(memberName)); 36 var member = cls.lookupLocalMember(buildSourceString(memberName));
37 var signature = member.computeSignature(compiler); 37 var signature = member.computeSignature(compiler);
38 return signature; 38 return signature;
39 } 39 }
40 40
41 HTypeList createHTypeList(List<HType> types) { 41 HTypeList createHTypeList(List<HType> types) {
42 HTypeList result = new HTypeList(types.length); 42 HTypeList result = new HTypeList(types.length);
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 IIB = <HType>[HType.INTEGER, HType.INTEGER, HType.BOOLEAN]; 234 IIB = <HType>[HType.INTEGER, HType.INTEGER, HType.BOOLEAN];
235 III = <HType>[HType.INTEGER, HType.INTEGER, HType.INTEGER]; 235 III = <HType>[HType.INTEGER, HType.INTEGER, HType.INTEGER];
236 236
237 test1(); 237 test1();
238 test2_1(); 238 test2_1();
239 test2_2(); 239 test2_2();
240 test2_3(); 240 test2_3();
241 test3_1(); 241 test3_1();
242 test4(); 242 test4();
243 } 243 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/analyze_only_test.dart ('k') | tests/compiler/dart2js/call_site_simple_type_inferer_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698