Index: src/ia32/lithium-codegen-ia32.cc |
diff --git a/src/ia32/lithium-codegen-ia32.cc b/src/ia32/lithium-codegen-ia32.cc |
index ad8c9e08613c186cf6dabab31e49b7ee1797f875..a7a7c425e1613aedd7ea56dda2d327a0deaaa44a 100644 |
--- a/src/ia32/lithium-codegen-ia32.cc |
+++ b/src/ia32/lithium-codegen-ia32.cc |
@@ -977,17 +977,10 @@ int LCodeGen::DefineDeoptimizationLiteral(Handle<Object> literal) { |
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(); |
} |