5#ifndef V8_PARSING_LITERAL_BUFFER_H_
6#define V8_PARSING_LITERAL_BUFFER_H_
56 template <
typename Char>
72 template <
typename IsolateT>
85 return iscntrl(code_unit) || isprint(code_unit);
static const uint16_t kMaxChar
constexpr T * begin() const
bool IsValidAscii(char code_unit)
V8_INLINE void AddOneByteChar(uint8_t one_byte_char)
base::Vector< const Char > literal() const
base::Vector< uint8_t > backing_store_
V8_INLINE void AddChar(char code_unit)
static constexpr int kGrowthFactor
V8_NOINLINE V8_PRESERVE_MOST void ExpandBuffer()
static constexpr int kMaxGrowth
base::Vector< const uint16_t > two_byte_literal() const
V8_INLINE void AddChar(base::uc32 code_unit)
LiteralBuffer(const LiteralBuffer &)=delete
DirectHandle< String > Internalize(IsolateT *isolate) const
static constexpr int kInitialCapacity
void AddTwoByteChar(base::uc32 code_unit)
base::Vector< const uint8_t > one_byte_literal() const
bool Equals(base::Vector< const char > keyword) const
int NewCapacity(int min_capacity)
LiteralBuffer & operator=(const LiteralBuffer &)=delete
constexpr int kOneByteSize
too high values may cause the compiler to set high thresholds for inlining to as much as possible avoid inlined allocation of objects that cannot escape trace load stores from virtual maglev objects use TurboFan fast string builder analyze liveness of environment slots and zap dead values trace TurboFan load elimination emit data about basic block usage in builtins to this enable builtin reordering when run mksnapshot flag for emit warnings when applying builtin profile data verify register allocation in TurboFan randomly schedule instructions to stress dependency tracking enable store store elimination in TurboFan rewrite far to near simulate GC compiler thread race related to allow float parameters to be passed in simulator mode JS Wasm Run additional turbo_optimize_inlined_js_wasm_wrappers enable experimental feedback collection in generic lowering enable Turboshaft s WasmLoadElimination enable Turboshaft s low level load elimination for JS enable Turboshaft s escape analysis for string concatenation use enable Turbolev features that we want to ship in the not too far future trace individual Turboshaft reduction steps trace intermediate Turboshaft reduction steps invocation count threshold for early optimization Enables optimizations which favor memory size over execution speed Enables sampling allocation profiler with X as a sample interval min size of a semi the new space consists of two semi spaces max size of the Collect garbage after Collect garbage after keeps maps alive for< n > old space garbage collections print one detailed trace line in allocation gc speed threshold for starting incremental marking via a task in percent of available threshold for starting incremental marking immediately in percent of available Use a single schedule for determining a marking schedule between JS and C objects schedules the minor GC task with kUserVisible priority max worker number of concurrent for NumberOfWorkerThreads start background threads that allocate memory concurrent_array_buffer_sweeping use parallel threads to clear weak refs in the atomic pause trace progress of the incremental marking trace object counts and memory usage * MB
#define DCHECK(condition)
#define DCHECK_EQ(v1, v2)