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

#include <parser.h>

Inheritance diagram for ScriptDataImpl:
Collaboration diagram for ScriptDataImpl:

Public Member Functions

 ScriptDataImpl (Vector< unsigned > store)
 
 ScriptDataImpl ()
 
virtual ~ScriptDataImpl ()
 
virtual int Length ()
 
virtual const char * Data ()
 
virtual bool HasError ()
 
void Initialize ()
 
void ReadNextSymbolPosition ()
 
FunctionEntry GetFunctionEntry (int start)
 
int GetSymbolIdentifier ()
 
bool SanityCheck ()
 
Scanner::Location MessageLocation ()
 
const char * BuildMessage ()
 
Vector< const char * > BuildArgs ()
 
int symbol_count ()
 
bool has_error ()
 
unsigned magic ()
 
unsigned version ()
 
- Public Member Functions inherited from ScriptData
virtual ~ScriptData ()
 

Friends

class ScriptData
 

Additional Inherited Members

- Static Public Member Functions inherited from ScriptData
static ScriptDataPreCompile (const char *input, int length)
 
static ScriptDataPreCompile (Handle< String > source)
 
static ScriptDataNew (const char *data, int length)
 

Detailed Description

Definition at line 103 of file parser.h.

Constructor & Destructor Documentation

ScriptDataImpl ( Vector< unsigned >  store)
inlineexplicit

Definition at line 105 of file parser.h.

ScriptDataImpl ( )
inline

Definition at line 111 of file parser.h.

~ScriptDataImpl ( )
virtual

Definition at line 5818 of file parser.cc.

References Vector< T >::Dispose().

Member Function Documentation

Vector< const char * > BuildArgs ( )
const char * BuildMessage ( )

Definition at line 378 of file parser.cc.

References PreparseDataConstants::kMessageTextPos, and v8::internal::NULL.

Referenced by ParserApi::Parse().

const char * Data ( )
virtual

Returns a serialized representation of this ScriptData that can later be passed to New(). NOTE: Serialized data is platform-dependent.

Implements ScriptData.

Definition at line 5828 of file parser.cc.

References Vector< T >::start().

FunctionEntry GetFunctionEntry ( int  start)

Definition at line 292 of file parser.cc.

References Vector< T >::length(), and Vector< T >::SubVector().

int GetSymbolIdentifier ( )

Definition at line 306 of file parser.cc.

bool has_error ( )
inline
bool HasError ( )
virtual

Returns true if the source code could not be parsed.

Implements ScriptData.

Definition at line 5833 of file parser.cc.

References ScriptDataImpl::has_error().

Referenced by TEST().

int Length ( )
virtual

Returns the length of Data().

Implements ScriptData.

Definition at line 5823 of file parser.cc.

References Vector< T >::length().

unsigned magic ( )
inline

Definition at line 137 of file parser.h.

References PreparseDataConstants::kMagicOffset.

Referenced by ScriptDataImpl::SanityCheck().

void ReadNextSymbolPosition ( )
int symbol_count ( )
inline
unsigned version ( )
inline

Definition at line 138 of file parser.h.

References PreparseDataConstants::kVersionOffset.

Referenced by ScriptDataImpl::SanityCheck().

Friends And Related Function Documentation

friend class ScriptData
friend

Definition at line 163 of file parser.h.


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