v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
heap-object-inl.h File Reference
Include dependency graph for heap-object-inl.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  v8
 
namespace  v8::internal
 

Macros

#define TYPE_CHECKER(type, ...)
 

Macro Definition Documentation

◆ TYPE_CHECKER

#define TYPE_CHECKER ( type,
... )
Value:
bool Is##type(Tagged<HeapObject> obj) { \
/* IsBlah() predicates needs to load the map and thus they require the */ \
/* main cage base. */ \
PtrComprCageBase cage_base = GetPtrComprCageBase(); \
return Is##type(obj, cage_base); \
} \
/* The cage_base passed here must be the base of the main pointer */ \
/* compression cage, i.e. the one where the Map space is allocated. */ \
bool Is##type(Tagged<HeapObject> obj, PtrComprCageBase cage_base) { \
Tagged<Map> map_object = obj->map(cage_base); \
return InstanceTypeChecker::Is##type(map_object); \
}
wasm::ValueType type

Definition at line 21 of file heap-object-inl.h.