5 #ifndef V8_TRANSITIONS_H_
6 #define V8_TRANSITIONS_H_
39 inline void SetKey(
int transition_number,
Name* value);
44 return GetKey(transition_number);
48 inline void SetTarget(
int transition_number,
Map* target);
143 void PrintTransitions(
OStream& os);
147 bool IsSortedNoDuplicates(
int valid_entries = -1);
148 bool IsConsistentWithBackPointers(
Map* current_map);
185 int origin_transition,
186 int target_transition);
static const int kHeaderSize
bool HasElementsTransition()
static int ToKeyIndex(int transition_number)
int GetSortedKeyIndex(int transition_number)
static const int kFirstIndex
int number_of_transitions()
static const int kSimpleTransitionIndex
static TransitionArray * cast(Object *obj)
void set_back_pointer_storage(Object *back_pointer, WriteBarrierMode mode=UPDATE_WRITE_BARRIER)
static const int kBackPointerStorageOffset
bool HasPrototypeTransitions()
Object ** GetKeySlot(int transition_number)
DISALLOW_IMPLICIT_CONSTRUCTORS(TransitionArray)
static Handle< TransitionArray > AllocateSimple(Isolate *isolate, Handle< Map > target)
static Handle< TransitionArray > ExtendToFullTransitionArray(Handle< Map > containing_map)
static const int kTransitionSize
static const int kNotFound
Object * back_pointer_storage()
Name * GetKey(int transition_number)
static const int kTransitionTarget
Object ** GetPrototypeTransitionsSlot()
static Handle< TransitionArray > NewWith(Handle< Map > map, Handle< Name > name, Handle< Map > target, SimpleTransitionFlag flag)
static Handle< TransitionArray > Allocate(Isolate *isolate, int number_of_transitions)
PropertyDetails GetTargetDetails(int transition_number)
STATIC_ASSERT(kSimpleTransitionIndex !=kNotFound)
void SetKey(int transition_number, Name *value)
static const int kBackPointerStorageIndex
static const int kSimpleTransitionSize
static const int kSimpleTransitionTarget
void SetPrototypeTransitions(FixedArray *prototype_transitions, WriteBarrierMode mode=UPDATE_WRITE_BARRIER)
static int ToTargetIndex(int transition_number)
bool IsFullTransitionArray()
static const int kPrototypeTransitionsOffset
Name * GetSortedKey(int transition_number)
Map * GetTarget(int transition_number)
static Handle< TransitionArray > CopyInsert(Handle< Map > map, Handle< Name > name, Handle< Map > target, SimpleTransitionFlag flag)
void SetTarget(int transition_number, Map *target)
FixedArray * GetPrototypeTransitions()
static const int kMaxNumberOfTransitions
void NoIncrementalWriteBarrierSet(int transition_number, Name *key, Map *target)
static const int kTransitionKey
static const int kPrototypeTransitionsIndex
bool IsSimpleTransition()
void NoIncrementalWriteBarrierCopyFrom(TransitionArray *origin, int origin_transition, int target_transition)
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 mode(MIPS only)") DEFINE_BOOL(enable_always_align_csp
kFeedbackVectorOffset flag
Debugger support for the V8 JavaScript engine.