| 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 373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 384 void registerInstantiatedClass(ClassElement element) { | 384 void registerInstantiatedClass(ClassElement element) { |
| 385 universe.instantiatedClasses.add(element); | 385 universe.instantiatedClasses.add(element); |
| 386 enqueuer.onRegisterInstantiatedClass(element); | 386 enqueuer.onRegisterInstantiatedClass(element); |
| 387 } | 387 } |
| 388 | 388 |
| 389 // TODO(ngeoffray): This should get a type. | 389 // TODO(ngeoffray): This should get a type. |
| 390 void registerIsCheck(Element element) { | 390 void registerIsCheck(Element element) { |
| 391 universe.isChecks.add(element); | 391 universe.isChecks.add(element); |
| 392 } | 392 } |
| 393 | 393 |
| 394 Type resolveType(ClassElement element) { | 394 void resolveClass(ClassElement element) { |
| 395 return withCurrentElement(element, () => resolver.resolveType(element)); | 395 withCurrentElement(element, () => resolver.resolveClass(element)); |
| 396 } | 396 } |
| 397 | 397 |
| 398 FunctionParameters resolveSignature(FunctionElement element) { | 398 FunctionParameters resolveSignature(FunctionElement element) { |
| 399 return withCurrentElement(element, | 399 return withCurrentElement(element, |
| 400 () => resolver.resolveSignature(element)); | 400 () => resolver.resolveSignature(element)); |
| 401 } | 401 } |
| 402 | 402 |
| 403 Constant compileVariable(VariableElement element) { | 403 Constant compileVariable(VariableElement element) { |
| 404 return withCurrentElement(element, () { | 404 return withCurrentElement(element, () { |
| 405 return constantHandler.compileVariable(element); | 405 return constantHandler.compileVariable(element); |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 539 } | 539 } |
| 540 } | 540 } |
| 541 | 541 |
| 542 class SourceSpan { | 542 class SourceSpan { |
| 543 final Uri uri; | 543 final Uri uri; |
| 544 final int begin; | 544 final int begin; |
| 545 final int end; | 545 final int end; |
| 546 | 546 |
| 547 const SourceSpan(this.uri, this.begin, this.end); | 547 const SourceSpan(this.uri, this.begin, this.end); |
| 548 } | 548 } |
| OLD | NEW |