Index: src/runtime/runtime-test.cc |
diff --git a/src/runtime/runtime-test.cc b/src/runtime/runtime-test.cc |
index d1fd7d3bbf5391e740191bc49aa5922c2dcf60bb..f6393a36169a3f4dec0b9766e0aa1e14af7129c3 100644 |
--- a/src/runtime/runtime-test.cc |
+++ b/src/runtime/runtime-test.cc |
@@ -171,7 +171,7 @@ RUNTIME_FUNCTION(Runtime_OptimizeOsr) { |
// Make the profiler arm all back edges in unoptimized code. |
if (function->shared()->HasBytecodeArray() || |
- function->shared()->code()->kind() == Code::FUNCTION) { |
+ function->shared()->HasBaselineCode()) { |
isolate->runtime_profiler()->AttemptOnStackReplacement( |
*function, AbstractCode::kMaxLoopNestingMarker); |
} |