| Index: src/runtime/runtime-debug.cc
|
| diff --git a/src/runtime/runtime-debug.cc b/src/runtime/runtime-debug.cc
|
| index 99c1fe73201b8d6a2dfac904f20df31058acba29..0d2f65d571e2e7101e4f4d98494e8ccae88f8bce 100644
|
| --- a/src/runtime/runtime-debug.cc
|
| +++ b/src/runtime/runtime-debug.cc
|
| @@ -476,7 +476,9 @@ class FrameInspector {
|
| // Calculate the deoptimized frame.
|
| if (frame->is_optimized()) {
|
| // TODO(turbofan): Revisit once we support deoptimization.
|
| - if (frame->LookupCode()->is_turbofanned() && !FLAG_turbo_deoptimization) {
|
| + if (frame->LookupCode()->is_turbofanned() &&
|
| + frame->function()->shared()->asm_function() &&
|
| + !FLAG_turbo_asm_deoptimization) {
|
| is_optimized_ = false;
|
| return;
|
| }
|
| @@ -508,7 +510,9 @@ class FrameInspector {
|
| }
|
| Object* GetExpression(int index) {
|
| // TODO(turbofan): Revisit once we support deoptimization.
|
| - if (frame_->LookupCode()->is_turbofanned() && !FLAG_turbo_deoptimization) {
|
| + if (frame_->LookupCode()->is_turbofanned() &&
|
| + frame_->function()->shared()->asm_function() &&
|
| + !FLAG_turbo_asm_deoptimization) {
|
| return isolate_->heap()->undefined_value();
|
| }
|
| return is_optimized_ ? deoptimized_frame_->GetExpression(index)
|
|
|