Index: src/runtime/runtime-test.cc |
diff --git a/src/runtime/runtime-test.cc b/src/runtime/runtime-test.cc |
index e5d84d11913bc2d02d05599c578a489f53cd7c1e..e115ba9e2477110208be70a60c197dba08bbb443 100644 |
--- a/src/runtime/runtime-test.cc |
+++ b/src/runtime/runtime-test.cc |
@@ -20,7 +20,8 @@ RUNTIME_FUNCTION(Runtime_DeoptimizeFunction) { |
if (!function->IsOptimized()) return isolate->heap()->undefined_value(); |
// TODO(turbofan): Deoptimization is not supported yet. |
- if (function->code()->is_turbofanned() && !FLAG_turbo_deoptimization) { |
+ if (function->code()->is_turbofanned() && |
+ function->shared()->asm_function() && !FLAG_turbo_asm_deoptimization) { |
return isolate->heap()->undefined_value(); |
} |
@@ -50,7 +51,8 @@ RUNTIME_FUNCTION(Runtime_DeoptimizeNow) { |
if (!function->IsOptimized()) return isolate->heap()->undefined_value(); |
// TODO(turbofan): Deoptimization is not supported yet. |
- if (function->code()->is_turbofanned() && !FLAG_turbo_deoptimization) { |
+ if (function->code()->is_turbofanned() && |
+ function->shared()->asm_function() && !FLAG_turbo_asm_deoptimization) { |
return isolate->heap()->undefined_value(); |
} |