| Index: src/mips64/full-codegen-mips64.cc
|
| diff --git a/src/mips64/full-codegen-mips64.cc b/src/mips64/full-codegen-mips64.cc
|
| index 510bf17dfaf50f563baa142fd911c0abeff0dc17..b2bbfeaab9fcccf4cdabf99baaf6e1d1bb1a0333 100644
|
| --- a/src/mips64/full-codegen-mips64.cc
|
| +++ b/src/mips64/full-codegen-mips64.cc
|
| @@ -2560,6 +2560,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);
|
|
|
|
|