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 | 4 |
5 part of dart2js; | 5 part of dart2js; |
6 | 6 |
7 /** | 7 /** |
8 * If true, print a warning for each method that was resolved, but not | 8 * If true, print a warning for each method that was resolved, but not |
9 * compiled. | 9 * compiled. |
10 */ | 10 */ |
(...skipping 1970 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1981 if (libraryUri.scheme == 'package') { | 1981 if (libraryUri.scheme == 'package') { |
1982 int slashPos = libraryUri.path.indexOf('/'); | 1982 int slashPos = libraryUri.path.indexOf('/'); |
1983 if (slashPos != -1) { | 1983 if (slashPos != -1) { |
1984 String packageName = libraryUri.path.substring(0, slashPos); | 1984 String packageName = libraryUri.path.substring(0, slashPos); |
1985 return new Uri(scheme: 'package', path: packageName); | 1985 return new Uri(scheme: 'package', path: packageName); |
1986 } | 1986 } |
1987 } | 1987 } |
1988 return libraryUri; | 1988 return libraryUri; |
1989 } | 1989 } |
1990 | 1990 |
| 1991 void diagnoseCrashInUserCode(String message, exception, stackTrace) { |
| 1992 // Overridden by Compiler in apiimpl.dart. |
| 1993 } |
1991 } | 1994 } |
1992 | 1995 |
1993 class CompilerTask { | 1996 class CompilerTask { |
1994 final Compiler compiler; | 1997 final Compiler compiler; |
1995 final Stopwatch watch; | 1998 final Stopwatch watch; |
1996 UserTag profilerTag; | 1999 UserTag profilerTag; |
1997 | 2000 |
1998 CompilerTask(Compiler compiler) | 2001 CompilerTask(Compiler compiler) |
1999 : this.compiler = compiler, | 2002 : this.compiler = compiler, |
2000 watch = (compiler.verbose) ? new Stopwatch() : null; | 2003 watch = (compiler.verbose) ? new Stopwatch() : null; |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2126 int warnings = 0; | 2129 int warnings = 0; |
2127 int hints = 0; | 2130 int hints = 0; |
2128 } | 2131 } |
2129 | 2132 |
2130 class GenericTask extends CompilerTask { | 2133 class GenericTask extends CompilerTask { |
2131 final String name; | 2134 final String name; |
2132 | 2135 |
2133 GenericTask(this.name, Compiler compiler) | 2136 GenericTask(this.name, Compiler compiler) |
2134 : super(compiler); | 2137 : super(compiler); |
2135 } | 2138 } |
OLD | NEW |