| Index: src/compiler/ast-graph-builder.cc
|
| diff --git a/src/compiler/ast-graph-builder.cc b/src/compiler/ast-graph-builder.cc
|
| index 0476aed3144084a7d309289bc55fbe261fca618d..287ad61af8f16c1dac7129c5525105d29f576590 100644
|
| --- a/src/compiler/ast-graph-builder.cc
|
| +++ b/src/compiler/ast-graph-builder.cc
|
| @@ -1663,9 +1663,10 @@ void AstGraphBuilder::VisitClassLiteralContents(ClassLiteral* expr) {
|
| DCHECK_NOT_NULL(expr->class_variable_proxy());
|
| Variable* var = expr->class_variable_proxy()->var();
|
| FrameStateBeforeAndAfter states(this, BailoutId::None());
|
| - VectorSlotPair feedback = CreateVectorSlotPair(
|
| - FLAG_vector_stores ? expr->GetNthSlot(store_slot_index++)
|
| - : FeedbackVectorICSlot::Invalid());
|
| + VectorSlotPair feedback =
|
| + CreateVectorSlotPair(FLAG_vector_stores && var->IsUnallocated()
|
| + ? expr->GetNthSlot(store_slot_index++)
|
| + : FeedbackVectorICSlot::Invalid());
|
| BuildVariableAssignment(var, literal, Token::INIT_CONST, feedback,
|
| BailoutId::None(), states);
|
| }
|
|
|