| Index: src/frames.cc
|
| diff --git a/src/frames.cc b/src/frames.cc
|
| index 8e5b530a93b095f5b42160320f9be007124adab1..0e57429ea3077e2f50e056369ff6406b0ed34b70 100644
|
| --- a/src/frames.cc
|
| +++ b/src/frames.cc
|
| @@ -1146,8 +1146,9 @@ void OptimizedFrame::GetFunctions(List<JSFunction*>* functions) const {
|
|
|
| // Delegate to JS frame in absence of turbofan deoptimization.
|
| // TODO(turbofan): Revisit once we support deoptimization across the board.
|
| - if (LookupCode()->is_turbofanned() && function()->shared()->asm_function() &&
|
| - !FLAG_turbo_asm_deoptimization) {
|
| + Code* code = LookupCode();
|
| + if (code->kind() == Code::BUILTIN ||
|
| + CannotDeoptFromAsmCode(code, function())) {
|
| return JavaScriptFrame::GetFunctions(functions);
|
| }
|
|
|
|
|