| Index: src/crankshaft/hydrogen.cc
|
| diff --git a/src/crankshaft/hydrogen.cc b/src/crankshaft/hydrogen.cc
|
| index 162424f23d82a151b261bfcd3fbd324009f0bdf2..dd99183faa3a18ab16168c734d5b93c14cc3bce8 100644
|
| --- a/src/crankshaft/hydrogen.cc
|
| +++ b/src/crankshaft/hydrogen.cc
|
| @@ -5990,17 +5990,7 @@ void HOptimizedGraphBuilder::VisitObjectLiteral(ObjectLiteral* expr) {
|
| }
|
| }
|
|
|
| - if (expr->has_function()) {
|
| - // Return the result of the transformation to fast properties
|
| - // instead of the original since this operation changes the map
|
| - // of the object. This makes sure that the original object won't
|
| - // be used by other optimized code before it is transformed
|
| - // (e.g. because of code motion).
|
| - HToFastProperties* result = Add<HToFastProperties>(Pop());
|
| - return ast_context()->ReturnValue(result);
|
| - } else {
|
| - return ast_context()->ReturnValue(Pop());
|
| - }
|
| + return ast_context()->ReturnValue(Pop());
|
| }
|
|
|
|
|
|
|