Chromium Code Reviews| 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 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 Loading... | |
| 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 Loading... | |
| 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 } |
| OLD | NEW |