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(); |