| Index: src/mips64/full-codegen-mips64.cc
|
| diff --git a/src/mips64/full-codegen-mips64.cc b/src/mips64/full-codegen-mips64.cc
|
| index 99777e0845871c696e89a47bb6b3ad7fe3446157..1dc7bcc7a4fbe9a33622eb2d3865a75e7d401ff3 100644
|
| --- a/src/mips64/full-codegen-mips64.cc
|
| +++ b/src/mips64/full-codegen-mips64.cc
|
| @@ -2641,6 +2641,18 @@ void FullCodeGenerator::EmitClassDefineProperties(ClassLiteral* lit,
|
|
|
| // constructor
|
| __ CallRuntime(Runtime::kToFastProperties, 1);
|
| +
|
| + if (is_strong(language_mode())) {
|
| + __ ld(scratch,
|
| + FieldMemOperand(v0, JSFunction::kPrototypeOrInitialMapOffset));
|
| + __ Push(v0, scratch);
|
| + // TODO(conradw): It would be more efficient to define the properties with
|
| + // the right attributes the first time round.
|
| + // Freeze the prototype.
|
| + __ CallRuntime(Runtime::kObjectFreeze, 1);
|
| + // Freeze the constructor.
|
| + __ CallRuntime(Runtime::kObjectFreeze, 1);
|
| + }
|
| }
|
|
|
|
|
|
|