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

Unified Diff: sdk/lib/_internal/compiler/implementation/closure.dart

Issue 17825002: Remove support for 'argument definitions test' from dart2js. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove SentinelConstant. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/constants.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/compiler/implementation/closure.dart
diff --git a/sdk/lib/_internal/compiler/implementation/closure.dart b/sdk/lib/_internal/compiler/implementation/closure.dart
index 38153903b3c0c0fa57993f5737d1102ec24ad451..1863265df297c41abb1b40b576ef40457891d349 100644
--- a/sdk/lib/_internal/compiler/implementation/closure.dart
+++ b/sdk/lib/_internal/compiler/implementation/closure.dart
@@ -515,20 +515,6 @@ class ClosureTranslator extends Visitor {
if (type != null && type.containsTypeVariables) {
registerNeedsThis();
}
- } else if (node.isParameterCheck) {
- Element parameter = elements[node.receiver];
- FunctionElement enclosing = parameter.enclosingElement;
- FunctionExpression function = enclosing.parseNode(compiler);
- ClosureClassMap cached = closureMappingCache[function];
- if (!cached.parametersWithSentinel.containsKey(parameter)) {
- SourceString parameterName = parameter.name;
- String name = '${parameterName.slowToString()}_check';
- Element newElement = new CheckVariableElement(new SourceString(name),
- parameter,
- enclosing);
- useLocal(newElement);
- cached.parametersWithSentinel[parameter] = newElement;
- }
} else if (node.isTypeTest) {
DartType type = elements.getType(node.typeAnnotationFromIsCheckOrCast);
analyzeType(type);
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/constants.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698