Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index 2e05654ef82046552d6abb929ad7ede0f2f79089..d45e7d14df1416f159230d70cd1f08480dd5f886 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -4310,6 +4310,7 @@ void HOptimizedGraphBuilder::VisitObjectLiteral(ObjectLiteral* expr) { |
ASSERT(!HasStackOverflow()); |
ASSERT(current_block() != NULL); |
ASSERT(current_block()->HasPredecessor()); |
+ expr->BuildConstantProperties(isolate()); |
Handle<JSFunction> closure = function_state()->compilation_info()->closure(); |
HInstruction* literal; |
@@ -4431,6 +4432,7 @@ void HOptimizedGraphBuilder::VisitArrayLiteral(ArrayLiteral* expr) { |
ASSERT(!HasStackOverflow()); |
ASSERT(current_block() != NULL); |
ASSERT(current_block()->HasPredecessor()); |
+ expr->BuildConstantElements(isolate()); |
ZoneList<Expression*>* subexprs = expr->values(); |
int length = subexprs->length(); |
HInstruction* literal; |