| Index: src/compiler/code-generator.cc
|
| diff --git a/src/compiler/code-generator.cc b/src/compiler/code-generator.cc
|
| index 6b9a8b86c6560794e57ab33cf8d4032389f69e0c..6be3f14f386333b58a58af85e6867cb2d74aa594 100644
|
| --- a/src/compiler/code-generator.cc
|
| +++ b/src/compiler/code-generator.cc
|
| @@ -76,8 +76,10 @@
|
|
|
| // Define deoptimization literals for all inlined functions.
|
| DCHECK_EQ(0u, deoptimization_literals_.size());
|
| - for (auto shared_info : info->inlined_functions()) {
|
| - if (!shared_info.is_identical_to(info->shared_info())) {
|
| + for (auto frame_state_descriptor : code()->frame_state_descriptors()) {
|
| + Handle<SharedFunctionInfo> shared_info;
|
| + if (frame_state_descriptor->shared_info().ToHandle(&shared_info) &&
|
| + !shared_info.is_identical_to(info->shared_info())) {
|
| DefineDeoptimizationLiteral(shared_info);
|
| }
|
| }
|
|
|