| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |