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

Side by Side Diff: pkg/compiler/lib/src/universe/function_set.dart

Issue 2381793003: Rename Universe to WorldBuilder. (Closed)
Patch Set: Created 4 years, 2 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) 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 library universe.function_set; 5 library universe.function_set;
6 6
7 import '../common/names.dart' show Identifiers, Selectors; 7 import '../common/names.dart' show Identifiers, Selectors;
8 import '../compiler.dart' show Compiler; 8 import '../compiler.dart' show Compiler;
9 import '../elements/elements.dart'; 9 import '../elements/elements.dart';
10 import '../types/types.dart'; 10 import '../types/types.dart';
11 import '../util/util.dart' show Hashing, Setlet; 11 import '../util/util.dart' show Hashing, Setlet;
12 import '../world.dart' show ClosedWorld; 12 import '../world.dart' show ClosedWorld;
13 import 'selector.dart' show Selector; 13 import 'selector.dart' show Selector;
14 import 'universe.dart' show ReceiverConstraint; 14 import 'world_builder.dart' show ReceiverConstraint;
15 15
16 // TODO(kasperl): This actually holds getters and setters just fine 16 // TODO(kasperl): This actually holds getters and setters just fine
17 // too and stricly they aren't functions. Maybe this needs a better 17 // too and stricly they aren't functions. Maybe this needs a better
18 // name -- something like ElementSet seems a bit too generic. 18 // name -- something like ElementSet seems a bit too generic.
19 class FunctionSet { 19 class FunctionSet {
20 final Compiler compiler; 20 final Compiler compiler;
21 final Map<String, FunctionSetNode> nodes = new Map<String, FunctionSetNode>(); 21 final Map<String, FunctionSetNode> nodes = new Map<String, FunctionSetNode>();
22 FunctionSet(this.compiler); 22 FunctionSet(this.compiler);
23 23
24 ClosedWorld get closedWorld => compiler.closedWorld; 24 ClosedWorld get closedWorld => compiler.closedWorld;
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 } else if (closedWorld.isInstantiated(cls.declaration)) { 292 } else if (closedWorld.isInstantiated(cls.declaration)) {
293 return new TypeMask.nonNullSubclass(cls.declaration, closedWorld); 293 return new TypeMask.nonNullSubclass(cls.declaration, closedWorld);
294 } else { 294 } else {
295 // TODO(johnniwinther): Avoid the need for this case. 295 // TODO(johnniwinther): Avoid the need for this case.
296 return const TypeMask.empty(); 296 return const TypeMask.empty();
297 } 297 }
298 }), 298 }),
299 closedWorld); 299 closedWorld);
300 } 300 }
301 } 301 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698