V8 Project
v8::internal::DependentFunctionMarker Class Reference
+ Inheritance diagram for v8::internal::DependentFunctionMarker:
+ Collaboration diagram for v8::internal::DependentFunctionMarker:

Public Member Functions

 DependentFunctionMarker (SharedFunctionInfo *shared_info)
 
virtual void EnterContext (Context *context)
 
virtual void LeaveContext (Context *context)
 
virtual void VisitFunction (JSFunction *function)
 

Public Attributes

SharedFunctionInfoshared_info_
 
bool found_
 

Detailed Description

Definition at line 1151 of file liveedit.cc.

Constructor & Destructor Documentation

◆ DependentFunctionMarker()

v8::internal::DependentFunctionMarker::DependentFunctionMarker ( SharedFunctionInfo shared_info)
inlineexplicit

Definition at line 1156 of file liveedit.cc.

1157  : shared_info_(shared_info), found_(false) { }
SharedFunctionInfo * shared_info_
Definition: liveedit.cc:1153

Member Function Documentation

◆ EnterContext()

virtual void v8::internal::DependentFunctionMarker::EnterContext ( Context context)
inlinevirtual

Definition at line 1159 of file liveedit.cc.

1159 { } // Don't care.

◆ LeaveContext()

virtual void v8::internal::DependentFunctionMarker::LeaveContext ( Context context)
inlinevirtual

Definition at line 1160 of file liveedit.cc.

1160 { } // Don't care.

◆ VisitFunction()

virtual void v8::internal::DependentFunctionMarker::VisitFunction ( JSFunction function)
inlinevirtual

Definition at line 1161 of file liveedit.cc.

1161  {
1162  // It should be guaranteed by the iterator that everything is optimized.
1163  DCHECK(function->code()->kind() == Code::OPTIMIZED_FUNCTION);
1164  if (shared_info_ == function->shared() ||
1165  IsInlined(function, shared_info_)) {
1166  // Mark the code for deoptimization.
1167  function->code()->set_marked_for_deoptimization(true);
1168  found_ = true;
1169  }
1170  }
#define DCHECK(condition)
Definition: logging.h:205
static bool IsInlined(JSFunction *function, SharedFunctionInfo *candidate)
Definition: liveedit.cc:1125

References DCHECK, found_, v8::internal::IsInlined(), and shared_info_.

+ Here is the call graph for this function:

Member Data Documentation

◆ found_

bool v8::internal::DependentFunctionMarker::found_

Definition at line 1154 of file liveedit.cc.

Referenced by v8::internal::DeoptimizeDependentFunctions(), and VisitFunction().

◆ shared_info_

SharedFunctionInfo* v8::internal::DependentFunctionMarker::shared_info_

Definition at line 1153 of file liveedit.cc.

Referenced by VisitFunction().


The documentation for this class was generated from the following file: