v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
trap-handler.h File Reference
#include <stdint.h>
#include <stdlib.h>
#include <atomic>
#include "include/v8config.h"
#include "src/base/immediate-crash.h"
Include dependency graph for trap-handler.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  v8::internal::trap_handler::ProtectedInstructionData
 

Namespaces

namespace  v8
 
namespace  v8::internal
 
namespace  v8::internal::trap_handler
 

Macros

#define V8_TRAP_HANDLER_SUPPORTED   false
 
#define TH_EXPORT_PRIVATE
 
#define TH_CHECK(condition)
 
#define TH_DCHECK(condition)
 
#define TH_DISABLE_ASAN
 

Functions

int v8::internal::trap_handler::RegisterHandlerData (uintptr_t base, size_t size, size_t num_protected_instructions, const ProtectedInstructionData *protected_instructions)
 
void v8::internal::trap_handler::ReleaseHandlerData (int index)
 
bool v8::internal::trap_handler::RegisterV8Sandbox (uintptr_t base, size_t size)
 
void v8::internal::trap_handler::UnregisterV8Sandbox (uintptr_t base, size_t size)
 
bool v8::internal::trap_handler::EnableTrapHandler (bool use_v8_handler)
 
void v8::internal::trap_handler::SetLandingPad (uintptr_t landing_pad)
 
bool v8::internal::trap_handler::IsTrapHandlerEnabled ()
 
int * v8::internal::trap_handler::GetThreadInWasmThreadLocalAddress ()
 
TH_DISABLE_ASAN bool v8::internal::trap_handler::IsThreadInWasm ()
 
void v8::internal::trap_handler::SetThreadInWasm ()
 
void v8::internal::trap_handler::ClearThreadInWasm ()
 
bool v8::internal::trap_handler::RegisterDefaultTrapHandler ()
 
void v8::internal::trap_handler::RemoveTrapHandler ()
 
size_t v8::internal::trap_handler::GetRecoveredTrapCount ()
 
void v8::internal::trap_handler::AssertThreadNotInWasm ()
 

Variables

const int v8::internal::trap_handler::kInvalidIndex = -1
 

Macro Definition Documentation

◆ TH_CHECK

#define TH_CHECK ( condition)
Value:
#define IMMEDIATE_CRASH()

Definition at line 87 of file trap-handler.h.

◆ TH_DCHECK

#define TH_DCHECK ( condition)
Value:
void(0)

Definition at line 92 of file trap-handler.h.

◆ TH_DISABLE_ASAN

#define TH_DISABLE_ASAN

Definition at line 102 of file trap-handler.h.

◆ TH_EXPORT_PRIVATE

#define TH_EXPORT_PRIVATE

Definition at line 82 of file trap-handler.h.

◆ V8_TRAP_HANDLER_SUPPORTED

#define V8_TRAP_HANDLER_SUPPORTED   false

Definition at line 55 of file trap-handler.h.