| Index: src/x64/lithium-codegen-x64.cc
|
| diff --git a/src/x64/lithium-codegen-x64.cc b/src/x64/lithium-codegen-x64.cc
|
| index 740ea8a85b668425c01c0e98c9afc64a7219d5ee..b9b6abac7152c02127c5b4358e3a3dfd08a1c239 100644
|
| --- a/src/x64/lithium-codegen-x64.cc
|
| +++ b/src/x64/lithium-codegen-x64.cc
|
| @@ -900,17 +900,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();
|
| }
|
|
|
|
|