14 int instance_type,
int instance_size) {
19 return kVisitSeqOneByteString;
21 return kVisitSeqTwoByteString;
26 return kVisitShortcutCandidate;
28 return kVisitConsString;
32 return kVisitSlicedString;
41 switch (instance_type) {
43 return kVisitByteArray;
46 return kVisitFreeSpace;
49 return kVisitFixedArray;
52 return kVisitFixedDoubleArray;
55 return kVisitConstantPoolArray;
70 return kVisitPropertyCell;
82 return kVisitJSWeakCollection;
85 return kVisitJSRegExp;
88 return kVisitSharedFunctionInfo;
106 return kVisitDataObjectGeneric;
109 return kVisitJSArrayBuffer;
112 return kVisitJSTypedArray;
115 return kVisitJSDataView;
134 return kVisitJSFunction;
138 #define EXTERNAL_ARRAY_CASE(Type, type, TYPE, ctype, size) \
139 case EXTERNAL_##TYPE##_ARRAY_TYPE:
144 #undef EXTERNAL_ARRAY_CASE
154 return kVisitFixedTypedArray;
157 return kVisitFixedFloat64Array;
159 #define MAKE_STRUCT_CASE(NAME, Name, name) case NAME##_TYPE:
161 #undef MAKE_STRUCT_CASE
163 return kVisitAllocationSite;
192 Object* undefined = heap->undefined_value();
197 while (list != undefined) {
199 T* candidate =
reinterpret_cast<T*
>(list);
201 if (retained !=
NULL) {
202 if (head == undefined) {
212 collector->RecordSlot(next_slot, next_slot, retained);
216 DCHECK(!retained->IsUndefined());
217 candidate =
reinterpret_cast<T*
>(retained);
241 Object* undefined = heap->undefined_value();
242 while (list != undefined) {
243 T* candidate =
reinterpret_cast<T*
>(list);
253 function->set_next_function_link(next);
257 return function->next_function_link();
271 code->set_next_code_link(next);
301 DoWeakList<JSFunction>(heap, context, retainer,
311 Object* list_head = VisitWeakList<T>(heap, context->
get(index), retainer);
326 ClearWeakList<JSFunction>(heap,
337 obj->set_weak_next(next);
353 obj->set_weak_next(next);
362 Object* typed_array_obj = VisitWeakList<JSArrayBufferView>(
363 heap, array_buffer->weak_first_view(), retainer);
364 array_buffer->set_weak_first_view(typed_array_obj);
365 if (typed_array_obj != heap->undefined_value() &&
MustRecordSlots(heap)) {
381 obj->set_weak_next(next);
static const int kWeakNextOffset
static const int kNextCodeLinkOffset
@ OPTIMIZED_FUNCTIONS_LIST
static int SizeFor(int length)
void set(int index, Object *value)
static Object ** RawField(HeapObject *obj, int offset)
MarkCompactCollector * mark_compact_collector()
static const int kWeakNextOffset
static const int kWeakFirstViewOffset
static const int kWeakNextOffset
static const int kNextFunctionLinkOffset
bool is_compacting() const
static void FreeArrayBuffer(Isolate *isolate, JSArrayBuffer *phantom_array_buffer)
static VisitorId GetVisitorId(int instance_type, int instance_size)
static VisitorId GetVisitorIdForSize(VisitorId base, VisitorId generic, int object_size)
virtual Object * RetainAs(Object *object)=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
#define DCHECK(condition)
template Object * VisitWeakList< Code >(Heap *heap, Object *list, WeakObjectRetainer *retainer)
const uint32_t kStringEncodingMask
static bool MustRecordSlots(Heap *heap)
template Object * VisitWeakList< JSArrayBuffer >(Heap *heap, Object *list, WeakObjectRetainer *retainer)
static void ClearWeakList(Heap *heap, Object *list)
@ FIXED_DOUBLE_ARRAY_TYPE
@ JS_GENERATOR_OBJECT_TYPE
@ FIXED_UINT16_ARRAY_TYPE
@ JS_CONTEXT_EXTENSION_OBJECT_TYPE
@ MUTABLE_HEAP_NUMBER_TYPE
@ SHARED_FUNCTION_INFO_TYPE
@ FIXED_FLOAT32_ARRAY_TYPE
@ FIXED_UINT32_ARRAY_TYPE
@ FIXED_UINT8_CLAMPED_ARRAY_TYPE
@ JS_BUILTINS_OBJECT_TYPE
@ CONSTANT_POOL_ARRAY_TYPE
@ FIXED_FLOAT64_ARRAY_TYPE
const uint32_t kOneByteStringTag
static bool IsShortcutCandidate(int type)
const uint32_t kStringRepresentationMask
template Object * VisitWeakList< Context >(Heap *heap, Object *list, WeakObjectRetainer *retainer)
template Object * VisitWeakList< JSFunction >(Heap *heap, Object *list, WeakObjectRetainer *retainer)
template Object * VisitWeakList< AllocationSite >(Heap *heap, Object *list, WeakObjectRetainer *retainer)
Object * VisitWeakList(Heap *heap, Object *list, WeakObjectRetainer *retainer)
Debugger support for the V8 JavaScript engine.
#define EXTERNAL_ARRAY_CASE(Type, type, TYPE, ctype, size)
#define MAKE_STRUCT_CASE(NAME, Name, name)
static int WeakNextOffset()
static void VisitLiveObject(Heap *, AllocationSite *, WeakObjectRetainer *)
static void SetWeakNext(AllocationSite *obj, Object *next)
static void VisitPhantomObject(Heap *, AllocationSite *)
static Object * WeakNext(AllocationSite *obj)
static void VisitLiveObject(Heap *, Code *, WeakObjectRetainer *)
static Object * WeakNext(Code *code)
static void VisitPhantomObject(Heap *, Code *)
static void SetWeakNext(Code *code, Object *next)
static int WeakNextOffset()
static int WeakNextOffset()
static void VisitLiveObject(Heap *heap, Context *context, WeakObjectRetainer *retainer)
static void SetWeakNext(Context *context, Object *next)
static void VisitPhantomObject(Heap *heap, Context *context)
static Object * WeakNext(Context *context)
static void DoWeakList(Heap *heap, Context *context, WeakObjectRetainer *retainer, int index)
static void SetWeakNext(JSArrayBufferView *obj, Object *next)
static void VisitPhantomObject(Heap *, JSArrayBufferView *)
static void VisitLiveObject(Heap *, JSArrayBufferView *, WeakObjectRetainer *)
static int WeakNextOffset()
static Object * WeakNext(JSArrayBufferView *obj)
static Object * WeakNext(JSArrayBuffer *obj)
static void VisitLiveObject(Heap *heap, JSArrayBuffer *array_buffer, WeakObjectRetainer *retainer)
static int WeakNextOffset()
static void VisitPhantomObject(Heap *heap, JSArrayBuffer *phantom)
static void SetWeakNext(JSArrayBuffer *obj, Object *next)
static void VisitPhantomObject(Heap *, JSFunction *)
static Object * WeakNext(JSFunction *function)
static int WeakNextOffset()
static void SetWeakNext(JSFunction *function, Object *next)
static void VisitLiveObject(Heap *, JSFunction *, WeakObjectRetainer *)
#define T(name, string, precedence)