| OLD | NEW |
| 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 // VMOptions= | 4 // VMOptions= |
| 5 // VMOptions=--print-object-histogram | 5 // VMOptions=--print-object-histogram |
| 6 | 6 |
| 7 // Smoke test of the dart2js compiler API. | 7 // Smoke test of the dart2js compiler API. |
| 8 library dummy_compiler; | 8 library dummy_compiler; |
| 9 | 9 |
| 10 import 'dart:async'; | 10 import 'dart:async'; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 class double{} | 32 class double{} |
| 33 class String{} | 33 class String{} |
| 34 class Function{} | 34 class Function{} |
| 35 class List<E> {} | 35 class List<E> {} |
| 36 class Map {} | 36 class Map {} |
| 37 class Closure {} | 37 class Closure {} |
| 38 class BoundClosure {} | 38 class BoundClosure {} |
| 39 class Dynamic_ {} | 39 class Dynamic_ {} |
| 40 class Null {} | 40 class Null {} |
| 41 class StackTrace {} | 41 class StackTrace {} |
| 42 class LinkedHashMap {} | 42 class LinkedHashMap { |
| 43 factory LinkedHashMap._empty() => null; |
| 44 factory LinkedHashMap._literal(elements) => null; |
| 45 } |
| 43 identical(a, b) => true; | 46 identical(a, b) => true; |
| 44 getRuntimeTypeInfo(o) {} | 47 getRuntimeTypeInfo(o) {} |
| 45 setRuntimeTypeInfo(o, i) {} | 48 setRuntimeTypeInfo(o, i) {} |
| 46 eqNull(a) {} | 49 eqNull(a) {} |
| 47 eqNullB(a) {} | 50 eqNullB(a) {} |
| 48 const proxy = 0;"""; | 51 const proxy = 0;"""; |
| 49 } else if (uri.path.endsWith('_patch.dart')) { | 52 } else if (uri.path.endsWith('_patch.dart')) { |
| 50 source = ''; | 53 source = ''; |
| 51 } else if (uri.path.endsWith('interceptors.dart')) { | 54 } else if (uri.path.endsWith('interceptors.dart')) { |
| 52 source = """ | 55 source = """ |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 new Uri(scheme: 'package', path: '/'), | 121 new Uri(scheme: 'package', path: '/'), |
| 119 provider, handler); | 122 provider, handler); |
| 120 result.then((String code) { | 123 result.then((String code) { |
| 121 if (code == null) { | 124 if (code == null) { |
| 122 throw 'Compilation failed'; | 125 throw 'Compilation failed'; |
| 123 } | 126 } |
| 124 }, onError: (e) { | 127 }, onError: (e) { |
| 125 throw 'Compilation failed'; | 128 throw 'Compilation failed'; |
| 126 }).then(asyncSuccess); | 129 }).then(asyncSuccess); |
| 127 } | 130 } |
| OLD | NEW |