Index: src/arm64/full-codegen-arm64.cc |
diff --git a/src/arm64/full-codegen-arm64.cc b/src/arm64/full-codegen-arm64.cc |
index 9e27b041bad8f95aa8c9aff7eda56c2a24b4aad3..bdc025876c39ee5ca5ac7b485291c419e357376f 100644 |
--- a/src/arm64/full-codegen-arm64.cc |
+++ b/src/arm64/full-codegen-arm64.cc |
@@ -2239,7 +2239,8 @@ void FullCodeGenerator::EmitBinaryOp(BinaryOperation* expr, Token::Value op) { |
} |
-void FullCodeGenerator::EmitClassDefineProperties(ClassLiteral* lit) { |
+void FullCodeGenerator::EmitClassDefineProperties(ClassLiteral* lit, |
+ int* used_store_slots) { |
// Constructor is in x0. |
DCHECK(lit != NULL); |
__ push(x0); |
@@ -2251,10 +2252,6 @@ void FullCodeGenerator::EmitClassDefineProperties(ClassLiteral* lit) { |
FieldMemOperand(x0, 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(); |
@@ -2278,7 +2275,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: |
@@ -2311,10 +2308,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()); |
} |