Index: src/ia32/full-codegen-ia32.cc |
diff --git a/src/ia32/full-codegen-ia32.cc b/src/ia32/full-codegen-ia32.cc |
index 9a070ce994035ed3ac0347bfe266a5c75a76c28b..7a499151b50790c1606161cbedf9c6cc4f31a332 100644 |
--- a/src/ia32/full-codegen-ia32.cc |
+++ b/src/ia32/full-codegen-ia32.cc |
@@ -1683,10 +1683,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; |
} |
} |