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

#include <parser.h>

Inheritance diagram for CompileTimeValue:
Collaboration diagram for CompileTimeValue:

Public Types

enum  Type { OBJECT_LITERAL_FAST_ELEMENTS, OBJECT_LITERAL_SLOW_ELEMENTS, ARRAY_LITERAL }
 

Static Public Member Functions

static bool IsCompileTimeValue (Expression *expression)
 
static bool ArrayLiteralElementNeedsInitialization (Expression *value)
 
static Handle< FixedArrayGetValue (Expression *expression)
 
static Type GetType (Handle< FixedArray > value)
 
static Handle< FixedArrayGetElements (Handle< FixedArray > value)
 

Detailed Description

Definition at line 847 of file parser.h.

Member Enumeration Documentation

enum Type
Enumerator
OBJECT_LITERAL_FAST_ELEMENTS 
OBJECT_LITERAL_SLOW_ELEMENTS 
ARRAY_LITERAL 

Definition at line 849 of file parser.h.

Member Function Documentation

bool ArrayLiteralElementNeedsInitialization ( Expression value)
static

Definition at line 3909 of file parser.cc.

References CompileTimeValue::IsCompileTimeValue(), and v8::internal::NULL.

Handle< FixedArray > GetElements ( Handle< FixedArray value)
static

Definition at line 3949 of file parser.cc.

References FixedArray::cast().

CompileTimeValue::Type GetType ( Handle< FixedArray value)
static

Definition at line 3943 of file parser.cc.

References Smi::cast(), and Smi::value().


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