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

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

Issue 2220993005: Split js_backend into multiple libraries (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 4 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
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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.namer;
6 6
7 class FrequencyBasedNamer extends Namer 7 class FrequencyBasedNamer extends Namer
8 with _MinifiedFieldNamer, _MinifiedOneShotInterceptorNamer 8 with _MinifiedFieldNamer, _MinifiedOneShotInterceptorNamer
9 implements jsAst.TokenFinalizer { 9 implements jsAst.TokenFinalizer {
10 _FieldNamingRegistry fieldRegistry; 10 _FieldNamingRegistry fieldRegistry;
11 List<TokenName> tokens = new List<TokenName>(); 11 List<TokenName> tokens = new List<TokenName>();
12 12
13 Map<NamingScope, TokenScope> _tokenScopes = 13 Map<NamingScope, TokenScope> _tokenScopes =
14 new Maplet<NamingScope, TokenScope>(); 14 new Maplet<NamingScope, TokenScope>();
15 15
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 String proposal; 131 String proposal;
132 do { 132 do {
133 proposal = new String.fromCharCodes(_nextName); 133 proposal = new String.fromCharCodes(_nextName);
134 _incrementName(); 134 _incrementName();
135 } while (MinifyNamer._hasBannedPrefix(proposal) || 135 } while (MinifyNamer._hasBannedPrefix(proposal) ||
136 illegalNames.contains(proposal)); 136 illegalNames.contains(proposal));
137 137
138 return proposal; 138 return proposal;
139 } 139 }
140 } 140 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/js_backend/field_naming_mixin.dart ('k') | pkg/compiler/lib/src/js_backend/js_backend.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698