Index: src/mips/full-codegen-mips.cc |
diff --git a/src/mips/full-codegen-mips.cc b/src/mips/full-codegen-mips.cc |
index 9a0466da1e1aed37bdef3e2dc2ce05fe43eab414..d745badc4135ebf245990cf6e85577f239a5b91f 100644 |
--- a/src/mips/full-codegen-mips.cc |
+++ b/src/mips/full-codegen-mips.cc |
@@ -2562,6 +2562,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(v0); |
+ } |
+ |
VisitForStackValue(value); |
EmitSetHomeObjectIfNeeded(value, 2); |