| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 resolution; | 5 part of resolution; |
| 6 | 6 |
| 7 /// [ResolutionRegistry] collects all resolution information. It stores node | 7 /// [ResolutionRegistry] collects all resolution information. It stores node |
| 8 /// related information in a [TreeElements] mapping and registers calls with | 8 /// related information in a [TreeElements] mapping and registers calls with |
| 9 /// [Backend], [World] and [Enqueuer]. | 9 /// [Backend], [World] and [Enqueuer]. |
| 10 // TODO(johnniwinther): Split this into an interface and implementation class. | 10 // TODO(johnniwinther): Split this into an interface and implementation class. |
| (...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 267 void registerJsCall(Node node, ResolverVisitor visitor) { | 267 void registerJsCall(Node node, ResolverVisitor visitor) { |
| 268 world.registerJsCall(node, visitor); | 268 world.registerJsCall(node, visitor); |
| 269 } | 269 } |
| 270 | 270 |
| 271 // TODO(johnniwinther): Remove the [ResolverVisitor] dependency. Its only | 271 // TODO(johnniwinther): Remove the [ResolverVisitor] dependency. Its only |
| 272 // needed to lookup types in the current scope. | 272 // needed to lookup types in the current scope. |
| 273 void registerJsEmbeddedGlobalCall(Node node, ResolverVisitor visitor) { | 273 void registerJsEmbeddedGlobalCall(Node node, ResolverVisitor visitor) { |
| 274 world.registerJsEmbeddedGlobalCall(node, visitor); | 274 world.registerJsEmbeddedGlobalCall(node, visitor); |
| 275 } | 275 } |
| 276 | 276 |
| 277 // TODO(johnniwinther): Remove the [ResolverVisitor] dependency. Its only |
| 278 // needed to lookup types in the current scope. |
| 279 void registerJsCompilerMacroCall(Node node, ResolverVisitor visitor) { |
| 280 world.registerJsCompilerMacroCall(node, visitor); |
| 281 } |
| 282 |
| 277 void registerGetOfStaticFunction(FunctionElement element) { | 283 void registerGetOfStaticFunction(FunctionElement element) { |
| 278 world.registerGetOfStaticFunction(element); | 284 world.registerGetOfStaticFunction(element); |
| 279 } | 285 } |
| 280 | 286 |
| 281 void registerDynamicGetter(Selector selector) { | 287 void registerDynamicGetter(Selector selector) { |
| 282 world.registerDynamicGetter(selector); | 288 world.registerDynamicGetter(selector); |
| 283 } | 289 } |
| 284 | 290 |
| 285 void registerDynamicSetter(Selector selector) { | 291 void registerDynamicSetter(Selector selector) { |
| 286 world.registerDynamicSetter(selector); | 292 world.registerDynamicSetter(selector); |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 365 } | 371 } |
| 366 | 372 |
| 367 bool isAssert(Send node) { | 373 bool isAssert(Send node) { |
| 368 return mapping.isAssert(node); | 374 return mapping.isAssert(node); |
| 369 } | 375 } |
| 370 | 376 |
| 371 void registerAsyncMarker(FunctionElement element) { | 377 void registerAsyncMarker(FunctionElement element) { |
| 372 backend.registerAsyncMarker(element, world, this); | 378 backend.registerAsyncMarker(element, world, this); |
| 373 } | 379 } |
| 374 } | 380 } |
| OLD | NEW |