42 literal_bytes_(lb), pos_(0) {}
44 bool HasMore() {
return pos_ < literal_bytes_.length(); }
62 return String::cast(other)->IsTwoByteEqualTo(
71 return String::cast(key)->Hash();
76 return isolate->factory()->NewOneByteInternalizedString(
78 return isolate->factory()->NewTwoByteInternalizedString(
100 return string_->AsArrayIndex(index);
110 int length =
static_cast<int>(strlen(data));
113 return !strncmp(token, data,
length);
123 if (string1->
hash_ != string2->
hash_)
return false;
206 Factory* factory = isolate->
factory();
209 for (
int i = 0;
i < len;
i++) {
214 elements->set(
i, *element);
235 uint32_t hash = StringHasher::HashSequentialString<uint8_t>(
243 uint32_t hash = StringHasher::HashSequentialString<uint16_t>(
391 if (entry->value ==
NULL) {
393 int length = literal_bytes.
length();
395 memcpy(new_literal_bytes, literal_bytes.
start(), length);
398 entry->key = new_string;
403 entry->value =
reinterpret_cast<void*
>(1);
virtual void Internalize(Isolate *isolate) OVERRIDE
virtual uint32_t HashForObject(Object *key) OVERRIDE
virtual uint32_t Hash() OVERRIDE
const AstRawString * string_
virtual bool IsMatch(Object *other) OVERRIDE
AstRawStringInternalizationKey(const AstRawString *string)
virtual Handle< Object > AsHandle(Isolate *isolate) OVERRIDE
virtual void Internalize(Isolate *isolate) OVERRIDE
Vector< const byte > literal_bytes_
bool IsOneByteEqualTo(const char *data) const
static bool Compare(void *a, void *b)
bool AsArrayIndex(uint32_t *index) const
virtual int length() const OVERRIDE
Handle< String > string() const
void Internalize(Isolate *isolate)
const AstValue * NewStringList(ZoneList< const AstRawString * > *strings)
const AstRawString * GetTwoByteString(Vector< const uint16_t > literal)
const AstValue * NewUndefined()
const AstRawString * GetOneByteString(Vector< const uint8_t > literal)
const AstValue * NewNumber(double number)
const AstValue * NewNull()
const AstValue * NewSmi(int number)
const AstConsString * NewConsString(const AstString *left, const AstString *right)
List< AstString * > strings_
List< AstValue * > values_
const AstRawString * GetString(Handle< String > literal)
const AstValue * NewTheHole()
const AstValue * NewString(const AstRawString *string)
const AstValue * NewBoolean(bool b)
const AstValue * NewSymbol(const char *name)
const AstRawString * string_
void Internalize(Isolate *isolate)
ZoneList< const AstRawString * > * strings_
bool BooleanValue() const
const char * symbol_name_
bool IsPropertyName() const
Handle< Context > native_context()
static const int kHashShift
static MUST_USE_RESULT MaybeHandle< Object > GetProperty(LookupIterator *it)
static Smi * FromInt(int value)
static Handle< String > LookupKey(Isolate *isolate, HashTableKey *key)
Vector< const uint8_t > ToOneByteVector()
Vector< const uc16 > ToUC16Vector()
static const int kMaxArrayIndexSize
Entry * Lookup(void *key, uint32_t hash, bool insert, AllocationPolicy allocator=AllocationPolicy())
OneByteStringStream(Vector< const byte > lb)
Vector< const byte > literal_bytes_
enable harmony numeric enable harmony object literal extensions Optimize object Array DOM strings and string trace pretenuring decisions of HAllocate instructions Enables optimizations which favor memory size over execution speed maximum source size in bytes considered for a single inlining maximum cumulative number of AST nodes considered for inlining trace the tracking of allocation sites deoptimize every n garbage collections perform array bounds checks elimination analyze liveness of environment slots and zap dead values flushes the cache of optimized code for closures on every GC allow uint32 values on optimize frames if they are used only in safe operations track concurrent recompilation artificial compilation delay in ms do not emit check maps for constant values that have a leaf deoptimize the optimized code if the layout of the maps changes enable context specialization in TurboFan execution budget before interrupt is triggered max percentage of megamorphic generic ICs to allow optimization enable use of SAHF instruction if enable use of VFP3 instructions if available enable use of NEON instructions if enable use of SDIV and UDIV instructions if enable use of MLS instructions if enable loading bit constant by means of movw movt instruction enable unaligned accesses for enable use of d16 d31 registers on ARM this requires VFP3 force all emitted branches to be in long enable alignment of csp to bytes on platforms which prefer the register to always be expose gc extension under the specified name show built in functions in stack traces use random jit cookie to mask large constants minimum length for automatic enable preparsing CPU profiler sampling interval in microseconds trace out of bounds accesses to external arrays default size of stack region v8 is allowed to maximum length of function source code printed in a stack trace min size of a semi the new space consists of two semi spaces print one trace line following each garbage collection do not print trace line after scavenger collection print cumulative GC statistics in name
enable harmony numeric enable harmony object literal extensions Optimize object Array DOM strings and string trace pretenuring decisions of HAllocate instructions Enables optimizations which favor memory size over execution speed maximum source size in bytes considered for a single inlining maximum cumulative number of AST nodes considered for inlining trace the tracking of allocation sites deoptimize every n garbage collections perform array bounds checks elimination analyze liveness of environment slots and zap dead values flushes the cache of optimized code for closures on every GC allow uint32 values on optimize frames if they are used only in safe operations track concurrent recompilation artificial compilation delay in ms do not emit check maps for constant values that have a leaf deoptimize the optimized code if the layout of the maps changes enable context specialization in TurboFan execution budget before interrupt is triggered max percentage of megamorphic generic ICs to allow optimization enable use of SAHF instruction if enable use of VFP3 instructions if available enable use of NEON instructions if enable use of SDIV and UDIV instructions if enable use of MLS instructions if enable loading bit constant by means of movw movt instruction enable unaligned accesses for enable use of d16 d31 registers on ARM this requires VFP3 force all emitted branches to be in long enable alignment of csp to bytes on platforms which prefer the register to always be NULL
#define DCHECK(condition)
bool DoubleToBoolean(double d)
Handle< T > handle(T *t, Isolate *isolate)
bool StringToArrayIndex(Stream *stream, uint32_t *index)
Debugger support for the V8 JavaScript engine.