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

Side by Side Diff: tests/utils/dummy_compiler_test.dart

Issue 15724021: Move array and string related HType from const to a field in the backend. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: 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 // Smoke test of the dart2js compiler API. 5 // Smoke test of the dart2js compiler API.
6 library dummy_compiler; 6 library dummy_compiler;
7 7
8 import 'dart:async'; 8 import 'dart:async';
9 9
10 import '../../sdk/lib/_internal/compiler/compiler.dart'; 10 import '../../sdk/lib/_internal/compiler/compiler.dart';
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 } else if (uri.path.endsWith('_patch.dart')) { 42 } else if (uri.path.endsWith('_patch.dart')) {
43 source = ''; 43 source = '';
44 } else if (uri.path.endsWith('interceptors.dart')) { 44 } else if (uri.path.endsWith('interceptors.dart')) {
45 source = """class Interceptor { 45 source = """class Interceptor {
46 operator==(other) {} 46 operator==(other) {}
47 } 47 }
48 class JSIndexable { 48 class JSIndexable {
49 get length; 49 get length;
50 } 50 }
51 class JSMutableIndexable {} 51 class JSMutableIndexable {}
52 class JSArray { 52 class JSArray implements JSIndexable {
53 var removeLast; 53 var removeLast;
54 var add; 54 var add;
55 } 55 }
56 class JSMutableArray {} 56 class JSMutableArray extends JSArray {}
57 class JSFixedArray extends JSMutableArray {} 57 class JSFixedArray extends JSMutableArray {}
58 class JSExtendableArray extends JSMutableArray {} 58 class JSExtendableArray extends JSMutableArray {}
59 class JSString { 59 class JSString implements JSIndexable {
60 var split; 60 var split;
61 var concat; 61 var concat;
62 var toString; 62 var toString;
63 } 63 }
64 class JSFunction {} 64 class JSFunction {}
65 class JSInt {} 65 class JSInt {}
66 class JSDouble {} 66 class JSDouble {}
67 class JSNumber {} 67 class JSNumber {}
68 class JSNull {} 68 class JSNull {}
69 class JSBool {} 69 class JSBool {}
(...skipping 29 matching lines...) Expand all
99 new Uri(scheme: 'package', path: '/'), 99 new Uri(scheme: 'package', path: '/'),
100 provider, handler); 100 provider, handler);
101 result.then((String code) { 101 result.then((String code) {
102 if (code == null) { 102 if (code == null) {
103 throw 'Compilation failed'; 103 throw 'Compilation failed';
104 } 104 }
105 }, onError: (e) { 105 }, onError: (e) {
106 throw 'Compilation failed'; 106 throw 'Compilation failed';
107 }); 107 });
108 } 108 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/type_combination_test.dart ('k') | tests/utils/recursive_import_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698