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

Unified Diff: src/deoptimizer.h

Issue 2730323002: [deoptimizer] When deoptimizing code, unlink all functions referring to that code. (Closed)
Patch Set: Fix typo Created 3 years, 9 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/debug/liveedit.cc ('k') | src/deoptimizer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/deoptimizer.h
diff --git a/src/deoptimizer.h b/src/deoptimizer.h
index b20dddf37a82b1081b28389f245675cb416c1493..7b0c189e59fecb03235a8ee3b88e1ea614d29da1 100644
--- a/src/deoptimizer.h
+++ b/src/deoptimizer.h
@@ -353,16 +353,7 @@ class TranslatedState {
class OptimizedFunctionVisitor BASE_EMBEDDED {
public:
virtual ~OptimizedFunctionVisitor() {}
-
- // Function which is called before iteration of any optimized functions
- // from given native context.
- virtual void EnterContext(Context* context) = 0;
-
virtual void VisitFunction(JSFunction* function) = 0;
-
- // Function which is called after iteration of all optimized functions
- // from given native context.
- virtual void LeaveContext(Context* context) = 0;
};
class Deoptimizer : public Malloced {
@@ -476,6 +467,8 @@ class Deoptimizer : public Malloced {
static void VisitAllOptimizedFunctions(
Isolate* isolate, OptimizedFunctionVisitor* visitor);
+ static void UnlinkOptimizedCode(Code* code, Context* native_context);
+
// The size in bytes of the code required at a lazy deopt patch site.
static int patch_size();
« no previous file with comments | « src/debug/liveedit.cc ('k') | src/deoptimizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698