Chromium Code Reviews| 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) { |
|
floitsch
2012/02/01 12:19:17
Do we still need this one?
ngeoffray
2012/02/01 13:02:40
For the definition of the method (that does not ha
|
| @@ -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'; |
| } |