Index: src/interpreter/bytecode-generator.cc |
diff --git a/src/interpreter/bytecode-generator.cc b/src/interpreter/bytecode-generator.cc |
index 61b63a6dea9f95e2e0995dc355aa66151520471b..7b5111126de3900972a29206e4618527afbd716b 100644 |
--- a/src/interpreter/bytecode-generator.cc |
+++ b/src/interpreter/bytecode-generator.cc |
@@ -1610,13 +1610,11 @@ void BytecodeGenerator::VisitObjectLiteral(ObjectLiteral* expr) { |
FastCloneShallowObjectStub::IsSupported(expr), |
FastCloneShallowObjectStub::PropertiesCount(expr->properties_count()), |
expr->ComputeFlags()); |
- builder()->CreateObjectLiteral(expr->constant_properties(), |
- expr->literal_index(), flags); |
- |
// Allocate in the outer scope since this register is used to return the |
// expression's results to the caller. |
Register literal = register_allocator()->outer()->NewRegister(); |
- builder()->StoreAccumulatorInRegister(literal); |
+ builder()->CreateObjectLiteral(expr->constant_properties(), |
+ expr->literal_index(), flags, literal); |
// Store computed values into the literal. |
int property_index = 0; |