v8  3.14.5(node0.10.28)
V8 is Google's open source JavaScript engine
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
builtins.cc File Reference
#include "v8.h"
#include "api.h"
#include "arguments.h"
#include "bootstrapper.h"
#include "builtins.h"
#include "gdb-jit.h"
#include "ic-inl.h"
#include "heap-profiler.h"
#include "mark-compact.h"
#include "stub-cache.h"
#include "vm-state-inl.h"
Include dependency graph for builtins.cc:

Go to the source code of this file.

Data Structures

struct  BuiltinDesc
 
class  BuiltinFunctionTable
 

Namespaces

 v8
 
 v8::internal
 

Macros

#define DEF_ARG_TYPE(name, spec)   typedef BuiltinArguments<spec> name##ArgumentsType;
 
#define BUILTIN(name)   static MaybeObject* Builtin_##name(name##ArgumentsType args, Isolate* isolate)
 
#define DEF_ENUM_C(name, ignore)   FUNCTION_ADDR(Builtin_##name),
 
#define DEF_JS_NAME(name, ignore)   #name,
 
#define DEF_JS_ARGC(ignore, argc)   argc,
 
#define BUILTIN_FUNCTION_TABLE_INIT   { V8_ONCE_INIT, {} }
 
#define DEF_FUNCTION_PTR_C(aname, aextra_args)
 
#define DEF_FUNCTION_PTR_A(aname, kind, state, extra)
 
#define DEFINE_BUILTIN_ACCESSOR_C(name, ignore)
 
#define DEFINE_BUILTIN_ACCESSOR_A(name, kind, state, extra)
 

Functions

 BUILTIN (Illegal)
 
 BUILTIN (EmptyFunction)
 
 BUILTIN (InternalArrayCodeGeneric)
 
 BUILTIN (ArrayCodeGeneric)
 
 BUILTIN (ArrayPush)
 
 BUILTIN (ArrayPop)
 
 BUILTIN (ArrayShift)
 
 BUILTIN (ArrayUnshift)
 
 BUILTIN (ArraySlice)
 
 BUILTIN (ArraySplice)
 
 BUILTIN (ArrayConcat)
 
 BUILTIN (StrictModePoisonPill)
 
 BUILTIN (HandleApiCall)
 
 BUILTIN (HandleApiCallConstruct)
 
 BUILTIN (HandleApiCallAsFunction)
 
 BUILTIN (HandleApiCallAsConstructor)
 

Macro Definition Documentation

#define BUILTIN (   name)    static MaybeObject* Builtin_##name(name##ArgumentsType args, Isolate* isolate)
#define BUILTIN_FUNCTION_TABLE_INIT   { V8_ONCE_INIT, {} }

Definition at line 1551 of file builtins.cc.

#define DEF_ARG_TYPE (   name,
  spec 
)    typedef BuiltinArguments<spec> name##ArgumentsType;

Definition at line 106 of file builtins.cc.

#define DEF_ENUM_C (   name,
  ignore 
)    FUNCTION_ADDR(Builtin_##name),

Definition at line 1524 of file builtins.cc.

#define DEF_FUNCTION_PTR_A (   aname,
  kind,
  state,
  extra 
)
Value:
functions->generator = FUNCTION_ADDR(Generate_##aname); \
functions->c_code = NULL; \
functions->s_name = #aname; \
functions->name = k##aname; \
functions->flags = Code::ComputeFlags(Code::kind, \
state, \
extra); \
functions->extra_args = NO_EXTRA_ARGUMENTS; \
++functions;
activate correct semantics for inheriting readonliness enable harmony semantics for typeof enable harmony enable harmony proxies enable all harmony harmony_scoping harmony_proxies harmony_scoping tracks arrays with only smi values automatically unbox arrays of doubles use crankshaft use hydrogen range analysis use hydrogen global value numbering use function inlining maximum number of AST nodes considered for a single inlining loop invariant code motion print statistics for hydrogen trace generated IR for specified phases trace register allocator trace range analysis trace representation types environment for every instruction put a break point before deoptimizing polymorphic inlining perform array bounds checks elimination use dead code elimination trace on stack replacement optimize closures cache optimized code for closures functions with arguments object loop weight for representation inference allow uint32 values on optimize frames if they are used only in safe operations track parallel recompilation enable all profiler experiments number of stack frames inspected by the profiler call recompile stub directly when self optimizing trigger profiler ticks based on counting instead of timing weight back edges by jump distance for interrupt triggering percentage of ICs that must have type info to allow optimization watch_ic_patching retry_self_opt interrupt_at_exit extra verbose compilation tracing generate extra emit comments in code disassembly enable use of SSE3 instructions if available enable use of CMOV instruction if available enable use of SAHF instruction if enable use of VFP3 instructions if available this implies enabling ARMv7 and VFP2 enable use of VFP2 instructions if available enable use of SDIV and UDIV instructions if enable loading bit constant by means of movw movt instruction enable unaligned accesses for enable use of MIPS FPU instructions if NULL
#define FUNCTION_ADDR(f)
Definition: globals.h:293
#define DEF_FUNCTION_PTR_C (   aname,
  aextra_args 
)
Value:
functions->generator = FUNCTION_ADDR(Generate_Adaptor); \
functions->c_code = FUNCTION_ADDR(Builtin_##aname); \
functions->s_name = #aname; \
functions->name = c_##aname; \
functions->flags = Code::ComputeFlags(Code::BUILTIN); \
functions->extra_args = aextra_args; \
++functions;
#define BUILTIN(name)
Definition: builtins.cc:142
#define FUNCTION_ADDR(f)
Definition: globals.h:293
#define DEF_JS_ARGC (   ignore,
  argc 
)    argc,

Definition at line 1531 of file builtins.cc.

#define DEF_JS_NAME (   name,
  ignore 
)    #name,

Definition at line 1530 of file builtins.cc.

#define DEFINE_BUILTIN_ACCESSOR_A (   name,
  kind,
  state,
  extra 
)
Value:
Handle<Code> Builtins::name() { \
Code** code_address = \
reinterpret_cast<Code**>(builtin_address(k##name)); \
return Handle<Code>(code_address); \
}

Definition at line 1712 of file builtins.cc.

#define DEFINE_BUILTIN_ACCESSOR_C (   name,
  ignore 
)
Value:
Handle<Code> Builtins::name() { \
Code** code_address = \
reinterpret_cast<Code**>(builtin_address(k##name)); \
return Handle<Code>(code_address); \
}

Definition at line 1706 of file builtins.cc.