Index: src/ast.cc |
=================================================================== |
--- src/ast.cc (revision 1544) |
+++ src/ast.cc (working copy) |
@@ -135,8 +135,12 @@ |
Object* k = *key->handle(); |
if (k->IsSymbol() && Heap::Proto_symbol()->Equals(String::cast(k))) { |
kind_ = PROTOTYPE; |
+ } else if (value_->AsMaterializedLiteral() != NULL) { |
+ kind_ = MATERIALIZED_LITERAL; |
+ } else if (value_->AsLiteral() != NULL) { |
+ kind_ = CONSTANT; |
} else { |
- kind_ = value_->AsLiteral() == NULL ? COMPUTED : CONSTANT; |
+ kind_ = COMPUTED; |
} |
} |