| Index: src/mips64/full-codegen-mips64.cc
|
| diff --git a/src/mips64/full-codegen-mips64.cc b/src/mips64/full-codegen-mips64.cc
|
| index e4da40a4aee2a4159558a1de0de803247a4d6358..5ffc81863644d0ce972f9ee6fc2a3f8764c6fe4a 100644
|
| --- a/src/mips64/full-codegen-mips64.cc
|
| +++ b/src/mips64/full-codegen-mips64.cc
|
| @@ -2525,7 +2525,8 @@ void FullCodeGenerator::EmitInlineSmiBinaryOp(BinaryOperation* expr,
|
| }
|
|
|
|
|
| -void FullCodeGenerator::EmitClassDefineProperties(ClassLiteral* lit) {
|
| +void FullCodeGenerator::EmitClassDefineProperties(ClassLiteral* lit,
|
| + int* used_store_slots) {
|
| // Constructor is in v0.
|
| DCHECK(lit != NULL);
|
| __ push(v0);
|
| @@ -2537,10 +2538,6 @@ void FullCodeGenerator::EmitClassDefineProperties(ClassLiteral* lit) {
|
| FieldMemOperand(v0, JSFunction::kPrototypeOrInitialMapOffset));
|
| __ push(scratch);
|
|
|
| - // store_slot_index points to the vector IC slot for the next store IC used.
|
| - // ClassLiteral::ComputeFeedbackRequirements controls the allocation of slots
|
| - // and must be updated if the number of store ICs emitted here changes.
|
| - int store_slot_index = 0;
|
| for (int i = 0; i < lit->properties()->length(); i++) {
|
| ObjectLiteral::Property* property = lit->properties()->at(i);
|
| Expression* value = property->value();
|
| @@ -2564,7 +2561,7 @@ void FullCodeGenerator::EmitClassDefineProperties(ClassLiteral* lit) {
|
|
|
| VisitForStackValue(value);
|
| EmitSetHomeObjectIfNeeded(value, 2,
|
| - lit->SlotForHomeObject(value, &store_slot_index));
|
| + lit->SlotForHomeObject(value, used_store_slots));
|
|
|
| switch (property->kind()) {
|
| case ObjectLiteral::Property::CONSTANT:
|
| @@ -2597,10 +2594,6 @@ void FullCodeGenerator::EmitClassDefineProperties(ClassLiteral* lit) {
|
|
|
| // constructor
|
| __ CallRuntime(Runtime::kToFastProperties, 1);
|
| -
|
| - // Verify that compilation exactly consumed the number of store ic slots that
|
| - // the ClassLiteral node had to offer.
|
| - DCHECK(!FLAG_vector_stores || store_slot_index == lit->slot_count());
|
| }
|
|
|
|
|
| @@ -5089,7 +5082,7 @@ void FullCodeGenerator::VisitCountOperation(CountOperation* expr) {
|
| }
|
| } else {
|
| EmitVariableAssignment(expr->expression()->AsVariableProxy()->var(),
|
| - Token::ASSIGN);
|
| + Token::ASSIGN, expr->CountSlot());
|
| PrepareForBailoutForId(expr->AssignmentId(), TOS_REG);
|
| context()->Plug(v0);
|
| }
|
|
|