| 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 js_backend; | 5 part of js_backend; |
| 6 | 6 |
| 7 const VERBOSE_OPTIMIZER_HINTS = false; | 7 const VERBOSE_OPTIMIZER_HINTS = false; |
| 8 | 8 |
| 9 const bool USE_CPS_IR = const bool.fromEnvironment("USE_CPS_IR"); | 9 const bool USE_CPS_IR = const bool.fromEnvironment("USE_CPS_IR"); |
| 10 | 10 |
| (...skipping 2243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2254 | 2254 |
| 2255 FunctionElement helperForMissingMain() => findHelper('missingMain'); | 2255 FunctionElement helperForMissingMain() => findHelper('missingMain'); |
| 2256 | 2256 |
| 2257 FunctionElement helperForMainArity() { | 2257 FunctionElement helperForMainArity() { |
| 2258 return findHelper('mainHasTooManyParameters'); | 2258 return findHelper('mainHasTooManyParameters'); |
| 2259 } | 2259 } |
| 2260 | 2260 |
| 2261 void forgetElement(Element element) { | 2261 void forgetElement(Element element) { |
| 2262 constants.forgetElement(element); | 2262 constants.forgetElement(element); |
| 2263 constantCompilerTask.dartConstantCompiler.forgetElement(element); | 2263 constantCompilerTask.dartConstantCompiler.forgetElement(element); |
| 2264 aliasedSuperMembers.remove(element); |
| 2264 } | 2265 } |
| 2265 | 2266 |
| 2266 void registerMainHasArguments(Enqueuer enqueuer) { | 2267 void registerMainHasArguments(Enqueuer enqueuer) { |
| 2267 // If the main method takes arguments, this compilation could be the target | 2268 // If the main method takes arguments, this compilation could be the target |
| 2268 // of Isolate.spawnUri. Strictly speaking, that can happen also if main | 2269 // of Isolate.spawnUri. Strictly speaking, that can happen also if main |
| 2269 // takes no arguments, but in this case the spawned isolate can't | 2270 // takes no arguments, but in this case the spawned isolate can't |
| 2270 // communicate with the spawning isolate. | 2271 // communicate with the spawning isolate. |
| 2271 enqueuer.enableIsolateSupport(); | 2272 enqueuer.enableIsolateSupport(); |
| 2272 } | 2273 } |
| 2273 } | 2274 } |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2469 } | 2470 } |
| 2470 } | 2471 } |
| 2471 | 2472 |
| 2472 /// Records that [constant] is used by the element behind [registry]. | 2473 /// Records that [constant] is used by the element behind [registry]. |
| 2473 class Dependency { | 2474 class Dependency { |
| 2474 final ConstantValue constant; | 2475 final ConstantValue constant; |
| 2475 final Element annotatedElement; | 2476 final Element annotatedElement; |
| 2476 | 2477 |
| 2477 const Dependency(this.constant, this.annotatedElement); | 2478 const Dependency(this.constant, this.annotatedElement); |
| 2478 } | 2479 } |
| OLD | NEW |