v8
3.14.5(node0.10.28)
V8 is Google's open source JavaScript engine
|
#include <preparse-data.h>
Public Member Functions | |
FunctionLoggingParserRecorder () | |
virtual | ~FunctionLoggingParserRecorder () |
virtual void | LogFunction (int start, int end, int literals, int properties, LanguageMode language_mode) |
virtual void | LogMessage (int start, int end, const char *message, const char *argument_opt) |
virtual int | function_position () |
virtual Vector< unsigned > | ExtractData ()=0 |
virtual void | PauseRecording () |
virtual void | ResumeRecording () |
Public Member Functions inherited from ParserRecorder | |
ParserRecorder () | |
virtual | ~ParserRecorder () |
virtual void | LogAsciiSymbol (int start, Vector< const char > literal) |
virtual void | LogUtf16Symbol (int start, Vector< const uc16 > literal) |
virtual int | symbol_position ()=0 |
virtual int | symbol_ids ()=0 |
Protected Member Functions | |
bool | has_error () |
bool | is_recording () |
void | WriteString (Vector< const char > str) |
Protected Attributes | |
Collector< unsigned > | function_store_ |
unsigned | preamble_ [PreparseDataConstants::kHeaderSize] |
bool | is_recording_ |
int | pause_count_ |
Definition at line 83 of file preparse-data.h.
Definition at line 43 of file preparse-data.cc.
References ASSERT_EQ, PreparseDataConstants::kCurrentVersion, PreparseDataConstants::kFunctionsSizeOffset, PreparseDataConstants::kHasErrorOffset, PreparseDataConstants::kHeaderSize, PreparseDataConstants::kMagicNumber, PreparseDataConstants::kMagicOffset, PreparseDataConstants::kSizeOffset, PreparseDataConstants::kSymbolCountOffset, PreparseDataConstants::kVersionOffset, and FunctionLoggingParserRecorder::preamble_.
|
inlinevirtual |
Definition at line 86 of file preparse-data.h.
|
pure virtual |
Implements ParserRecorder.
Implemented in CompleteParserRecorder, and PartialParserRecorder.
|
inlinevirtual |
Implements ParserRecorder.
Definition at line 108 of file preparse-data.h.
References FunctionLoggingParserRecorder::function_store_, and Collector< T, growth_factor, max_growth >::size().
|
inlineprotected |
Definition at line 124 of file preparse-data.h.
References PreparseDataConstants::kHasErrorOffset, and FunctionLoggingParserRecorder::preamble_.
Referenced by CompleteParserRecorder::ExtractData(), FunctionLoggingParserRecorder::LogMessage(), and FunctionLoggingParserRecorder::ResumeRecording().
|
inlineprotected |
Definition at line 128 of file preparse-data.h.
References FunctionLoggingParserRecorder::is_recording_.
|
inlinevirtual |
Implements ParserRecorder.
Definition at line 88 of file preparse-data.h.
References Collector< T, growth_factor, max_growth >::Add(), and FunctionLoggingParserRecorder::function_store_.
|
virtual |
Implements ParserRecorder.
Definition at line 62 of file preparse-data.cc.
References Collector< T, growth_factor, max_growth >::Add(), v8::internal::CStrVector(), FunctionLoggingParserRecorder::function_store_, FunctionLoggingParserRecorder::has_error(), FunctionLoggingParserRecorder::is_recording_, PreparseDataConstants::kHasErrorOffset, PreparseDataConstants::kMessageArgCountPos, PreparseDataConstants::kMessageEndPos, PreparseDataConstants::kMessageStartPos, PreparseDataConstants::kMessageTextPos, v8::internal::NULL, FunctionLoggingParserRecorder::preamble_, Collector< T, growth_factor, max_growth >::Reset(), v8::internal::STATIC_ASSERT(), and FunctionLoggingParserRecorder::WriteString().
|
inlinevirtual |
Implements ParserRecorder.
Definition at line 113 of file preparse-data.h.
References FunctionLoggingParserRecorder::is_recording_, and FunctionLoggingParserRecorder::pause_count_.
|
inlinevirtual |
Implements ParserRecorder.
Definition at line 118 of file preparse-data.h.
References ASSERT, FunctionLoggingParserRecorder::has_error(), FunctionLoggingParserRecorder::is_recording_, and FunctionLoggingParserRecorder::pause_count_.
|
protected |
Definition at line 82 of file preparse-data.cc.
References Collector< T, growth_factor, max_growth >::Add(), FunctionLoggingParserRecorder::function_store_, and Vector< T >::length().
Referenced by FunctionLoggingParserRecorder::LogMessage().
|
protected |
Definition at line 134 of file preparse-data.h.
Referenced by PartialParserRecorder::ExtractData(), CompleteParserRecorder::ExtractData(), FunctionLoggingParserRecorder::function_position(), FunctionLoggingParserRecorder::LogFunction(), FunctionLoggingParserRecorder::LogMessage(), and FunctionLoggingParserRecorder::WriteString().
|
protected |
Definition at line 136 of file preparse-data.h.
Referenced by FunctionLoggingParserRecorder::is_recording(), CompleteParserRecorder::LogAsciiSymbol(), FunctionLoggingParserRecorder::LogMessage(), CompleteParserRecorder::LogUtf16Symbol(), FunctionLoggingParserRecorder::PauseRecording(), and FunctionLoggingParserRecorder::ResumeRecording().
|
protected |
Definition at line 137 of file preparse-data.h.
Referenced by FunctionLoggingParserRecorder::PauseRecording(), and FunctionLoggingParserRecorder::ResumeRecording().
|
protected |