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

Side by Side Diff: lib/compiler/implementation/universe.dart

Issue 10908068: Better tracking of provided types at call sites (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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 class Universe { 5 class Universe {
6 Map<Element, CodeBuffer> generatedCode; 6 Map<Element, CodeBuffer> generatedCode;
7 Map<Element, CodeBuffer> generatedBailoutCode; 7 Map<Element, CodeBuffer> generatedBailoutCode;
8 final Set<ClassElement> instantiatedClasses; 8 final Set<ClassElement> instantiatedClasses;
9 final Set<SourceString> instantiatedClassInstanceFields; 9 final Set<SourceString> instantiatedClassInstanceFields;
10 final Set<FunctionElement> staticFunctionsNeedingGetter; 10 final Set<FunctionElement> staticFunctionsNeedingGetter;
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 if (namedArguments.isEmpty()) return namedArguments; 315 if (namedArguments.isEmpty()) return namedArguments;
316 if (!orderedNamedArguments.isEmpty()) return orderedNamedArguments; 316 if (!orderedNamedArguments.isEmpty()) return orderedNamedArguments;
317 317
318 orderedNamedArguments.addAll(namedArguments); 318 orderedNamedArguments.addAll(namedArguments);
319 orderedNamedArguments.sort((SourceString first, SourceString second) { 319 orderedNamedArguments.sort((SourceString first, SourceString second) {
320 return first.slowToString().compareTo(second.slowToString()); 320 return first.slowToString().compareTo(second.slowToString());
321 }); 321 });
322 return orderedNamedArguments; 322 return orderedNamedArguments;
323 } 323 }
324 324
325 toString() => 'Selector($kind, $name, $argumentCount)'; 325 toString() => 'Selector($kind, $name, $argumentCount $namedArgumentCount)';
kasperl 2012/09/04 09:18:45 Maybe this needs better formatting? Maybe somethin
Søren Gjesse 2012/09/04 14:55:07 Included the actual names of the named arguments i
326 } 326 }
327 327
328 class TypedSelector extends Selector { 328 class TypedSelector extends Selector {
329 /** 329 /**
330 * The type of the receiver. Any subtype of that type can be the 330 * The type of the receiver. Any subtype of that type can be the
331 * target of the invocation. 331 * target of the invocation.
332 */ 332 */
333 final DartType receiverType; 333 final DartType receiverType;
334 334
335 TypedSelector(this.receiverType, Selector selector) 335 TypedSelector(this.receiverType, Selector selector)
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 } 386 }
387 387
388 return false; 388 return false;
389 } 389 }
390 390
391 toString() { 391 toString() {
392 return 'Selector($kind, "${name.slowToString()}", ' 392 return 'Selector($kind, "${name.slowToString()}", '
393 '$argumentCount, type=$receiverType)'; 393 '$argumentCount, type=$receiverType)';
394 } 394 }
395 } 395 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698