| Index: src/x87/full-codegen-x87.cc
|
| diff --git a/src/x87/full-codegen-x87.cc b/src/x87/full-codegen-x87.cc
|
| index 33ae5a1c53f4448689a64712b3c154eab2d66240..600ae2c3dff096e9b86a61750c2b2432ed99a8a5 100644
|
| --- a/src/x87/full-codegen-x87.cc
|
| +++ b/src/x87/full-codegen-x87.cc
|
| @@ -1662,11 +1662,8 @@ void FullCodeGenerator::VisitObjectLiteral(ObjectLiteral* expr) {
|
| case ObjectLiteral::Property::PROTOTYPE:
|
| __ push(Operand(esp, 0)); // Duplicate receiver.
|
| VisitForStackValue(value);
|
| - if (property->emit_store()) {
|
| - __ CallRuntime(Runtime::kInternalSetPrototype, 2);
|
| - } else {
|
| - __ Drop(2);
|
| - }
|
| + DCHECK(property->emit_store());
|
| + __ CallRuntime(Runtime::kInternalSetPrototype, 2);
|
| break;
|
| case ObjectLiteral::Property::GETTER:
|
| accessor_table.lookup(key)->second->getter = value;
|
| @@ -1715,11 +1712,8 @@ void FullCodeGenerator::VisitObjectLiteral(ObjectLiteral* expr) {
|
| if (property->kind() == ObjectLiteral::Property::PROTOTYPE) {
|
| DCHECK(!property->is_computed_name());
|
| VisitForStackValue(value);
|
| - if (property->emit_store()) {
|
| - __ CallRuntime(Runtime::kInternalSetPrototype, 2);
|
| - } else {
|
| - __ Drop(2);
|
| - }
|
| + DCHECK(property->emit_store());
|
| + __ CallRuntime(Runtime::kInternalSetPrototype, 2);
|
| } else {
|
| EmitPropertyKey(property);
|
| VisitForStackValue(value);
|
|
|