Home
last modified time | relevance | path

Searched refs:root_index (Results 1 – 25 of 30) sorted by relevance

12

/external/v8/src/snapshot/
Dstartup-serializer.cc56 int root_index = root_index_map_.Lookup(obj); in SerializeObject() local
59 if (root_index != RootIndexMap::kInvalidRootIndex) { in SerializeObject()
60 if (root_has_been_serialized_.test(root_index)) { in SerializeObject()
61 PutRoot(root_index, obj, how_to_code, where_to_point, skip); in SerializeObject()
84 root_index != RootIndexMap::kInvalidRootIndex) { in SerializeObject()
156 int root_index = static_cast<int>(current - start); in VisitPointers() local
157 if (RootShouldBeSkipped(root_index)) { in VisitPointers()
168 root_has_been_serialized_.set(root_index); in VisitPointers()
178 bool StartupSerializer::RootShouldBeSkipped(int root_index) { in RootShouldBeSkipped() argument
179 if (root_index == Heap::kStackLimitRootIndex || in RootShouldBeSkipped()
[all …]
Dpartial-serializer.cc63 int root_index = root_index_map_.Lookup(obj); in SerializeObject() local
64 if (root_index != RootIndexMap::kInvalidRootIndex) { in SerializeObject()
65 PutRoot(root_index, obj, how_to_code, where_to_point, skip); in SerializeObject()
Dserializer.cc207 void Serializer::PutRoot(int root_index, HeapObject* object, in PutRoot() argument
212 PrintF(" Encoding root %d:", root_index); in PutRoot()
223 root_index < kNumberOfRootArrayConstants && in PutRoot()
226 sink_.Put(kRootArrayConstants + root_index, "RootConstant"); in PutRoot()
228 sink_.Put(kRootArrayConstantsWithSkip + root_index, "RootConstant"); in PutRoot()
234 sink_.PutInt(root_index, "root_index"); in PutRoot()
571 int root_index = serializer_->root_index_map()->Lookup(current_contents); in VisitPointers() local
574 if (current != start && root_index != RootIndexMap::kInvalidRootIndex && in VisitPointers()
575 Heap::RootIsImmortalImmovable(root_index) && in VisitPointers()
Dstartup-serializer.h69 bool RootShouldBeSkipped(int root_index);
Dcode-serializer.cc66 int root_index = root_index_map_.Lookup(obj); in SerializeObject() local
67 if (root_index != RootIndexMap::kInvalidRootIndex) { in SerializeObject()
68 PutRoot(root_index, obj, how_to_code, where_to_point, skip); in SerializeObject()
Ddeserializer.cc529 Heap::RootListIndex root_index = static_cast<Heap::RootListIndex>(id); \ in ReadData()
530 new_object = isolate->heap()->root(root_index); \ in ReadData()
805 Heap::RootListIndex root_index = static_cast<Heap::RootListIndex>(id); in ReadData() local
806 Object* object = isolate->heap()->root(root_index); in ReadData()
/external/v8/src/asmjs/
Dswitch-logic.cc18 size_t root_index = (begin + end) / 2; in CreateBst() local
19 CaseNode* root = nodes->at(root_index); in CreateBst()
20 if (root_index != 0) { in CreateBst()
21 root->left = CreateBst(nodes, begin, root_index - 1); in CreateBst()
23 root->right = CreateBst(nodes, root_index + 1, end); in CreateBst()
/external/v8/src/
Daddress-map.cc18 Heap::RootListIndex root_index = static_cast<Heap::RootListIndex>(i); in RootIndexMap() local
19 Object* root = isolate->heap()->root(root_index); in RootIndexMap()
23 if (isolate->heap()->RootCanBeTreatedAsConstant(root_index)) { in RootIndexMap()
36 CHECK(!Heap::RootIsImmortalImmovable(root_index)); in RootIndexMap()
Dobjects-debug.cc1493 Heap::RootListIndex root_index = static_cast<Heap::RootListIndex>(i); in CanLeak() local
1494 if (map == heap->root(root_index)) return false; in CanLeak()
Dcode-stub-assembler.cc957 Heap::RootListIndex root_index) { in LoadAndUntagToWord32Root() argument
960 int index = root_index * kPointerSize; in LoadAndUntagToWord32Root()
1393 Heap::RootListIndex root_index) { in StoreObjectFieldRoot() argument
1394 if (Heap::RootIsImmortalImmovable(root_index)) { in StoreObjectFieldRoot()
1395 return StoreObjectFieldNoWriteBarrier(object, offset, LoadRoot(root_index)); in StoreObjectFieldRoot()
1397 return StoreObjectField(object, offset, LoadRoot(root_index)); in StoreObjectFieldRoot()
6377 Heap::RootListIndex root_index) { in InitializeFieldsWithRoot() argument
6380 Node* root_value = LoadRoot(root_index); in InitializeFieldsWithRoot()
/external/v8/src/compiler/
Dcode-assembler.cc418 Node* CodeAssembler::LoadRoot(Heap::RootListIndex root_index) { in LoadRoot() argument
419 if (isolate()->heap()->RootCanBeTreatedAsConstant(root_index)) { in LoadRoot()
420 Handle<Object> root = isolate()->heap()->root_handle(root_index); in LoadRoot()
431 IntPtrConstant(root_index * kPointerSize)); in LoadRoot()
465 Node* CodeAssembler::StoreRoot(Heap::RootListIndex root_index, Node* value) { in StoreRoot() argument
466 DCHECK(Heap::RootCanBeWrittenAfterInitialization(root_index)); in StoreRoot()
470 IntPtrConstant(root_index * kPointerSize), value); in StoreRoot()
Dcode-assembler.h263 Node* LoadRoot(Heap::RootListIndex root_index);
276 Node* StoreRoot(Heap::RootListIndex root_index, Node* value);
Dcode-generator.cc298 int root_index = map.Lookup(*object); in IsMaterializableFromRoot() local
299 if (root_index != RootIndexMap::kInvalidRootIndex) { in IsMaterializableFromRoot()
300 *index_return = static_cast<Heap::RootListIndex>(root_index); in IsMaterializableFromRoot()
Dinstruction-selector.cc446 Heap::RootListIndex root_index; in OperandForDeopt() local
447 if (isolate->heap()->IsRootHandle(constant, &root_index) && in OperandForDeopt()
448 root_index == Heap::kOptimizedOutRootIndex) { in OperandForDeopt()
Dsimplified-lowering.cc1117 Heap::RootListIndex root_index; in WriteBarrierKindFor() local
1120 &root_index)) { in WriteBarrierKindFor()
1121 if (heap->RootIsImmortalImmovable(root_index)) { in WriteBarrierKindFor()
/external/ImageMagick/MagickCore/
Dnt-base.c1091 static int NTLocateGhostscript(DWORD flags,int *root_index, in NTLocateGhostscript() argument
1113 *root_index=0; in NTLocateGhostscript()
1162 *root_index=j; in NTLocateGhostscript()
1203 root_index=0; in NTGhostscriptGetString() local
1247 (void) NTLocateGhostscript(flags,&root_index,&product_family, in NTGhostscriptGetString()
1261 (void) NTLocateGhostscript(flags,&root_index,&product_family, in NTGhostscriptGetString()
1274 if (NTGetRegistryValue(registry_roots[root_index].hkey,buffer,flags,name, in NTGhostscriptGetString()
1278 "registry: \"%s\\%s\\%s\"=\"%s\"",registry_roots[root_index].name, in NTGhostscriptGetString()
/external/v8/src/compiler/x64/
Dinstruction-selector-x64.cc1754 Heap::RootListIndex root_index; in VisitWord64Compare() local
1757 heap->IsRootHandle(m.right().Value(), &root_index)) { in VisitWord64Compare()
1763 g.TempImmediate((root_index * kPointerSize) - kRootRegisterBias), in VisitWord64Compare()
1766 heap->IsRootHandle(m.left().Value(), &root_index)) { in VisitWord64Compare()
1771 g.TempImmediate((root_index * kPointerSize) - kRootRegisterBias), in VisitWord64Compare()
/external/v8/src/heap/
Dheap.h674 static bool RootIsImmortalImmovable(int root_index);
681 static bool RootCanBeWrittenAfterInitialization(RootListIndex root_index);
1127 bool RootCanBeTreatedAsConstant(RootListIndex root_index);
Dheap.cc2915 bool Heap::RootCanBeWrittenAfterInitialization(Heap::RootListIndex root_index) { in RootCanBeWrittenAfterInitialization() argument
2916 switch (root_index) { in RootCanBeWrittenAfterInitialization()
2951 bool Heap::RootCanBeTreatedAsConstant(RootListIndex root_index) { in RootCanBeTreatedAsConstant() argument
2952 return !RootCanBeWrittenAfterInitialization(root_index) && in RootCanBeTreatedAsConstant()
2953 !InNewSpace(root(root_index)); in RootCanBeTreatedAsConstant()
4753 bool Heap::RootIsImmortalImmovable(int root_index) { in RootIsImmortalImmovable() argument
4754 switch (root_index) { in RootIsImmortalImmovable()
/external/v8/include/
Dv8.h8925 int root_index;
8927 root_index = I::kTrueValueRootIndex;
8929 root_index = I::kFalseValueRootIndex;
8931 *value_ = *I::GetRoot(GetIsolate(), root_index);
/external/v8/src/builtins/arm64/
Dbuiltins-arm64.cc132 Heap::RootListIndex const root_index = in Generate_MathMaxMin() local
138 __ LoadRoot(x5, root_index); in Generate_MathMaxMin()
/external/v8/src/builtins/x64/
Dbuiltins-x64.cc1697 Heap::RootListIndex const root_index = in Generate_MathMaxMin() local
1704 __ LoadRoot(rdx, root_index); in Generate_MathMaxMin()
/external/v8/src/builtins/ppc/
Dbuiltins-ppc.cc130 Heap::RootListIndex const root_index = in Generate_MathMaxMin() local
137 __ LoadRoot(r8, root_index); in Generate_MathMaxMin()
/external/v8/src/builtins/arm/
Dbuiltins-arm.cc131 Heap::RootListIndex const root_index = in Generate_MathMaxMin() local
138 __ LoadRoot(r5, root_index); in Generate_MathMaxMin()
/external/v8/src/builtins/mips64/
Dbuiltins-mips64.cc133 Heap::RootListIndex const root_index = in Generate_MathMaxMin() local
139 __ LoadRoot(t1, root_index); in Generate_MathMaxMin()

12