| Index: src/runtime-profiler.cc
|
| diff --git a/src/runtime-profiler.cc b/src/runtime-profiler.cc
|
| index df6471e9d5b9a258e7dfd8ddb098f05459f95927..62a2d46a54094bca7352e482f2bd1606a40101be 100644
|
| --- a/src/runtime-profiler.cc
|
| +++ b/src/runtime-profiler.cc
|
| @@ -169,7 +169,7 @@ static void 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
|
|
|