V8 Project
|
#include <scanner.h>
Public Member Functions | |
DuplicateFinder (UnicodeCache *constants) | |
int | AddOneByteSymbol (Vector< const uint8_t > key, int value) |
int | AddTwoByteSymbol (Vector< const uint16_t > key, int value) |
int | AddNumber (Vector< const uint8_t > key, int value) |
Private Member Functions | |
int | AddSymbol (Vector< const uint8_t > key, bool is_one_byte, int value) |
uint8_t * | BackupKey (Vector< const uint8_t > key, bool is_one_byte) |
Static Private Member Functions | |
static bool | Match (void *first, void *second) |
static uint32_t | Hash (Vector< const uint8_t > key, bool is_one_byte) |
static bool | IsNumberCanonical (Vector< const uint8_t > key) |
Private Attributes | |
UnicodeCache * | unicode_constants_ |
SequenceCollector< unsigned char > | backing_store_ |
HashMap | map_ |
char | number_buffer_ [kBufferSize] |
Static Private Attributes | |
static const int | kBufferSize = 100 |
|
inlineexplicit |
Definition at line 146 of file scanner.h.
Definition at line 1256 of file scanner.cc.
References AddOneByteSymbol(), AddSymbol(), v8::internal::ALLOW_BINARY, v8::internal::ALLOW_HEX, v8::internal::ALLOW_IMPLICIT_OCTAL, v8::internal::ALLOW_OCTAL, DCHECK, v8::internal::DoubleToCString(), v8::internal::anonymous_namespace{flags.cc}::flags, IsNumberCanonical(), kBufferSize, v8::internal::Vector< T >::length(), number_buffer_, v8::internal::StringToDouble(), v8::internal::StrLength(), and unicode_constants_.
Referenced by v8::internal::Scanner::FindNumber().
Definition at line 1233 of file scanner.cc.
References AddSymbol().
Referenced by AddNumber(), and v8::internal::Scanner::FindSymbol().
|
private |
Definition at line 1243 of file scanner.cc.
References BackupKey(), Hash(), v8::internal::TemplateHashMapImpl< AllocationPolicy >::Lookup(), and map_.
Referenced by AddNumber(), AddOneByteSymbol(), and AddTwoByteSymbol().
Definition at line 1238 of file scanner.cc.
References AddSymbol().
Referenced by v8::internal::Scanner::FindSymbol().
|
private |
Definition at line 1345 of file scanner.cc.
References v8::internal::Collector< T, growth_factor, max_growth >::Add(), v8::internal::Collector< T, growth_factor, max_growth >::AddBlock(), backing_store_, v8::internal::SequenceCollector< T, growth_factor, max_growth >::EndSequence(), v8::internal::Vector< T >::length(), and v8::internal::SequenceCollector< T, growth_factor, max_growth >::StartSequence().
Referenced by AddSymbol().
|
staticprivate |
Definition at line 1309 of file scanner.cc.
References v8::internal::Vector< T >::length().
Referenced by AddSymbol().
Definition at line 1281 of file scanner.cc.
References v8::internal::Vector< T >::length().
Referenced by AddNumber().
|
staticprivate |
|
private |
Definition at line 184 of file scanner.h.
Referenced by BackupKey().
|
staticprivate |
Definition at line 180 of file scanner.h.
Referenced by AddNumber().
|
private |
Definition at line 185 of file scanner.h.
Referenced by AddSymbol().
|
private |
Definition at line 187 of file scanner.h.
Referenced by AddNumber().
|
private |
Definition at line 182 of file scanner.h.
Referenced by AddNumber().