Index: src/x87/full-codegen-x87.cc |
diff --git a/src/x87/full-codegen-x87.cc b/src/x87/full-codegen-x87.cc |
index a017b12ba10c02d825fa868a268516948df091c4..84df83b1bcb82269dc21b33678fa6390c20ca608 100644 |
--- a/src/x87/full-codegen-x87.cc |
+++ b/src/x87/full-codegen-x87.cc |
@@ -1667,10 +1667,14 @@ void FullCodeGenerator::VisitObjectLiteral(ObjectLiteral* expr) { |
__ CallRuntime(Runtime::kInternalSetPrototype, 2); |
break; |
case ObjectLiteral::Property::GETTER: |
- accessor_table.lookup(key)->second->getter = value; |
+ if (property->emit_store()) { |
+ accessor_table.lookup(key)->second->getter = value; |
+ } |
break; |
case ObjectLiteral::Property::SETTER: |
- accessor_table.lookup(key)->second->setter = value; |
+ if (property->emit_store()) { |
+ accessor_table.lookup(key)->second->setter = value; |
+ } |
break; |
} |
} |