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 Class Reference

#include <builtins.h>

Public Types

enum  Name { builtin_count }
 
enum  CFunctionId { cfunction_count }
 
enum  JavaScript { id_count }
 

Public Member Functions

 ~Builtins ()
 
void SetUp (bool create_heap_objects)
 
void TearDown ()
 
void IterateBuiltins (ObjectVisitor *v)
 
const char * Lookup (byte *pc)
 
Codebuiltin (Name name)
 
Address builtin_address (Name name)
 
Handle< CodeGetCode (JavaScript id, bool *resolved)
 
bool is_initialized () const
 

Static Public Member Functions

static Address c_function_address (CFunctionId id)
 
static const char * GetName (JavaScript id)
 
static int GetArgumentsCount (JavaScript id)
 
static int NumberOfJavaScriptBuiltins ()
 

Friends

class BuiltinFunctionTable
 
class Isolate
 

Detailed Description

Definition at line 271 of file builtins.h.

Member Enumeration Documentation

Enumerator
cfunction_count 

Definition at line 297 of file builtins.h.

enum JavaScript
Enumerator
id_count 

Definition at line 304 of file builtins.h.

enum Name
Enumerator
builtin_count 

Definition at line 286 of file builtins.h.

Constructor & Destructor Documentation

~Builtins ( )

Definition at line 1520 of file builtins.cc.

Member Function Documentation

Address builtin_address ( Name  name)
inline

Definition at line 326 of file builtins.h.

static Address c_function_address ( CFunctionId  id)
inlinestatic

Definition at line 330 of file builtins.h.

static int GetArgumentsCount ( JavaScript  id)
inlinestatic

Definition at line 335 of file builtins.h.

Handle<Code> GetCode ( JavaScript  id,
bool *  resolved 
)
static const char* GetName ( JavaScript  id)
inlinestatic

Definition at line 334 of file builtins.h.

bool is_initialized ( ) const
inline

Definition at line 339 of file builtins.h.

void IterateBuiltins ( ObjectVisitor *  v)

Definition at line 1687 of file builtins.cc.

Referenced by Heap::IterateStrongRoots().

const char * Lookup ( byte pc)

Definition at line 1692 of file builtins.cc.

References Code::contains(), and NULL.

static int NumberOfJavaScriptBuiltins ( )
inlinestatic

Definition at line 337 of file builtins.h.

References Builtins::id_count.

void TearDown ( )

Definition at line 1682 of file builtins.cc.

Friends And Related Function Documentation

friend class BuiltinFunctionTable
friend

Definition at line 386 of file builtins.h.

friend class Isolate
friend

Definition at line 387 of file builtins.h.


The documentation for this class was generated from the following files: