Index: pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart |
diff --git a/pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart b/pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart |
index 9ca821b66d4d2e83218b6ebabd495f6adb829e3f..94fb3f53d68140e28b9819b04f20caee0b7e7bae 100644 |
--- a/pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart |
+++ b/pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart |
@@ -99,6 +99,15 @@ class KernelAstAdapter extends KernelToElementMapMixin |
return value; |
} |
+ @override |
+ ConstantValue getFieldConstantValue(ir.Field field) { |
+ FieldElement element = getField(field); |
+ if (element.constant != null) { |
+ return computeConstantValue(element.constant); |
+ } |
+ return null; |
+ } |
+ |
/// Called to find the corresponding Kernel element for a particular Element |
/// before traversing over it with a Kernel visitor. |
ir.Node getInitialKernelNode(MemberElement originTarget) { |
@@ -219,15 +228,6 @@ class KernelAstAdapter extends KernelToElementMapMixin |
return getElement(variable) as LocalElement; |
} |
- // Is the member a lazy initialized static or top-level member? |
- bool isLazyStatic(ir.Member member) { |
- if (member is ir.Field) { |
- FieldElement field = _nodeToElement[member]; |
- return field.constant == null; |
- } |
- return false; |
- } |
- |
KernelJumpTarget getJumpTarget(ir.TreeNode node, |
{bool isContinueTarget: false}) { |
return _jumpTargets.putIfAbsent(node, () { |