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

Unified Diff: lib/compiler/implementation/universe.dart

Issue 10363003: Compute function types together with the parameters. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Move computation of function type. Created 8 years, 7 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 | « lib/compiler/implementation/ssa/optimize.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/universe.dart
diff --git a/lib/compiler/implementation/universe.dart b/lib/compiler/implementation/universe.dart
index fbeee4467ddbeca0537fad16136e31fd0c482556..74690ec80861152b86d4ebbe119444bf00f2a54b 100644
--- a/lib/compiler/implementation/universe.dart
+++ b/lib/compiler/implementation/universe.dart
@@ -139,7 +139,7 @@ class Selector implements Hashable {
if (kind === SelectorKind.GETTER) return true;
FunctionElement function = element;
- FunctionParameters parameters = function.computeParameters(compiler);
+ FunctionSignature parameters = function.computeSignature(compiler);
if (argumentCount > parameters.parameterCount) return false;
int requiredParameterCount = parameters.requiredParameterCount;
int optionalParameterCount = parameters.optionalParameterCount;
@@ -190,7 +190,7 @@ class Selector implements Hashable {
void addMatchingArgumentsToList(Link<Node> link) {}
- FunctionParameters parameters = element.computeParameters(compiler);
+ FunctionSignature parameters = element.computeSignature(compiler);
if (this.positionalArgumentCount == parameters.parameterCount) {
for (Link<Node> link = arguments; !link.isEmpty(); link = link.tail) {
list.add(compileArgument(link.head));
« no previous file with comments | « lib/compiler/implementation/ssa/optimize.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698