v8 12.4.254 (node 22.4.1)
V8 is Google's open source JavaScript engine
Loading...
Searching...
No Matches
JitCodeEvent Struct Reference

#include <v8-callbacks.h>

Collaboration diagram for JitCodeEvent:

Data Structures

struct  line_info_t
 
struct  name_t
 
struct  wasm_source_info_t
 

Public Types

enum  EventType {
  CODE_ADDED , CODE_MOVED , CODE_REMOVED , CODE_ADD_LINE_POS_INFO ,
  CODE_START_LINE_INFO_RECORDING , CODE_END_LINE_INFO_RECORDING
}
 
enum  PositionType { POSITION , STATEMENT_POSITION }
 
enum  CodeType { BYTE_CODE , JIT_CODE , WASM_CODE }
 

Data Fields

EventType type
 
CodeType code_type
 
void * code_start
 
size_t code_len
 
Local< UnboundScriptscript
 
void * user_data
 
wasm_source_info_twasm_source_info = nullptr
 
union { 
 
   struct name_t   name 
 
   struct line_info_t   line_info 
 
   void *   new_code_start 
 
};  
 
Isolateisolate
 

Detailed Description

A JIT code event is issued each time code is added, moved or removed.

Note
removal events are not currently issued.

Definition at line 42 of file v8-callbacks.h.

Member Enumeration Documentation

◆ CodeType

enum CodeType
Enumerator
BYTE_CODE 
JIT_CODE 
WASM_CODE 

Definition at line 64 of file v8-callbacks.h.

◆ EventType

enum EventType
Enumerator
CODE_ADDED 
CODE_MOVED 
CODE_REMOVED 
CODE_ADD_LINE_POS_INFO 
CODE_START_LINE_INFO_RECORDING 
CODE_END_LINE_INFO_RECORDING 

Definition at line 43 of file v8-callbacks.h.

◆ PositionType

Enumerator
POSITION 
STATEMENT_POSITION 

Definition at line 56 of file v8-callbacks.h.

Field Documentation

◆ [union]

union { ... }

◆ code_len

size_t code_len

Definition at line 72 of file v8-callbacks.h.

◆ code_start

void* code_start

Definition at line 70 of file v8-callbacks.h.

◆ code_type

CodeType code_type

Definition at line 68 of file v8-callbacks.h.

◆ isolate

Isolate* isolate

Definition at line 123 of file v8-callbacks.h.

◆ line_info

struct line_info_t line_info

Definition at line 117 of file v8-callbacks.h.

◆ name

struct name_t name

Definition at line 114 of file v8-callbacks.h.

◆ new_code_start

void* new_code_start

Definition at line 120 of file v8-callbacks.h.

◆ script

Definition at line 74 of file v8-callbacks.h.

◆ type

EventType type

Definition at line 67 of file v8-callbacks.h.

◆ user_data

void* user_data

Definition at line 79 of file v8-callbacks.h.

◆ wasm_source_info

wasm_source_info_t* wasm_source_info = nullptr

Definition at line 110 of file v8-callbacks.h.


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