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

Unified Diff: sdk/lib/_internal/compiler/implementation/resolution/members.dart

Issue 101823004: We inline List allocations in dart2js to get the right behavior when the passed length is null. Thi… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years 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/lib/core_patch.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/compiler/implementation/resolution/members.dart
===================================================================
--- sdk/lib/_internal/compiler/implementation/resolution/members.dart (revision 30984)
+++ sdk/lib/_internal/compiler/implementation/resolution/members.dart (working copy)
@@ -317,24 +317,19 @@
while (!originParameters.isEmpty) {
Element originParameter = originParameters.head;
Element patchParameter = patchParameters.head;
- // Hack: Use unparser to test parameter equality. This only works because
- // we are restricting patch uses and the approach cannot be used
- // elsewhere.
- String originParameterText =
- originParameter.parseNode(compiler).toString();
- String patchParameterText =
- patchParameter.parseNode(compiler).toString();
- if (originParameterText != patchParameterText) {
+ String originParameterName = originParameter.name;
+ String patchParameterName = patchParameter.name;
+ if (originParameterName != patchParameterName) {
Johnni Winther 2013/12/09 12:11:01 With this change, we allow different default value
ngeoffray 2013/12/09 15:24:17 OK, I have reverted this change and check that the
compiler.reportError(
originParameter.parseNode(compiler),
MessageKind.PATCH_PARAMETER_MISMATCH,
{'methodName': origin.name,
- 'originParameter': originParameterText,
- 'patchParameter': patchParameterText});
+ 'originParameter': originParameterName,
+ 'patchParameter': patchParameterName});
compiler.reportMessage(
compiler.spanFromSpannable(patchParameter),
MessageKind.PATCH_POINT_TO_PARAMETER.error(
- {'parameterName': patchParameter.name}),
+ {'parameterName': patchParameterName}),
Diagnostic.INFO);
}
DartType originParameterType = originParameter.computeType(compiler);
« no previous file with comments | « no previous file | sdk/lib/_internal/lib/core_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698