| Index: src/full-codegen.cc
|
| ===================================================================
|
| --- src/full-codegen.cc (revision 3838)
|
| +++ src/full-codegen.cc (working copy)
|
| @@ -1050,7 +1050,13 @@
|
| // Nothing to do here.
|
| break;
|
| case NAMED_PROPERTY:
|
| - VisitForValue(prop->obj(), kStack);
|
| + if (expr->is_compound()) {
|
| + // We need the receiver both on the stack and in the accumulator.
|
| + VisitForValue(prop->obj(), kAccumulator);
|
| + __ push(result_register());
|
| + } else {
|
| + VisitForValue(prop->obj(), kStack);
|
| + }
|
| break;
|
| case KEYED_PROPERTY:
|
| VisitForValue(prop->obj(), kStack);
|
|
|