Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(206)

Unified Diff: src/runtime-profiler.cc

Issue 10910161: Partial ia32 implementation of optimized try/catch (by Kevin Millikin) (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fixed build. Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/runtime.cc ('k') | src/serialize.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/runtime-profiler.cc
diff --git a/src/runtime-profiler.cc b/src/runtime-profiler.cc
index 23f41fa7d21cce30aace740db33228b6e9192acd..b66c6f5fdcc896c9c46b373b71cb2370efdf7d5e 100644
--- a/src/runtime-profiler.cc
+++ b/src/runtime-profiler.cc
@@ -182,6 +182,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.
« no previous file with comments | « src/runtime.cc ('k') | src/serialize.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698