Index: src/compiler/ast-graph-builder.cc |
diff --git a/src/compiler/ast-graph-builder.cc b/src/compiler/ast-graph-builder.cc |
index c89be45623c9d239873992d2feba39727163c1b6..dff56f6629dbb43e6df654d6b724a1aee58d74ff 100644 |
--- a/src/compiler/ast-graph-builder.cc |
+++ b/src/compiler/ast-graph-builder.cc |
@@ -1670,12 +1670,11 @@ void AstGraphBuilder::VisitClassLiteralContents(ClassLiteral* expr) { |
} |
} |
- // Set both the prototype and constructor to have fast properties. |
+ // Set the constructor to have fast properties. |
prototype = environment()->Pop(); |
literal = environment()->Pop(); |
- const Operator* op = |
- javascript()->CallRuntime(Runtime::kFinalizeClassDefinition); |
- literal = NewNode(op, literal, prototype); |
+ const Operator* op = javascript()->CallRuntime(Runtime::kToFastProperties); |
+ literal = NewNode(op, literal); |
// Assign to class variable. |
if (expr->class_variable_proxy() != nullptr) { |