| 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 library dart2js.common.codegen; | 5 library dart2js.common.codegen; |
| 6 | 6 |
| 7 import '../compiler.dart' show | 7 import '../compiler.dart' show |
| 8 Compiler; | 8 Compiler; |
| 9 import '../constants/values.dart' show | 9 import '../constants/values.dart' show |
| 10 ConstantValue; | 10 ConstantValue; |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 | 133 |
| 134 void registerGetOfStaticFunction(FunctionElement element) { | 134 void registerGetOfStaticFunction(FunctionElement element) { |
| 135 world.registerGetOfStaticFunction(element); | 135 world.registerGetOfStaticFunction(element); |
| 136 } | 136 } |
| 137 | 137 |
| 138 void registerSelectorUse(Selector selector) { | 138 void registerSelectorUse(Selector selector) { |
| 139 world.registerSelectorUse(new UniverseSelector(selector, null)); | 139 world.registerSelectorUse(new UniverseSelector(selector, null)); |
| 140 } | 140 } |
| 141 | 141 |
| 142 void registerConstSymbol(String name) { | 142 void registerConstSymbol(String name) { |
| 143 backend.registerConstSymbol(name, this); | 143 backend.registerConstSymbol(name); |
| 144 } | 144 } |
| 145 | 145 |
| 146 void registerSpecializedGetInterceptor(Set<ClassElement> classes) { | 146 void registerSpecializedGetInterceptor(Set<ClassElement> classes) { |
| 147 backend.registerSpecializedGetInterceptor(classes); | 147 backend.registerSpecializedGetInterceptor(classes); |
| 148 } | 148 } |
| 149 | 149 |
| 150 void registerUseInterceptor() { | 150 void registerUseInterceptor() { |
| 151 backend.registerUseInterceptor(world); | 151 backend.registerUseInterceptor(world); |
| 152 } | 152 } |
| 153 | 153 |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 | 205 |
| 206 TreeElements get resolutionTree => element.resolvedAst.elements; | 206 TreeElements get resolutionTree => element.resolvedAst.elements; |
| 207 | 207 |
| 208 WorldImpact run(Compiler compiler, CodegenEnqueuer world) { | 208 WorldImpact run(Compiler compiler, CodegenEnqueuer world) { |
| 209 if (world.isProcessed(element)) return const WorldImpact(); | 209 if (world.isProcessed(element)) return const WorldImpact(); |
| 210 | 210 |
| 211 registry = new CodegenRegistry(compiler, resolutionTree); | 211 registry = new CodegenRegistry(compiler, resolutionTree); |
| 212 return compiler.codegen(this, world); | 212 return compiler.codegen(this, world); |
| 213 } | 213 } |
| 214 } | 214 } |
| OLD | NEW |