Index: src/full-codegen/full-codegen.cc |
diff --git a/src/full-codegen/full-codegen.cc b/src/full-codegen/full-codegen.cc |
index f214eaefc5264953865ba850e6d2e136f3beb8f1..1bd12d511087c9ffad97d1724ea6e154ae0a6174 100644 |
--- a/src/full-codegen/full-codegen.cc |
+++ b/src/full-codegen/full-codegen.cc |
@@ -1529,9 +1529,10 @@ void FullCodeGenerator::VisitClassLiteral(ClassLiteral* lit) { |
PushOperand(result_register()); |
EmitClassDefineProperties(lit); |
+ DropOperands(1); |
- // Set both the prototype and constructor to have fast properties. |
- CallRuntimeWithOperands(Runtime::kFinalizeClassDefinition); |
+ // Set the constructor to have fast properties. |
+ CallRuntimeWithOperands(Runtime::kToFastProperties); |
if (lit->class_variable_proxy() != nullptr) { |
EmitVariableAssignment(lit->class_variable_proxy()->var(), Token::INIT, |