V8 Project
api.h File Reference
#include "src/v8.h"
#include "include/v8-testing.h"
#include "src/contexts.h"
#include "src/factory.h"
#include "src/isolate.h"
#include "src/list-inl.h"
+ Include dependency graph for api.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  v8::Consts
 
class  v8::NeanderObject
 
class  v8::NeanderArray
 
class  v8::ApiFunction
 
class  v8::RegisteredExtension
 
class  v8::Utils
 
class  v8::internal::StringTracker
 
class  v8::internal::DeferredHandles
 
class  v8::internal::HandleScopeImplementer
 
class  v8::internal::Testing
 

Namespaces

 v8
 Debugger support for the V8 JavaScript engine.
 
 v8::internal
 

Macros

#define OPEN_HANDLE_LIST(V)
 
#define DECLARE_OPEN_HANDLE(From, To)
 
#define MAKE_TO_LOCAL(Name, From, To)
 
#define MAKE_TO_LOCAL_TYPED_ARRAY(Type, typeName, TYPE, ctype, size)
 
#define MAKE_OPEN_HANDLE(From, To)
 

Functions

template<typename T >
T v8::ToCData (v8::internal::Object *obj)
 
template<typename T >
v8::internal::Handle< v8::internal::Objectv8::FromCData (v8::internal::Isolate *isolate, T obj)
 
template<class T >
Tv8::ToApi (v8::internal::Handle< v8::internal::Object > obj)
 
template<class T >
v8::Local< Tv8::ToApiHandle (v8::internal::Handle< v8::internal::Object > obj)
 
void v8::internal::InvokeAccessorGetterCallback (v8::Local< v8::Name > property, const v8::PropertyCallbackInfo< v8::Value > &info, v8::AccessorNameGetterCallback getter)
 
void v8::internal::InvokeFunctionCallback (const v8::FunctionCallbackInfo< v8::Value > &info, v8::FunctionCallback callback)
 

Variables

const int v8::internal::kHandleBlockSize = v8::internal::KB - 2
 

Macro Definition Documentation

◆ DECLARE_OPEN_HANDLE

#define DECLARE_OPEN_HANDLE (   From,
  To 
)
Value:
OpenHandle(const From* that, bool allow_empty_handle = false);

Definition at line 260 of file api.h.

◆ MAKE_OPEN_HANDLE

#define MAKE_OPEN_HANDLE (   From,
  To 
)
Value:
const v8::From* that, bool allow_empty_handle) { \
EXTRA_CHECK(allow_empty_handle || that != NULL); \
EXTRA_CHECK(that == NULL || \
(*reinterpret_cast<v8::internal::Object* const*>(that))->Is##To()); \
reinterpret_cast<v8::internal::To**>(const_cast<v8::From*>(that))); \
}
enable harmony numeric enable harmony object literal extensions Optimize object Array DOM strings and string trace pretenuring decisions of HAllocate instructions Enables optimizations which favor memory size over execution speed maximum source size in bytes considered for a single inlining maximum cumulative number of AST nodes considered for inlining trace the tracking of allocation sites deoptimize every n garbage collections perform array bounds checks elimination analyze liveness of environment slots and zap dead values flushes the cache of optimized code for closures on every GC allow uint32 values on optimize frames if they are used only in safe operations track concurrent recompilation artificial compilation delay in ms do not emit check maps for constant values that have a leaf deoptimize the optimized code if the layout of the maps changes enable context specialization in TurboFan execution budget before interrupt is triggered max percentage of megamorphic generic ICs to allow optimization enable use of SAHF instruction if enable use of VFP3 instructions if available enable use of NEON instructions if enable use of SDIV and UDIV instructions if enable use of MLS instructions if enable loading bit constant by means of movw movt instruction enable unaligned accesses for enable use of d16 d31 registers on ARM this requires VFP3 force all emitted branches to be in long enable alignment of csp to bytes on platforms which prefer the register to always be NULL
bool Is(Object *obj)

Definition at line 372 of file api.h.

◆ MAKE_TO_LOCAL

#define MAKE_TO_LOCAL (   Name,
  From,
  To 
)
Value:
Local<v8::To> Utils::Name(v8::internal::Handle<v8::internal::From> obj) { \
return Convert<v8::internal::From, v8::To>(obj); \
}

Definition at line 322 of file api.h.

◆ MAKE_TO_LOCAL_TYPED_ARRAY

#define MAKE_TO_LOCAL_TYPED_ARRAY (   Type,
  typeName,
  TYPE,
  ctype,
  size 
)
Value:
Local<v8::Type##Array> Utils::ToLocal##Type##Array( \
DCHECK(obj->type() == kExternal##Type##Array); \
return Convert<v8::internal::JSTypedArray, v8::Type##Array>(obj); \
}
TypeImpl< ZoneTypeConfig > Type

Definition at line 328 of file api.h.

◆ OPEN_HANDLE_LIST

#define OPEN_HANDLE_LIST (   V)

Definition at line 137 of file api.h.