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

Side by Side Diff: sdk/lib/_internal/compiler/implementation/world.dart

Issue 219333005: Record the dependency of a implicit constructor to its superclass. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 8 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) 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 part of dart2js; 5 part of dart2js;
6 6
7 class World { 7 class World {
8 final Compiler compiler; 8 final Compiler compiler;
9 final FunctionSet allFunctions; 9 final FunctionSet allFunctions;
10 final Set<Element> functionsCalledInLoop = new Set<Element>(); 10 final Set<Element> functionsCalledInLoop = new Set<Element>();
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 return sideEffects; 266 return sideEffects;
267 } 267 }
268 268
269 void registerCannotThrow(Element element) { 269 void registerCannotThrow(Element element) {
270 elementsThatCannotThrow.add(element); 270 elementsThatCannotThrow.add(element);
271 } 271 }
272 272
273 bool getCannotThrow(Element element) { 273 bool getCannotThrow(Element element) {
274 return elementsThatCannotThrow.contains(element); 274 return elementsThatCannotThrow.contains(element);
275 } 275 }
276
277 void registerImplicitSuperCall(TreeElements elements,
278 FunctionElement superConstructor) {
279 elements.otherDependencies.add(superConstructor);
280 }
276 } 281 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698