26 current_value_(target->
data_[0]),
33 bool Done()
const {
return current_index_ >= target_->data_length_; }
43 while ((val & 0xFF) == 0) {
50 while ((val & 0x1) == 0) {
81 return 1 + ((
length - 1) / 32);
102 return (block & (1U << (
i % 32))) != 0;
107 data_[
i / 32] |= (1U << (
i % 32));
112 data_[
i / 32] &= ~(1U << (
i % 32));
124 bool changed =
false;
128 if (
data_[
i] != old_data) changed =
true;
142 bool changed =
false;
146 if (
data_[
i] != old_data) changed =
true;
166 if (
data_[
i] != 0)
return false;
198 : it_(target->bits_ ==
NULL
201 bool Done()
const {
return it_.Done(); }
210 : bits_(new(zone)
BitVector(length, zone)) { }
213 if (!InBitsRange(value))
return false;
214 return bits_->Contains(value);
218 EnsureCapacity(value, zone);
222 void Union(
const GrowableBitVector& other,
Zone* zone) {
223 for (Iterator it(&other, zone); !it.Done(); it.Advance()) {
224 Add(it.Current(), zone);
231 static const int kInitialLength = 1024;
234 return bits_ !=
NULL && bits_->length() > value;
238 if (InBitsRange(value))
return;
239 int new_length = bits_ ==
NULL ? kInitialLength : bits_->length();
240 while (new_length <= value) new_length *= 2;
Iterator(const GrowableBitVector *target, Zone *zone)
void EnsureCapacity(int value, Zone *zone)
void Union(const GrowableBitVector &other, Zone *zone)
bool Contains(int value) const
bool InBitsRange(int value) const
GrowableBitVector(int length, Zone *zone)
void Add(int value, Zone *zone)
uint32_t SkipZeroBits(uint32_t val)
uint32_t SkipZeroBytes(uint32_t val)
Iterator(BitVector *target)
void Subtract(const BitVector &other)
BitVector & operator=(const BitVector &rhs)
bool IntersectIsChanged(const BitVector &other)
bool UnionIsChanged(const BitVector &other)
void CopyFrom(const BitVector &other)
void Intersect(const BitVector &other)
BitVector(const BitVector &other, Zone *zone)
bool Contains(int i) const
void Union(const BitVector &other)
bool Equals(const BitVector &other)
static int SizeFor(int length)
BitVector(int length, Zone *zone)
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)
T * NewArray(size_t size)
Debugger support for the V8 JavaScript engine.