Definition at line 4271 of file api.cc.
◆ ContainsOnlyOneByteHelper()
v8::ContainsOnlyOneByteHelper::ContainsOnlyOneByteHelper |
( |
| ) |
|
|
inline |
◆ Check()
Definition at line 4274 of file api.cc.
bool CheckCons(i::ConsString *cons_string)
static ConsString * VisitFlat(Visitor *visitor, String *string, int offset=0)
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
References CheckCons(), is_one_byte_, NULL, and v8::internal::String::VisitFlat().
Referenced by v8::String::ContainsOnlyOneByte().
◆ CheckCons()
◆ DISALLOW_COPY_AND_ASSIGN()
◆ VisitOneByteString()
void v8::ContainsOnlyOneByteHelper::VisitOneByteString |
( |
const uint8_t * |
chars, |
|
|
int |
length |
|
) |
| |
|
inline |
◆ VisitTwoByteString()
void v8::ContainsOnlyOneByteHelper::VisitTwoByteString |
( |
const uint16_t * |
chars, |
|
|
int |
length |
|
) |
| |
|
inline |
Definition at line 4282 of file api.cc.
4286 const uint16_t* end = chars + length;
4287 while (
Unaligned(chars) && chars != end) {
4294 const int inner_loops = 16;
4295 while (chars + inner_loops*increment < aligned_end) {
4296 for (
int i = 0;
i < inner_loops;
i++) {
4297 acc |= *
reinterpret_cast<const uintptr_t*
>(chars);
4307 while (chars != end) {
static const uint16_t * Align(const uint16_t *chars)
static const uintptr_t kOneByteMask
static bool Unaligned(const uint16_t *chars)
References v8::Align(), is_one_byte_, v8::kOneByteMask, and v8::Unaligned().
◆ is_one_byte_
bool v8::ContainsOnlyOneByteHelper::is_one_byte_ |
|
private |
The documentation for this class was generated from the following file: