v8  3.11.10(node0.8.26)
V8 is Google's open source JavaScript engine
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Runtime Class Reference

#include <runtime.h>

Inheritance diagram for Runtime:
Collaboration diagram for Runtime:

Data Structures

struct  Function
 

Public Types

enum  FunctionId { kNumFunctions, kFirstInlineFunction = kInlineIsSmi }
 
enum  IntrinsicType { RUNTIME, INLINE }
 

Static Public Member Functions

static MUST_USE_RESULT
MaybeObject * 
InitializeIntrinsicFunctionNames (Heap *heap, Object *dictionary)
 
static const FunctionFunctionForSymbol (Handle< String > name)
 
static const FunctionFunctionForId (FunctionId id)
 
static Handle< StringStringReplaceOneCharWithString (Isolate *isolate, Handle< String > subject, Handle< String > search, Handle< String > replace, bool *found, int recursion_limit)
 
static int StringMatch (Isolate *isolate, Handle< String > sub, Handle< String > pat, int index)
 
static bool IsUpperCaseChar (RuntimeState *runtime_state, uint16_t ch)
 
static MUST_USE_RESULT
MaybeObject * 
GetElementOrCharAt (Isolate *isolate, Handle< Object > object, uint32_t index)
 
static MUST_USE_RESULT
MaybeObject * 
SetObjectProperty (Isolate *isolate, Handle< Object > object, Handle< Object > key, Handle< Object > value, PropertyAttributes attr, StrictModeFlag strict_mode)
 
static MUST_USE_RESULT
MaybeObject * 
ForceSetObjectProperty (Isolate *isolate, Handle< JSObject > object, Handle< Object > key, Handle< Object > value, PropertyAttributes attr)
 
static MUST_USE_RESULT
MaybeObject * 
ForceDeleteObjectProperty (Isolate *isolate, Handle< JSReceiver > object, Handle< Object > key)
 
static MUST_USE_RESULT
MaybeObject * 
GetObjectProperty (Isolate *isolate, Handle< Object > object, Handle< Object > key)
 
static ObjectFindSharedFunctionInfoInScript (Isolate *isolate, Handle< Script > script, int position)
 
static void PerformGC (Object *result)
 
static Handle< ObjectCreateArrayLiteralBoilerplate (Isolate *isolate, Handle< FixedArray > literals, Handle< FixedArray > elements)
 

Static Public Attributes

static const int kNotFound = -1
 

Detailed Description

Definition at line 589 of file runtime.h.

Member Enumeration Documentation

enum FunctionId
Enumerator
kNumFunctions 
kFirstInlineFunction 

Definition at line 591 of file runtime.h.

Enumerator
RUNTIME 
INLINE 

Definition at line 603 of file runtime.h.

Member Function Documentation

static Object* FindSharedFunctionInfoInScript ( Isolate isolate,
Handle< Script script,
int  position 
)
static
MaybeObject * ForceDeleteObjectProperty ( Isolate isolate,
Handle< JSReceiver object,
Handle< Object key 
)
static
MaybeObject * ForceSetObjectProperty ( Isolate isolate,
Handle< JSObject object,
Handle< Object key,
Handle< Object value,
PropertyAttributes  attr 
)
static
const Runtime::Function * FunctionForId ( Runtime::FunctionId  id)
static

Definition at line 13577 of file runtime.cc.

const Runtime::Function * FunctionForSymbol ( Handle< String name)
static

Definition at line 13565 of file runtime.cc.

References Smi::cast(), Runtime::kNotFound, v8::internal::NULL, and Smi::value().

MaybeObject * GetElementOrCharAt ( Isolate isolate,
Handle< Object object,
uint32_t  index 
)
static

Definition at line 4263 of file runtime.cc.

References Handle< T >::cast(), and String::cast().

Referenced by Runtime::GetObjectProperty(), and KeyedLoadIC::Load().

MaybeObject * InitializeIntrinsicFunctionNames ( Heap heap,
Object dictionary 
)
static
bool IsUpperCaseChar ( RuntimeState runtime_state,
uint16_t  ch 
)
static
Handle< String > StringReplaceOneCharWithString ( Isolate isolate,
Handle< String subject,
Handle< String search,
Handle< String replace,
bool *  found,
int  recursion_limit 
)
static

Field Documentation

const int kNotFound = -1
static

Definition at line 625 of file runtime.h.

Referenced by Runtime::FunctionForSymbol().


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