| Index: src/runtime-profiler.cc
|
| diff --git a/src/runtime-profiler.cc b/src/runtime-profiler.cc
|
| index 9b7dd34ccd1d61c6fdd6075cdd4de61c24c4ffd1..61a77dcfd1369eaec32e4fb52433de428e28eb35 100644
|
| --- a/src/runtime-profiler.cc
|
| +++ b/src/runtime-profiler.cc
|
| @@ -171,6 +171,10 @@ void RuntimeProfiler::AttemptOnStackReplacement(JSFunction* function) {
|
| // arguments accesses, which is unsound. Don't try OSR.
|
| if (shared->uses_arguments()) return;
|
|
|
| + // We are not prepared to do OSR for a function has catch clauses.
|
| + // TODO(mmassi): Fix this.
|
| + if (shared->dont_osr()) return;
|
| +
|
| // We're using on-stack replacement: patch the unoptimized code so that
|
| // any back edge in any unoptimized frame will trigger on-stack
|
| // replacement for that frame.
|
|
|