Index: src/mips64/full-codegen-mips64.cc |
diff --git a/src/mips64/full-codegen-mips64.cc b/src/mips64/full-codegen-mips64.cc |
index 025c4ae52e5f23aa2ce8b0110fa3bb3787b24a1c..eb143f8deecb4a8ca9940a65f8a157ce0df14f02 100644 |
--- a/src/mips64/full-codegen-mips64.cc |
+++ b/src/mips64/full-codegen-mips64.cc |
@@ -1740,10 +1740,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; |
} |
} |