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
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 v8::ScriptCompiler
 
class ScriptData
 

Additional Inherited Members

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

Detailed Description

Definition at line 85 of file parser.h.

Constructor & Destructor Documentation

ScriptDataImpl ( Vector< unsigned >  store)
inlineexplicit

Definition at line 87 of file parser.h.

ScriptDataImpl ( )
inline

Definition at line 93 of file parser.h.

~ScriptDataImpl ( )
virtual

Definition at line 4559 of file parser.cc.

References Vector< T >::Dispose().

Member Function Documentation

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

Definition at line 314 of file parser.cc.

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

Referenced by FormatMessage(), and Parser::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 4569 of file parser.cc.

References Vector< T >::start().

FunctionEntry GetFunctionEntry ( int  start)

Definition at line 227 of file parser.cc.

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

int GetSymbolIdentifier ( )

Definition at line 241 of file parser.cc.

Referenced by TEST().

bool has_error ( )
inline
bool HasError ( )
virtual

Returns true if the source code could not be parsed.

Implements ScriptData.

Definition at line 4574 of file parser.cc.

References ScriptDataImpl::has_error().

Referenced by TEST().

void Initialize ( )
int Length ( )
virtual

Returns the length of Data().

Implements ScriptData.

Definition at line 4564 of file parser.cc.

References Vector< T >::length().

unsigned magic ( )
inline

Definition at line 119 of file parser.h.

References PreparseDataConstants::kMagicOffset.

Referenced by ScriptDataImpl::SanityCheck().

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

Definition at line 120 of file parser.h.

References PreparseDataConstants::kVersionOffset.

Referenced by ScriptDataImpl::SanityCheck().

Friends And Related Function Documentation

friend class ScriptData
friend

Definition at line 146 of file parser.h.

friend class v8::ScriptCompiler
friend

Definition at line 123 of file parser.h.


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