Index: src/arm64/lithium-codegen-arm64.cc |
diff --git a/src/arm64/lithium-codegen-arm64.cc b/src/arm64/lithium-codegen-arm64.cc |
index 55524819e1b1a7a820e43c4149d7284fa509571b..94f09e086f1af592bbdac4dd9fd176181e69f16c 100644 |
--- a/src/arm64/lithium-codegen-arm64.cc |
+++ b/src/arm64/lithium-codegen-arm64.cc |
@@ -997,15 +997,10 @@ void LCodeGen::PopulateDeoptimizationData(Handle<Code> code) { |
void LCodeGen::PopulateDeoptimizationLiteralsWithInlinedFunctions() { |
- DCHECK(deoptimization_literals_.length() == 0); |
- |
- const ZoneList<Handle<JSFunction> >* inlined_closures = |
- chunk()->inlined_closures(); |
- |
- for (int i = 0, length = inlined_closures->length(); i < length; i++) { |
- DefineDeoptimizationLiteral(inlined_closures->at(i)); |
+ DCHECK_EQ(0, deoptimization_literals_.length()); |
+ for (auto function : chunk()->inlined_functions()) { |
+ DefineDeoptimizationLiteral(function); |
} |
- |
inlined_function_count_ = deoptimization_literals_.length(); |
} |