Index: src/arm64/full-codegen-arm64.cc |
diff --git a/src/arm64/full-codegen-arm64.cc b/src/arm64/full-codegen-arm64.cc |
index 11355bbe7b8fa28cc8c1f186d3a4110bed336522..9731f1b62640f12718022319d4e01384d2383fd4 100644 |
--- a/src/arm64/full-codegen-arm64.cc |
+++ b/src/arm64/full-codegen-arm64.cc |
@@ -2278,6 +2278,16 @@ void FullCodeGenerator::EmitClassDefineProperties(ClassLiteral* lit) { |
} |
__ Push(scratch); |
EmitPropertyKey(property, lit->GetIdForProperty(i)); |
+ |
+ // The static prototype property is read only. We handle the non computed |
+ // property name case in the parser. Since this is the only case where we |
+ // need to check for an own read only property we special case this so we do |
+ // not need to do this for every property. |
+ if (property->is_static() && property->is_computed_name()) { |
+ __ CallRuntime(Runtime::kThrowIfStaticPrototype, 1); |
+ __ Push(x0); |
+ } |
+ |
VisitForStackValue(value); |
EmitSetHomeObjectIfNeeded(value, 2); |