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
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 (Isolate *isolate, bool create_heap_objects)
 
void TearDown ()
 
void IterateBuiltins (ObjectVisitor *v)
 
const char * Lookup (byte *pc)
 
Codebuiltin (Name name)
 
Address builtin_address (Name name)
 
const char * name (int index)
 
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 269 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 284 of file builtins.h.

Constructor & Destructor Documentation

~Builtins ( )

Definition at line 1502 of file builtins.cc.

Member Function Documentation

Address builtin_address ( Name  name)
inline

Definition at line 328 of file builtins.h.

References Builtins::name().

static Address c_function_address ( CFunctionId  id)
inlinestatic

Definition at line 332 of file builtins.h.

static int GetArgumentsCount ( JavaScript  id)
inlinestatic

Definition at line 342 of file builtins.h.

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

Definition at line 336 of file builtins.h.

bool is_initialized ( ) const
inline

Definition at line 346 of file builtins.h.

void IterateBuiltins ( ObjectVisitor *  v)

Definition at line 1682 of file builtins.cc.

Referenced by Heap::IterateStrongRoots().

const char * Lookup ( byte pc)

Definition at line 1687 of file builtins.cc.

References Code::contains(), and NULL.

const char* name ( int  index)
inline

Definition at line 337 of file builtins.h.

References ASSERT, and Builtins::builtin_count.

Referenced by Builtins::builtin(), and Builtins::builtin_address().

static int NumberOfJavaScriptBuiltins ( )
inlinestatic

Definition at line 344 of file builtins.h.

References Builtins::id_count.

void TearDown ( )

Definition at line 1677 of file builtins.cc.

Friends And Related Function Documentation

friend class BuiltinFunctionTable
friend

Definition at line 408 of file builtins.h.

friend class Isolate
friend

Definition at line 409 of file builtins.h.


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