v8
3.14.5(node0.10.28)
V8 is Google's open source JavaScript engine
|
#include <parser.h>
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 ScriptData * | PreCompile (const char *input, int length) |
static ScriptData * | PreCompile (Handle< String > source) |
static ScriptData * | New (const char *data, int length) |
|
inlineexplicit |
|
inline |
|
virtual |
Definition at line 5818 of file parser.cc.
References Vector< T >::Dispose().
Vector< const char * > BuildArgs | ( | ) |
Definition at line 384 of file parser.cc.
References PreparseDataConstants::kMessageArgCountPos, PreparseDataConstants::kMessageTextPos, and Read().
Referenced by ParserApi::Parse().
const char * BuildMessage | ( | ) |
Definition at line 378 of file parser.cc.
References PreparseDataConstants::kMessageTextPos, and v8::internal::NULL.
Referenced by ParserApi::Parse().
|
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().
|
inline |
Definition at line 136 of file parser.h.
References PreparseDataConstants::kHasErrorOffset.
Referenced by ScriptDataImpl::HasError(), ParserApi::Parse(), and ScriptDataImpl::SanityCheck().
|
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().
void Initialize | ( | ) |
Definition at line 5838 of file parser.cc.
References PreparseDataConstants::kFunctionsSizeOffset, PreparseDataConstants::kHeaderSize, and Vector< T >::length().
|
virtual |
Returns the length of Data().
Implements ScriptData.
Definition at line 5823 of file parser.cc.
References Vector< T >::length().
|
inline |
Definition at line 137 of file parser.h.
References PreparseDataConstants::kMagicOffset.
Referenced by ScriptDataImpl::SanityCheck().
Definition at line 371 of file parser.cc.
References PreparseDataConstants::kMessageEndPos, PreparseDataConstants::kMessageStartPos, and Read().
Referenced by ParserApi::Parse(), and TEST().
void ReadNextSymbolPosition | ( | ) |
bool SanityCheck | ( | ) |
Definition at line 311 of file parser.cc.
References ScriptDataImpl::has_error(), PreparseDataConstants::kCurrentVersion, PreparseDataConstants::kFunctionsSizeOffset, PreparseDataConstants::kHeaderSize, PreparseDataConstants::kMagicNumber, PreparseDataConstants::kMessageArgCountPos, PreparseDataConstants::kMessageEndPos, PreparseDataConstants::kMessageStartPos, PreparseDataConstants::kMessageTextPos, PreparseDataConstants::kSymbolCountOffset, Vector< T >::length(), ScriptDataImpl::magic(), Read(), ScriptDataImpl::symbol_count(), and ScriptDataImpl::version().
Referenced by Script::New().
|
inline |
Definition at line 129 of file parser.h.
References PreparseDataConstants::kHeaderSize, PreparseDataConstants::kSymbolCountOffset, and Vector< T >::length().
Referenced by ScriptDataImpl::SanityCheck().
|
inline |
Definition at line 138 of file parser.h.
References PreparseDataConstants::kVersionOffset.
Referenced by ScriptDataImpl::SanityCheck().
|
friend |