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

Unified Diff: src/runtime-profiler.h

Issue 2230783004: [interpreter] Switch profiler to use frames for OSR. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@local_interpreter-preserve-bytecode-1
Patch Set: Fix frame type confusion. Created 4 years, 4 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 | « no previous file | src/runtime-profiler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/runtime-profiler.h
diff --git a/src/runtime-profiler.h b/src/runtime-profiler.h
index 06739cd320ce745f6abfe8ae69de70264d9a8e36..7f2c9024bf10f3cbd21eba3fff5ab77d0d0a1005 100644
--- a/src/runtime-profiler.h
+++ b/src/runtime-profiler.h
@@ -11,6 +11,7 @@ namespace v8 {
namespace internal {
class Isolate;
+class JavaScriptFrame;
class JSFunction;
class RuntimeProfiler {
@@ -21,13 +22,14 @@ class RuntimeProfiler {
void NotifyICChanged() { any_ic_changed_ = true; }
- void AttemptOnStackReplacement(JSFunction* function, int nesting_levels = 1);
+ void AttemptOnStackReplacement(JavaScriptFrame* frame,
+ int nesting_levels = 1);
private:
- void MaybeOptimizeFullCodegen(JSFunction* function, int frame_count,
- bool frame_optimized);
- void MaybeBaselineIgnition(JSFunction* function, bool frame_optimized);
- void MaybeOptimizeIgnition(JSFunction* function, bool frame_optimized);
+ void MaybeOptimizeFullCodegen(JSFunction* function, JavaScriptFrame* frame,
+ int frame_count);
+ void MaybeBaselineIgnition(JSFunction* function, JavaScriptFrame* frame);
+ void MaybeOptimizeIgnition(JSFunction* function, JavaScriptFrame* frame);
void Optimize(JSFunction* function, const char* reason);
void Baseline(JSFunction* function, const char* reason);
« no previous file with comments | « no previous file | src/runtime-profiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698