v8  3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SetFunctionEntryHookTest Class Reference
Collaboration diagram for SetFunctionEntryHookTest:

Public Types

typedef std::map< size_t,
SymbolInfo
SymbolMap
 
typedef std::map< i::Address,
SymbolInfo * > 
SymbolLocationMap
 
typedef std::map< std::pair
< SymbolInfo *, SymbolInfo * >
, int > 
InvocationMap
 

Public Member Functions

 SetFunctionEntryHookTest ()
 
 ~SetFunctionEntryHookTest ()
 
void Reset ()
 
void RunTest ()
 
void OnJitEvent (const v8::JitCodeEvent *event)
 
void OnEntryHook (uintptr_t function, uintptr_t return_addr_location)
 
void RunLoopInNewEnv (v8::Isolate *isolate)
 
void InsertSymbolAt (i::Address addr, SymbolInfo *symbol)
 
SymbolInfoFindSymbolForAddr (i::Address addr)
 
int CountInvocations (const char *caller_name, const char *function_name)
 

Static Public Member Functions

static void JitEvent (const v8::JitCodeEvent *event)
 
static void EntryHook (uintptr_t function, uintptr_t return_addr_location)
 
static void RuntimeCallback (const v8::FunctionCallbackInfo< v8::Value > &args)
 

Data Fields

i::Handle< i::JSFunctionfoo_func_
 
i::Handle< i::JSFunctionbar_func_
 
SymbolMap symbols_
 
SymbolLocationMap symbol_locations_
 
InvocationMap invocations_
 

Static Public Attributes

static SetFunctionEntryHookTestinstance_ = NULL
 

Detailed Description

Definition at line 13654 of file test-api.cc.

Member Typedef Documentation

typedef std::map<std::pair<SymbolInfo*, SymbolInfo*>, int> InvocationMap

Definition at line 13705 of file test-api.cc.

Definition at line 13704 of file test-api.cc.

typedef std::map<size_t, SymbolInfo> SymbolMap

Definition at line 13703 of file test-api.cc.

Constructor & Destructor Documentation

Definition at line 13656 of file test-api.cc.

References CHECK, instance_, and NULL.

Definition at line 13660 of file test-api.cc.

References CHECK, instance_, and NULL.

Member Function Documentation

int CountInvocations ( const char *  caller_name,
const char *  function_name 
)

Definition at line 13846 of file test-api.cc.

References invocations_, SymbolInfo::name, and NULL.

Referenced by RunTest().

static void EntryHook ( uintptr_t  function,
uintptr_t  return_addr_location 
)
inlinestatic

Definition at line 13678 of file test-api.cc.

References CHECK, instance_, NULL, and OnEntryHook().

Referenced by RunTest().

SymbolInfo * FindSymbolForAddr ( i::Address  addr)

Definition at line 13825 of file test-api.cc.

References NULL, and symbol_locations_.

Referenced by OnEntryHook().

void InsertSymbolAt ( i::Address  addr,
SymbolInfo symbol 
)

Definition at line 13723 of file test-api.cc.

References SymbolInfo::size, and symbol_locations_.

Referenced by OnJitEvent().

static void JitEvent ( const v8::JitCodeEvent event)
inlinestatic

Definition at line 13671 of file test-api.cc.

References CHECK, instance_, NULL, and OnJitEvent().

Referenced by RunTest().

void OnEntryHook ( uintptr_t  function,
uintptr_t  return_addr_location 
)
void Reset ( )
inline

Definition at line 13664 of file test-api.cc.

References invocations_, symbol_locations_, and symbols_.

Referenced by RunTest().

static void RuntimeCallback ( const v8::FunctionCallbackInfo< v8::Value > &  args)
inlinestatic

Definition at line 13684 of file test-api.cc.

References CHECK, FunctionCallbackInfo< T >::GetReturnValue(), instance_, and NULL.

Referenced by RunLoopInNewEnv().

Field Documentation

Definition at line 13701 of file test-api.cc.

Referenced by OnEntryHook(), and RunLoopInNewEnv().

Definition at line 13700 of file test-api.cc.

Referenced by OnEntryHook(), and RunLoopInNewEnv().

InvocationMap invocations_

Definition at line 13708 of file test-api.cc.

Referenced by CountInvocations(), OnEntryHook(), Reset(), and RunTest().

SymbolLocationMap symbol_locations_

Definition at line 13707 of file test-api.cc.

Referenced by FindSymbolForAddr(), InsertSymbolAt(), OnEntryHook(), OnJitEvent(), and Reset().

SymbolMap symbols_

Definition at line 13706 of file test-api.cc.

Referenced by OnJitEvent(), and Reset().


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