v8
3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
|
#include <utils.h>
Public Member Functions | |
Collector (int initial_capacity=kMinCapacity) | |
virtual | ~Collector () |
void | Add (T value) |
Vector< T > | AddBlock (int size, T initial_value) |
Vector< T > | AddBlock (Vector< const T > source) |
void | WriteTo (Vector< T > destination) |
Vector< T > | ToVector () |
virtual void | Reset () |
int | size () |
Protected Member Functions | |
void | Grow (int min_capacity) |
virtual void | NewChunk (int new_capacity) |
Protected Attributes | |
List< Vector< T > > | chunks_ |
Vector< T > | current_chunk_ |
int | index_ |
int | size_ |
Static Protected Attributes | |
static const int | kMinCapacity = 16 |
|
inlineexplicit |
|
inline |
Definition at line 622 of file utils.h.
Referenced by CompleteParserRecorder::LogFunction(), CompleteParserRecorder::LogMessage(), and TEST().
Definition at line 635 of file utils.h.
Referenced by CompleteParserRecorder::ExtractData(), and TEST().
|
inlineprotected |
Definition at line 709 of file utils.h.
Referenced by Collector< unsigned char, growth_factor, max_growth >::Add(), and Collector< unsigned char, growth_factor, max_growth >::AddBlock().
|
inlineprotectedvirtual |
Definition at line 735 of file utils.h.
Referenced by Collector< unsigned char, growth_factor, max_growth >::Grow().
|
virtual |
Reimplemented in SequenceCollector< T, growth_factor, max_growth >, and SequenceCollector< unsigned char >.
Definition at line 37 of file utils-inl.h.
Referenced by CompleteParserRecorder::LogMessage(), and SequenceCollector< unsigned char >::Reset().
|
inline |
Definition at line 699 of file utils.h.
Referenced by Collector< unsigned char, growth_factor, max_growth >::AddBlock(), CompleteParserRecorder::ExtractData(), CompleteParserRecorderFriend::function_position(), and CompleteParserRecorderFriend::symbol_position().
Definition at line 669 of file utils.h.
Referenced by CompleteParserRecorder::ExtractData(), and Collector< unsigned char, growth_factor, max_growth >::ToVector().
Definition at line 703 of file utils.h.
Referenced by Collector< unsigned char, growth_factor, max_growth >::NewChunk(), Collector< unsigned char, growth_factor, max_growth >::WriteTo(), and Collector< unsigned char, growth_factor, max_growth >::~Collector().
Definition at line 704 of file utils.h.
Referenced by Collector< unsigned char, growth_factor, max_growth >::Add(), Collector< unsigned char, growth_factor, max_growth >::AddBlock(), Collector< unsigned char, growth_factor, max_growth >::Collector(), SequenceCollector< unsigned char >::EndSequence(), Collector< unsigned char, growth_factor, max_growth >::Grow(), Collector< unsigned char, growth_factor, max_growth >::NewChunk(), Collector< unsigned char, growth_factor, max_growth >::WriteTo(), and Collector< unsigned char, growth_factor, max_growth >::~Collector().
|
protected |
Definition at line 705 of file utils.h.
Referenced by Collector< unsigned char, growth_factor, max_growth >::Add(), Collector< unsigned char, growth_factor, max_growth >::AddBlock(), SequenceCollector< unsigned char >::DropSequence(), SequenceCollector< unsigned char >::EndSequence(), Collector< unsigned char, growth_factor, max_growth >::Grow(), Collector< unsigned char, growth_factor, max_growth >::NewChunk(), SequenceCollector< unsigned char >::StartSequence(), and Collector< unsigned char, growth_factor, max_growth >::WriteTo().
|
staticprotected |
Definition at line 702 of file utils.h.
Referenced by Collector< unsigned char, growth_factor, max_growth >::Grow().
|
protected |
Definition at line 706 of file utils.h.
Referenced by Collector< unsigned char, growth_factor, max_growth >::Add(), Collector< unsigned char, growth_factor, max_growth >::AddBlock(), SequenceCollector< unsigned char >::DropSequence(), Collector< unsigned char, growth_factor, max_growth >::size(), Collector< unsigned char, growth_factor, max_growth >::ToVector(), and Collector< unsigned char, growth_factor, max_growth >::WriteTo().