Index: src/runtime-profiler.cc |
diff --git a/src/runtime-profiler.cc b/src/runtime-profiler.cc |
index 1871f04e91a68bb09ff0a9bb24f5ba34e50b5656..9eb092af8e10f2cdde9146b92f3dfd6d1156e324 100644 |
--- a/src/runtime-profiler.cc |
+++ b/src/runtime-profiler.cc |
@@ -164,7 +164,7 @@ void RuntimeProfiler::AttemptOnStackReplacement(JavaScriptFrame* frame, |
int loop_nesting_levels) { |
JSFunction* function = frame->function(); |
SharedFunctionInfo* shared = function->shared(); |
- if (!FLAG_use_osr || function->shared()->IsBuiltin()) { |
+ if (!FLAG_use_osr || !function->shared()->IsUserJavaScript()) { |
return; |
} |