| 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 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 396 void registerInstantiatedClass(ClassElement element) { | 396 void registerInstantiatedClass(ClassElement element) { |
| 397 universe.instantiatedClasses.add(element); | 397 universe.instantiatedClasses.add(element); |
| 398 enqueuer.onRegisterInstantiatedClass(element); | 398 enqueuer.onRegisterInstantiatedClass(element); |
| 399 } | 399 } |
| 400 | 400 |
| 401 // TODO(ngeoffray): This should get a type. | 401 // TODO(ngeoffray): This should get a type. |
| 402 void registerIsCheck(Element element) { | 402 void registerIsCheck(Element element) { |
| 403 universe.isChecks.add(element); | 403 universe.isChecks.add(element); |
| 404 } | 404 } |
| 405 | 405 |
| 406 Type resolveType(ClassElement element) { | 406 void resolveClass(ClassElement element) { |
| 407 return withCurrentElement(element, () => resolver.resolveType(element)); | 407 withCurrentElement(element, () => resolver.resolveClass(element)); |
| 408 } | 408 } |
| 409 | 409 |
| 410 FunctionParameters resolveSignature(FunctionElement element) { | 410 FunctionParameters resolveSignature(FunctionElement element) { |
| 411 return withCurrentElement(element, | 411 return withCurrentElement(element, |
| 412 () => resolver.resolveSignature(element)); | 412 () => resolver.resolveSignature(element)); |
| 413 } | 413 } |
| 414 | 414 |
| 415 Constant compileVariable(VariableElement element) { | 415 Constant compileVariable(VariableElement element) { |
| 416 return withCurrentElement(element, () { | 416 return withCurrentElement(element, () { |
| 417 return constantHandler.compileVariable(element); | 417 return constantHandler.compileVariable(element); |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 551 } | 551 } |
| 552 } | 552 } |
| 553 | 553 |
| 554 class SourceSpan { | 554 class SourceSpan { |
| 555 final Uri uri; | 555 final Uri uri; |
| 556 final int begin; | 556 final int begin; |
| 557 final int end; | 557 final int end; |
| 558 | 558 |
| 559 const SourceSpan(this.uri, this.begin, this.end); | 559 const SourceSpan(this.uri, this.begin, this.end); |
| 560 } | 560 } |
| OLD | NEW |