v8
3.25.30(node0.11.13)
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 | v8::ScriptCompiler |
class | ScriptData |
Additional Inherited Members | |
Static Public Member Functions inherited from ScriptData | |
static ScriptData * | PreCompile (Handle< String > source) |
static ScriptData * | New (const char *data, int length) |
|
inlineexplicit |
|
inline |
|
virtual |
Definition at line 4559 of file parser.cc.
References Vector< T >::Dispose().
Vector< const char * > BuildArgs | ( | ) |
Definition at line 320 of file parser.cc.
References PreparseDataConstants::kMessageArgCountPos, and PreparseDataConstants::kMessageTextPos.
Referenced by FormatMessage(), and Parser::Parse().
const char * BuildMessage | ( | ) |
Definition at line 314 of file parser.cc.
References PreparseDataConstants::kMessageTextPos, and v8::internal::NULL.
Referenced by FormatMessage(), and Parser::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 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().
|
inline |
Definition at line 118 of file parser.h.
References PreparseDataConstants::kHasErrorOffset.
Referenced by ScriptDataImpl::HasError(), and ScriptDataImpl::SanityCheck().
|
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 | ( | ) |
Definition at line 4579 of file parser.cc.
References PreparseDataConstants::kFunctionsSizeOffset, PreparseDataConstants::kHeaderSize, and Vector< T >::length().
Referenced by TEST().
|
virtual |
Returns the length of Data().
Implements ScriptData.
Definition at line 4564 of file parser.cc.
References Vector< T >::length().
|
inline |
Definition at line 119 of file parser.h.
References PreparseDataConstants::kMagicOffset.
Referenced by ScriptDataImpl::SanityCheck().
Definition at line 307 of file parser.cc.
References PreparseDataConstants::kMessageEndPos, and PreparseDataConstants::kMessageStartPos.
Referenced by Parser::Parse(), and TEST().
void ReadNextSymbolPosition | ( | ) |
bool SanityCheck | ( | ) |
Definition at line 246 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(), ScriptDataImpl::symbol_count(), and ScriptDataImpl::version().
Referenced by ScriptCompiler::CompileUnbound().
|
inline |
Definition at line 111 of file parser.h.
References PreparseDataConstants::kHeaderSize, PreparseDataConstants::kSymbolCountOffset, and Vector< T >::length().
Referenced by ScriptDataImpl::SanityCheck().
|
inline |
Definition at line 120 of file parser.h.
References PreparseDataConstants::kVersionOffset.
Referenced by ScriptDataImpl::SanityCheck().
|
friend |
|
friend |