Index: runtime/vm/ast.cc |
=================================================================== |
--- runtime/vm/ast.cc (revision 34784) |
+++ runtime/vm/ast.cc (working copy) |
@@ -418,7 +418,8 @@ |
const Instance* ClosureNode::EvalConstExpr() const { |
- if (function().IsImplicitStaticClosureFunction()) { |
+ if (!is_deferred_reference_ && |
+ function().IsImplicitStaticClosureFunction()) { |
// Return a value that represents an instance. Only the type is relevant. |
return &Instance::Handle(); |
} |
@@ -562,6 +563,9 @@ |
bool StaticGetterNode::IsPotentiallyConst() const { |
+ if (is_deferred_reference_) { |
+ return false; |
+ } |
const String& getter_name = |
String::Handle(Field::GetterName(this->field_name())); |
const Function& getter_func = |
@@ -574,6 +578,9 @@ |
const Instance* StaticGetterNode::EvalConstExpr() const { |
+ if (is_deferred_reference_) { |
+ return NULL; |
+ } |
const String& getter_name = |
String::Handle(Field::GetterName(this->field_name())); |
const Function& getter_func = |