| Index: src/runtime-profiler.cc
|
| diff --git a/src/runtime-profiler.cc b/src/runtime-profiler.cc
|
| index ce9a3082363d1966fd7a934b6cece51c44224059..816569a027c163a8901793d120c213b2a893c445 100644
|
| --- a/src/runtime-profiler.cc
|
| +++ b/src/runtime-profiler.cc
|
| @@ -185,7 +185,7 @@ void RuntimeProfiler::AttemptOnStackReplacement(JSFunction* function) {
|
| // We are not prepared to do OSR for a function that already has an
|
| // allocated arguments object. The optimized code would bypass it for
|
| // arguments accesses, which is unsound. Don't try OSR.
|
| - if (shared->scope_info()->HasArgumentsShadow()) return;
|
| + if (shared->uses_arguments()) return;
|
|
|
| // We're using on-stack replacement: patch the unoptimized code so that
|
| // any back edge in any unoptimized frame will trigger on-stack
|
|
|