Index: src/frames.cc |
diff --git a/src/frames.cc b/src/frames.cc |
index 56fb5efc248a85e603f9a5adb2a3f9238e0190e2..4dd64aad63af3154caa64e650a15e0138865109c 100644 |
--- a/src/frames.cc |
+++ b/src/frames.cc |
@@ -879,7 +879,8 @@ void OptimizedFrame::Summarize(List<FrameSummary>* frames) { |
// Delegate to JS frame in absence of turbofan deoptimization. |
// TODO(turbofan): Revisit once we support deoptimization across the board. |
- if (LookupCode()->is_turbofanned() && !FLAG_turbo_deoptimization) { |
+ if (LookupCode()->is_turbofanned() && function()->shared()->asm_function() && |
+ !FLAG_turbo_asm_deoptimization) { |
return JavaScriptFrame::Summarize(frames); |
} |
@@ -1016,7 +1017,8 @@ int OptimizedFrame::GetInlineCount() { |
// Delegate to JS frame in absence of turbofan deoptimization. |
// TODO(turbofan): Revisit once we support deoptimization across the board. |
- if (LookupCode()->is_turbofanned() && !FLAG_turbo_deoptimization) { |
+ if (LookupCode()->is_turbofanned() && function()->shared()->asm_function() && |
+ !FLAG_turbo_asm_deoptimization) { |
return JavaScriptFrame::GetInlineCount(); |
} |
@@ -1040,7 +1042,8 @@ void OptimizedFrame::GetFunctions(List<JSFunction*>* functions) { |
// Delegate to JS frame in absence of turbofan deoptimization. |
// TODO(turbofan): Revisit once we support deoptimization across the board. |
- if (LookupCode()->is_turbofanned() && !FLAG_turbo_deoptimization) { |
+ if (LookupCode()->is_turbofanned() && function()->shared()->asm_function() && |
+ !FLAG_turbo_asm_deoptimization) { |
return JavaScriptFrame::GetFunctions(functions); |
} |