5 #ifndef V8_COMPILATION_CACHE_H_
6 #define V8_COMPILATION_CACHE_H_
79 bool is_shared_cross_origin,
90 bool is_shared_cross_origin);
158 int column_offset,
bool is_shared_cross_origin,
Handle<Context> context);
DISALLOW_IMPLICIT_CONSTRUCTORS(CompilationCacheEval)
void Put(Handle< String > source, Handle< Context > context, Handle< SharedFunctionInfo > function_info, int scope_position)
CompilationCacheEval(Isolate *isolate, int generations)
MaybeHandle< SharedFunctionInfo > Lookup(Handle< String > source, Handle< Context > context, StrictMode strict_mode, int scope_position)
MaybeHandle< FixedArray > Lookup(Handle< String > source, JSRegExp::Flags flags)
void Put(Handle< String > source, JSRegExp::Flags flags, Handle< FixedArray > data)
DISALLOW_IMPLICIT_CONSTRUCTORS(CompilationCacheRegExp)
CompilationCacheRegExp(Isolate *isolate, int generations)
DISALLOW_IMPLICIT_CONSTRUCTORS(CompilationCacheScript)
Handle< SharedFunctionInfo > Lookup(Handle< String > source, Handle< Object > name, int line_offset, int column_offset, bool is_shared_cross_origin, Handle< Context > context)
void Put(Handle< String > source, Handle< Context > context, Handle< SharedFunctionInfo > function_info)
CompilationCacheScript(Isolate *isolate, int generations)
bool HasOrigin(Handle< SharedFunctionInfo > function_info, Handle< Object > name, int line_offset, int column_offset, bool is_shared_cross_origin)
bool script_histogram_initialized_
void Iterate(ObjectVisitor *v)
static const int kSubCacheCount
CompilationCache(Isolate *isolate)
CompilationCacheRegExp reg_exp_
void IterateFunctions(ObjectVisitor *v)
MaybeHandle< FixedArray > LookupRegExp(Handle< String > source, JSRegExp::Flags flags)
void PutEval(Handle< String > source, Handle< Context > context, Handle< SharedFunctionInfo > function_info, int scope_position)
MaybeHandle< SharedFunctionInfo > LookupScript(Handle< String > source, Handle< Object > name, int line_offset, int column_offset, bool is_shared_cross_origin, Handle< Context > context)
CompilationCacheEval eval_contextual_
void MarkCompactPrologue()
MaybeHandle< SharedFunctionInfo > LookupEval(Handle< String > source, Handle< Context > context, StrictMode strict_mode, int scope_position)
void PutScript(Handle< String > source, Handle< Context > context, Handle< SharedFunctionInfo > function_info)
CompilationCacheScript script_
void Remove(Handle< SharedFunctionInfo > function_info)
void PutRegExp(Handle< String > source, JSRegExp::Flags flags, Handle< FixedArray > data)
CompilationSubCache * subcaches_[kSubCacheCount]
DISALLOW_COPY_AND_ASSIGN(CompilationCache)
HashMap * EagerOptimizingSet()
CompilationCacheEval eval_global_
Handle< CompilationCacheTable > GetTable(int generation)
CompilationSubCache(Isolate *isolate, int generations)
void Remove(Handle< SharedFunctionInfo > function_info)
DISALLOW_IMPLICIT_CONSTRUCTORS(CompilationSubCache)
void Iterate(ObjectVisitor *v)
void IterateFunctions(ObjectVisitor *v)
static const int kFirstGeneration
Handle< CompilationCacheTable > GetFirstTable()
void SetFirstTable(Handle< CompilationCacheTable > value)
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
#define DCHECK(condition)
void DeleteArray(T *array)
Debugger support for the V8 JavaScript engine.