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

Side by Side Diff: pkg/compiler/lib/src/js_backend/namer.dart

Issue 974803002: Defer addStubs to class instantiation time. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 class Namer implements ClosureNamer { 10 class Namer implements ClosureNamer {
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 final String callPrefix = 'call'; 225 final String callPrefix = 'call';
226 final String callCatchAllName = r'call*'; 226 final String callCatchAllName = r'call*';
227 final String callNameField = r'$callName'; 227 final String callNameField = r'$callName';
228 final String reflectableField = r'$reflectable'; 228 final String reflectableField = r'$reflectable';
229 final String reflectionInfoField = r'$reflectionInfo'; 229 final String reflectionInfoField = r'$reflectionInfo';
230 final String reflectionNameField = r'$reflectionName'; 230 final String reflectionNameField = r'$reflectionName';
231 final String metadataIndexField = r'$metadataIndex'; 231 final String metadataIndexField = r'$metadataIndex';
232 final String defaultValuesField = r'$defaultValues'; 232 final String defaultValuesField = r'$defaultValues';
233 final String methodsWithOptionalArgumentsField = 233 final String methodsWithOptionalArgumentsField =
234 r'$methodsWithOptionalArguments'; 234 r'$methodsWithOptionalArguments';
235 final String deferredAction = r'$deferredAction';
235 236
236 final String classDescriptorProperty = r'^'; 237 final String classDescriptorProperty = r'^';
237 final String requiredParameterField = r'$requiredArgCount'; 238 final String requiredParameterField = r'$requiredArgCount';
238 239
239 // Name of property in a class description for the native dispatch metadata. 240 // Name of property in a class description for the native dispatch metadata.
240 final String nativeSpecProperty = '%'; 241 final String nativeSpecProperty = '%';
241 242
242 static final RegExp IDENTIFIER = new RegExp(r'^[A-Za-z_$][A-Za-z0-9_$]*$'); 243 static final RegExp IDENTIFIER = new RegExp(r'^[A-Za-z_$][A-Za-z0-9_$]*$');
243 static final RegExp NON_IDENTIFIER_CHAR = new RegExp(r'[^A-Za-z_0-9$]'); 244 static final RegExp NON_IDENTIFIER_CHAR = new RegExp(r'[^A-Za-z_0-9$]');
244 245
(...skipping 1178 matching lines...) Expand 10 before | Expand all | Expand 10 after
1423 if (!first) { 1424 if (!first) {
1424 sb.write('_'); 1425 sb.write('_');
1425 } 1426 }
1426 sb.write('_'); 1427 sb.write('_');
1427 visit(parameter); 1428 visit(parameter);
1428 first = true; 1429 first = true;
1429 } 1430 }
1430 } 1431 }
1431 } 1432 }
1432 } 1433 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698