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
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 857 of file parser.h.

Member Enumeration Documentation

enum Type
Enumerator
OBJECT_LITERAL_FAST_ELEMENTS 
OBJECT_LITERAL_SLOW_ELEMENTS 
ARRAY_LITERAL 

Definition at line 859 of file parser.h.

Member Function Documentation

bool ArrayLiteralElementNeedsInitialization ( Expression value)
static

Definition at line 3837 of file parser.cc.

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

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

Definition at line 3877 of file parser.cc.

References FixedArray::cast().

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

Definition at line 3871 of file parser.cc.

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


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