| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 part of js_backend; | 5 part of js_backend; |
| 6 | 6 |
| 7 /** | 7 /** |
| 8 * Assigns JavaScript identifiers to Dart variables, class-names and members. | 8 * Assigns JavaScript identifiers to Dart variables, class-names and members. |
| 9 * | 9 * |
| 10 * Names are generated through three stages: | 10 * Names are generated through three stages: |
| (...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 392 static const String _alphaNumeric = | 392 static const String _alphaNumeric = |
| 393 'abcdefghijklmnopqrstuvwxyzABZDEFGHIJKLMNOPQRSTUVWXYZ0123456789'; | 393 'abcdefghijklmnopqrstuvwxyzABZDEFGHIJKLMNOPQRSTUVWXYZ0123456789'; |
| 394 | 394 |
| 395 Namer(Compiler compiler) | 395 Namer(Compiler compiler) |
| 396 : compiler = compiler, | 396 : compiler = compiler, |
| 397 constantHasher = new ConstantCanonicalHasher(compiler), | 397 constantHasher = new ConstantCanonicalHasher(compiler), |
| 398 functionTypeNamer = new FunctionTypeNamer(compiler); | 398 functionTypeNamer = new FunctionTypeNamer(compiler); |
| 399 | 399 |
| 400 JavaScriptBackend get backend => compiler.backend; | 400 JavaScriptBackend get backend => compiler.backend; |
| 401 | 401 |
| 402 String get deferredTypesName => 'deferredTypes'; |
| 402 String get isolateName => 'Isolate'; | 403 String get isolateName => 'Isolate'; |
| 403 String get isolatePropertiesName => r'$isolateProperties'; | 404 String get isolatePropertiesName => r'$isolateProperties'; |
| 404 String get noSuchMethodName => publicInstanceMethodNameByArity( | 405 String get noSuchMethodName => publicInstanceMethodNameByArity( |
| 405 Compiler.NO_SUCH_METHOD, Compiler.NO_SUCH_METHOD_ARG_COUNT); | 406 Compiler.NO_SUCH_METHOD, Compiler.NO_SUCH_METHOD_ARG_COUNT); |
| 406 /** | 407 /** |
| 407 * Some closures must contain their name. The name is stored in | 408 * Some closures must contain their name. The name is stored in |
| 408 * [STATIC_CLOSURE_NAME_NAME]. | 409 * [STATIC_CLOSURE_NAME_NAME]. |
| 409 */ | 410 */ |
| 410 String get STATIC_CLOSURE_NAME_NAME => r'$name'; | 411 String get STATIC_CLOSURE_NAME_NAME => r'$name'; |
| 411 String get closureInvocationSelectorName => Compiler.CALL_OPERATOR_NAME; | 412 String get closureInvocationSelectorName => Compiler.CALL_OPERATOR_NAME; |
| (...skipping 1356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1768 if (!first) { | 1769 if (!first) { |
| 1769 sb.write('_'); | 1770 sb.write('_'); |
| 1770 } | 1771 } |
| 1771 sb.write('_'); | 1772 sb.write('_'); |
| 1772 visit(parameter); | 1773 visit(parameter); |
| 1773 first = true; | 1774 first = true; |
| 1774 } | 1775 } |
| 1775 } | 1776 } |
| 1776 } | 1777 } |
| 1777 } | 1778 } |
| OLD | NEW |