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

Side by Side Diff: pkg/compiler/lib/src/use_unused_api.dart

Issue 1182053010: Revert "Split TypedSelector into Selector and TypeMask." (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 6 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
« no previous file with comments | « pkg/compiler/lib/src/universe/universe.dart ('k') | pkg/compiler/lib/src/world.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 /// This file use methods that aren't used by dart2js.dart, but that we wish to 5 /// This file use methods that aren't used by dart2js.dart, but that we wish to
6 /// keep anyway. This might be general API that isn't currently in use, 6 /// keep anyway. This might be general API that isn't currently in use,
7 /// debugging aids, or API only used for testing (see TODO below). 7 /// debugging aids, or API only used for testing (see TODO below).
8 8
9 library dart2js.use_unused_api; 9 library dart2js.use_unused_api;
10 10
(...skipping 18 matching lines...) Expand all
29 import 'io/code_output.dart' as io; 29 import 'io/code_output.dart' as io;
30 import 'io/source_map_builder.dart' as io; 30 import 'io/source_map_builder.dart' as io;
31 import 'js/js.dart' as js; 31 import 'js/js.dart' as js;
32 import 'js_backend/js_backend.dart' as js_backend; 32 import 'js_backend/js_backend.dart' as js_backend;
33 import 'js_emitter/js_emitter.dart' as js_emitter; 33 import 'js_emitter/js_emitter.dart' as js_emitter;
34 import 'js_emitter/program_builder.dart' as program_builder; 34 import 'js_emitter/program_builder.dart' as program_builder;
35 import 'resolution/semantic_visitor.dart' as semantic_visitor; 35 import 'resolution/semantic_visitor.dart' as semantic_visitor;
36 import 'source_file_provider.dart' as source_file_provider; 36 import 'source_file_provider.dart' as source_file_provider;
37 import 'ssa/ssa.dart' as ssa; 37 import 'ssa/ssa.dart' as ssa;
38 import 'tree/tree.dart' as tree; 38 import 'tree/tree.dart' as tree;
39 import 'universe/universe.dart' as universe;
39 import 'util/util.dart' as util; 40 import 'util/util.dart' as util;
40 41
41 import 'scanner/scannerlib.dart' show 42 import 'scanner/scannerlib.dart' show
42 PartialClassElement, 43 PartialClassElement,
43 PartialFunctionElement; 44 PartialFunctionElement;
44 45
45 class ElementVisitor extends elements_visitor.BaseElementVisitor { 46 class ElementVisitor extends elements_visitor.BaseElementVisitor {
46 visitElement(e, a) {} 47 visitElement(e, a) {}
47 } 48 }
48 49
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 } 226 }
226 227
227 usedByTests() { 228 usedByTests() {
228 // TODO(ahe): We should try to avoid including API used only for tests. In 229 // TODO(ahe): We should try to avoid including API used only for tests. In
229 // most cases, such API can be moved to a test library. 230 // most cases, such API can be moved to a test library.
230 dart2jslib.World world = null; 231 dart2jslib.World world = null;
231 dart2jslib.Compiler compiler = null; 232 dart2jslib.Compiler compiler = null;
232 compiler.currentlyInUserCode(); 233 compiler.currentlyInUserCode();
233 type_graph_inferrer.TypeGraphInferrer typeGraphInferrer = null; 234 type_graph_inferrer.TypeGraphInferrer typeGraphInferrer = null;
234 source_file_provider.SourceFileProvider sourceFileProvider = null; 235 source_file_provider.SourceFileProvider sourceFileProvider = null;
235 world.hasAnyUserDefinedGetter(null, null); 236 world.hasAnyUserDefinedGetter(null);
236 typeGraphInferrer.getCallersOf(null); 237 typeGraphInferrer.getCallersOf(null);
237 dart_types.Types.sorted(null); 238 dart_types.Types.sorted(null);
238 new dart_types.Types(compiler).copy(compiler); 239 new dart_types.Types(compiler).copy(compiler);
240 new universe.TypedSelector.subclass(null, null, compiler.world);
241 new universe.TypedSelector.subtype(null, null, compiler.world);
242 new universe.TypedSelector.exact(null, null, compiler.world);
239 sourceFileProvider.readStringFromUri(null); 243 sourceFileProvider.readStringFromUri(null);
240 } 244 }
241 245
242 useElements( 246 useElements(
243 [elements.ClassElement e, 247 [elements.ClassElement e,
244 elements.Name n, 248 elements.Name n,
245 modelx.FieldElementX f, 249 modelx.FieldElementX f,
246 PartialClassElement pce, 250 PartialClassElement pce,
247 PartialFunctionElement pfe, 251 PartialFunctionElement pfe,
248 elements.LibraryElement l]) { 252 elements.LibraryElement l]) {
249 e.lookupClassMember(null); 253 e.lookupClassMember(null);
250 e.lookupInterfaceMember(null); 254 e.lookupInterfaceMember(null);
251 n.isAccessibleFrom(null); 255 n.isAccessibleFrom(null);
252 f.reuseElement(); 256 f.reuseElement();
253 pce.copyWithEnclosing(null); 257 pce.copyWithEnclosing(null);
254 pfe.copyWithEnclosing(null); 258 pfe.copyWithEnclosing(null);
255 l.forEachImport(null); 259 l.forEachImport(null);
256 } 260 }
257 261
258 useIr(ir_builder.IrBuilder builder) { 262 useIr(ir_builder.IrBuilder builder) {
259 builder 263 builder
260 ..buildStringConstant(null) 264 ..buildStringConstant(null)
261 ..buildDynamicGet(null, null, null); 265 ..buildDynamicGet(null, null);
262 } 266 }
263 267
264 useCompiler(dart2jslib.Compiler compiler) { 268 useCompiler(dart2jslib.Compiler compiler) {
265 compiler.libraryLoader 269 compiler.libraryLoader
266 ..reset() 270 ..reset()
267 ..resetAsync(null) 271 ..resetAsync(null)
268 ..lookupLibrary(null); 272 ..lookupLibrary(null);
269 compiler.forgetElement(null); 273 compiler.forgetElement(null);
270 compiler.backend.constantCompilerTask.copyConstantValues(null); 274 compiler.backend.constantCompilerTask.copyConstantValues(null);
271 } 275 }
(...skipping 25 matching lines...) Expand all
297 301
298 class TreeVisitor1 extends tree_ir.ExpressionVisitor1 302 class TreeVisitor1 extends tree_ir.ExpressionVisitor1
299 with tree_ir.StatementVisitor1 { 303 with tree_ir.StatementVisitor1 {
300 noSuchMethod(inv) {} 304 noSuchMethod(inv) {}
301 } 305 }
302 306
303 useTreeVisitors() { 307 useTreeVisitors() {
304 new TreeVisitor1().visitExpression(null, null); 308 new TreeVisitor1().visitExpression(null, null);
305 new TreeVisitor1().visitStatement(null, null); 309 new TreeVisitor1().visitStatement(null, null);
306 } 310 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/universe/universe.dart ('k') | pkg/compiler/lib/src/world.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698