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

Unified Diff: frog/leg/namer.dart

Issue 9316026: Support named arguments for dynamic calls. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 8 years, 11 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 | « frog/leg/emitter.dart ('k') | frog/leg/ssa/builder.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/leg/namer.dart
===================================================================
--- frog/leg/namer.dart (revision 3781)
+++ frog/leg/namer.dart (working copy)
@@ -32,9 +32,9 @@
final String ISOLATE = "Isolate";
- String closureInvocationName(int arity) {
+ String closureInvocationName(Selector selector) {
// TODO(floitsch): mangle, while not conflicting with instance names.
- return instanceMethodName(CLOSURE_INVOCATION_NAME, arity);
+ return instanceMethodInvocationName(CLOSURE_INVOCATION_NAME, selector);
}
String instanceMethodName(SourceString name, int arity) {
@@ -42,6 +42,11 @@
return '$name\$$arity';
}
+ String instanceMethodInvocationName(SourceString name, Selector selector) {
+ // TODO(floitsch): mangle, while preserving uniqueness.
+ return '$name\$$selector';
+ }
+
String instanceFieldName(SourceString name) {
return '$name';
}
« no previous file with comments | « frog/leg/emitter.dart ('k') | frog/leg/ssa/builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698