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