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
api.h File Reference
#include "v8.h"
#include "../include/v8-testing.h"
#include "contexts.h"
#include "factory.h"
#include "isolate.h"
#include "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.

Data Structures

class  Consts
 
class  NeanderObject
 
class  NeanderArray
 
class  ApiFunction
 
class  RegisteredExtension
 
class  Utils
 
class  StringTracker
 
class  DeferredHandles
 
class  HandleScopeImplementer
 
class  Testing
 

Namespaces

 v8
 
 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 ToCData (v8::internal::Object *obj)
 
template<typename T >
v8::internal::Handle
< v8::internal::Object
FromCData (v8::internal::Isolate *isolate, T obj)
 
template<class T >
TToApi (v8::internal::Handle< v8::internal::Object > obj)
 
template<class T >
v8::Local< TToApiHandle (v8::internal::Handle< v8::internal::Object > obj)
 
void InvokeAccessorGetterCallback (v8::Local< v8::String > property, const v8::PropertyCallbackInfo< v8::Value > &info, v8::AccessorGetterCallback getter)
 
void InvokeFunctionCallback (const v8::FunctionCallbackInfo< v8::Value > &info, v8::FunctionCallback callback)
 

Variables

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

Macro Definition Documentation

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

Definition at line 280 of file api.h.

#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::To**>( \
const_cast<v8::From*>(that)))->IsFailure()); \
reinterpret_cast<v8::internal::To**>(const_cast<v8::From*>(that))); \
}
enable upcoming ES6 features enable harmony block scoping enable harmony enable harmony proxies enable harmony generators enable harmony numeric enable harmony string enable harmony math functions harmony_scoping harmony_symbols harmony_collections harmony_iteration harmony_strings harmony_scoping harmony_maths tracks arrays with only smi values Optimize object Array DOM strings and string pretenure call new trace pretenuring decisions of HAllocate instructions track fields with only smi values track fields with heap values track_fields track_fields Enables optimizations which favor memory size over execution speed use string slices optimization filter maximum number of GVN fix point iterations use function inlining use allocation folding eliminate write barriers targeting allocations in optimized code maximum source size in bytes considered for a single inlining maximum cumulative number of AST nodes considered for inlining crankshaft harvests type feedback from stub cache trace check elimination phase hydrogen tracing filter NULL
#define EXTRA_CHECK(condition)
Definition: checks.h:350

Definition at line 391 of file api.h.

#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); \
}
HeapObject * obj

Definition at line 342 of file api.h.

#define MAKE_TO_LOCAL_TYPED_ARRAY (   Type,
  typeName,
  TYPE,
  ctype,
  size 
)
Value:
Local<v8::Type##Array> Utils::ToLocal##Type##Array( \
ASSERT(obj->type() == kExternal##Type##Array); \
return Convert<v8::internal::JSTypedArray, v8::Type##Array>(obj); \
}
TypeImpl< ZoneTypeConfig > Type
#define ASSERT(condition)
Definition: checks.h:329
HeapObject * obj

Definition at line 348 of file api.h.

#define OPEN_HANDLE_LIST (   V)

Definition at line 160 of file api.h.