Index: src/arm64/full-codegen-arm64.cc |
diff --git a/src/arm64/full-codegen-arm64.cc b/src/arm64/full-codegen-arm64.cc |
index 0bfd9cbd6b0a86e9b58b0a654afc33e0195345ad..9ffbf8862c8fbc439b4b8badeea14367fa09a3a0 100644 |
--- a/src/arm64/full-codegen-arm64.cc |
+++ b/src/arm64/full-codegen-arm64.cc |
@@ -1739,10 +1739,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; |
} |
} |