| 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 class WorkItem { | 5 class WorkItem { |
| 6 final Element element; | 6 final Element element; |
| 7 TreeElements resolutionTree; | 7 TreeElements resolutionTree; |
| 8 Function run; | 8 Function run; |
| 9 bool allowSpeculativeOptimization = true; | 9 bool allowSpeculativeOptimization = true; |
| 10 List<HTypeGuard> guards = const <HTypeGuard>[]; | 10 List<HTypeGuard> guards = const <HTypeGuard>[]; |
| (...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 378 void registerGetOfStaticFunction(FunctionElement element) { | 378 void registerGetOfStaticFunction(FunctionElement element) { |
| 379 registerStaticUse(element); | 379 registerStaticUse(element); |
| 380 universe.staticFunctionsNeedingGetter.add(element); | 380 universe.staticFunctionsNeedingGetter.add(element); |
| 381 } | 381 } |
| 382 | 382 |
| 383 void registerDynamicInvocation(SourceString methodName, Selector selector) { | 383 void registerDynamicInvocation(SourceString methodName, Selector selector) { |
| 384 assert(selector !== null); | 384 assert(selector !== null); |
| 385 enqueuer.registerInvocation(methodName, selector); | 385 enqueuer.registerInvocation(methodName, selector); |
| 386 } | 386 } |
| 387 | 387 |
| 388 void registerDynamicInvocationOf(Element element) { |
| 389 addToWorkList(element); |
| 390 } |
| 391 |
| 388 void registerDynamicGetter(SourceString methodName) { | 392 void registerDynamicGetter(SourceString methodName) { |
| 389 enqueuer.registerGetter(methodName); | 393 enqueuer.registerGetter(methodName); |
| 390 } | 394 } |
| 391 | 395 |
| 392 void registerDynamicSetter(SourceString methodName) { | 396 void registerDynamicSetter(SourceString methodName) { |
| 393 enqueuer.registerSetter(methodName); | 397 enqueuer.registerSetter(methodName); |
| 394 } | 398 } |
| 395 | 399 |
| 396 void registerInstantiatedClass(ClassElement element) { | 400 void registerInstantiatedClass(ClassElement element) { |
| 397 universe.instantiatedClasses.add(element); | 401 universe.instantiatedClasses.add(element); |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 551 } | 555 } |
| 552 } | 556 } |
| 553 | 557 |
| 554 class SourceSpan { | 558 class SourceSpan { |
| 555 final Uri uri; | 559 final Uri uri; |
| 556 final int begin; | 560 final int begin; |
| 557 final int end; | 561 final int end; |
| 558 | 562 |
| 559 const SourceSpan(this.uri, this.begin, this.end); | 563 const SourceSpan(this.uri, this.begin, this.end); |
| 560 } | 564 } |
| OLD | NEW |