| Index: src/hydrogen.cc
|
| ===================================================================
|
| --- src/hydrogen.cc (revision 6540)
|
| +++ src/hydrogen.cc (working copy)
|
| @@ -3018,7 +3018,8 @@
|
| HObjectLiteral* literal = (new HObjectLiteral(expr->constant_properties(),
|
| expr->fast_elements(),
|
| expr->literal_index(),
|
| - expr->depth()));
|
| + expr->depth(),
|
| + expr->has_function()));
|
| // The object is expected in the bailout environment during computation
|
| // of the property values and is the value of the entire expression.
|
| PushAndAdd(literal);
|
| @@ -3057,6 +3058,11 @@
|
| default: UNREACHABLE();
|
| }
|
| }
|
| +
|
| + if (expr->has_function()) {
|
| + AddInstruction(new HToFastProperties(Top()));
|
| + }
|
| +
|
| ast_context()->ReturnValue(Pop());
|
| }
|
|
|
|
|