Home
last modified time | relevance | path

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

12

/external/v8/src/snapshot/
Dstartup-serializer.cc55 int root_index = root_index_map_.Lookup(obj); in SerializeObject() local
58 if (root_index != RootIndexMap::kInvalidRootIndex) { in SerializeObject()
59 if (root_has_been_serialized_.test(root_index)) { in SerializeObject()
60 PutRoot(root_index, obj, how_to_code, where_to_point, skip); in SerializeObject()
75 root_index != RootIndexMap::kInvalidRootIndex) { in SerializeObject()
149 int root_index = static_cast<int>(current - start); in VisitPointers() local
150 if (RootShouldBeSkipped(root_index)) { in VisitPointers()
161 root_has_been_serialized_.set(root_index); in VisitPointers()
171 bool StartupSerializer::RootShouldBeSkipped(int root_index) { in RootShouldBeSkipped() argument
172 if (root_index == Heap::kStackLimitRootIndex || in RootShouldBeSkipped()
[all …]
Dpartial-serializer.cc56 int root_index = root_index_map_.Lookup(obj); in SerializeObject() local
57 if (root_index != RootIndexMap::kInvalidRootIndex) { in SerializeObject()
58 PutRoot(root_index, obj, how_to_code, where_to_point, skip); in SerializeObject()
Dserializer.cc200 void Serializer::PutRoot(int root_index, HeapObject* object, in PutRoot() argument
205 PrintF(" Encoding root %d:", root_index); in PutRoot()
211 root_index < kNumberOfRootArrayConstants && in PutRoot()
214 sink_.Put(kRootArrayConstants + root_index, "RootConstant"); in PutRoot()
216 sink_.Put(kRootArrayConstantsWithSkip + root_index, "RootConstant"); in PutRoot()
222 sink_.PutInt(root_index, "root_index"); in PutRoot()
548 int root_index = serializer_->root_index_map()->Lookup(current_contents); in VisitPointers() local
551 if (current != start && root_index != RootIndexMap::kInvalidRootIndex && in VisitPointers()
552 Heap::RootIsImmortalImmovable(root_index) && in VisitPointers()
Dstartup-serializer.h69 bool RootShouldBeSkipped(int root_index);
Dcode-serializer.cc52 int root_index = root_index_map_.Lookup(obj); in SerializeObject() local
53 if (root_index != RootIndexMap::kInvalidRootIndex) { in SerializeObject()
54 PutRoot(root_index, obj, how_to_code, where_to_point, skip); in SerializeObject()
Ddeserializer.cc475 Heap::RootListIndex root_index = static_cast<Heap::RootListIndex>(id); \ in ReadData()
476 new_object = isolate->heap()->root(root_index); \ in ReadData()
750 Heap::RootListIndex root_index = static_cast<Heap::RootListIndex>(id); in ReadData() local
751 Object* object = isolate->heap()->root(root_index); in ReadData()
/external/v8/src/wasm/
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.cc1256 Heap::RootListIndex root_index = static_cast<Heap::RootListIndex>(i); in CanLeak() local
1257 if (map == heap->root(root_index)) return false; in CanLeak()
/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/
Dcode-assembler.cc250 Node* CodeAssembler::LoadRoot(Heap::RootListIndex root_index) { in LoadRoot() argument
251 if (isolate()->heap()->RootCanBeTreatedAsConstant(root_index)) { in LoadRoot()
252 Handle<Object> root = isolate()->heap()->root_handle(root_index); in LoadRoot()
263 IntPtrConstant(root_index * kPointerSize)); in LoadRoot()
290 Node* CodeAssembler::StoreRoot(Heap::RootListIndex root_index, Node* value) { in StoreRoot() argument
291 DCHECK(Heap::RootCanBeWrittenAfterInitialization(root_index)); in StoreRoot()
295 IntPtrConstant(root_index * kPointerSize), value); in StoreRoot()
Dcode-assembler.h251 Node* LoadRoot(Heap::RootListIndex root_index);
263 Node* StoreRoot(Heap::RootListIndex root_index, Node* value);
Dcode-generator.cc300 int root_index = map.Lookup(*object); in IsMaterializableFromRoot() local
301 if (root_index != RootIndexMap::kInvalidRootIndex) { in IsMaterializableFromRoot()
302 *index_return = static_cast<Heap::RootListIndex>(root_index); in IsMaterializableFromRoot()
Dsimplified-lowering.cc1020 int root_index = root_index_map.Lookup(*value_object); in WriteBarrierKindFor() local
1021 if (root_index != RootIndexMap::kInvalidRootIndex && in WriteBarrierKindFor()
1022 jsgraph_->isolate()->heap()->RootIsImmortalImmovable(root_index)) { in WriteBarrierKindFor()
/external/v8/src/heap/
Dheap.h597 static bool RootIsImmortalImmovable(int root_index);
604 static bool RootCanBeWrittenAfterInitialization(RootListIndex root_index);
1044 bool RootCanBeTreatedAsConstant(RootListIndex root_index);
Dheap.cc2922 bool Heap::RootCanBeWrittenAfterInitialization(Heap::RootListIndex root_index) { in RootCanBeWrittenAfterInitialization() argument
2923 switch (root_index) { in RootCanBeWrittenAfterInitialization()
2954 bool Heap::RootCanBeTreatedAsConstant(RootListIndex root_index) { in RootCanBeTreatedAsConstant() argument
2955 return !RootCanBeWrittenAfterInitialization(root_index) && in RootCanBeTreatedAsConstant()
2956 !InNewSpace(root(root_index)); in RootCanBeTreatedAsConstant()
4604 bool Heap::RootIsImmortalImmovable(int root_index) { in RootIsImmortalImmovable() argument
4605 switch (root_index) { in RootIsImmortalImmovable()
/external/v8/include/
Dv8.h7939 int root_index;
7941 root_index = I::kTrueValueRootIndex;
7943 root_index = I::kFalseValueRootIndex;
7945 *value_ = *I::GetRoot(GetIsolate(), root_index);
/external/v8/src/s390/
Dbuiltins-s390.cc125 Heap::RootListIndex const root_index = in Generate_MathMaxMin() local
132 __ LoadRoot(r7, root_index); in Generate_MathMaxMin()
/external/v8/src/arm64/
Dbuiltins-arm64.cc134 Heap::RootListIndex const root_index = in Generate_MathMaxMin() local
140 __ LoadRoot(x5, root_index); in Generate_MathMaxMin()
/external/v8/src/x64/
Dbuiltins-x64.cc1644 Heap::RootListIndex const root_index = in Generate_MathMaxMin() local
1651 __ LoadRoot(rdx, root_index); in Generate_MathMaxMin()
/external/v8/src/ppc/
Dbuiltins-ppc.cc133 Heap::RootListIndex const root_index = in Generate_MathMaxMin() local
140 __ LoadRoot(r8, root_index); in Generate_MathMaxMin()
/external/v8/src/arm/
Dbuiltins-arm.cc133 Heap::RootListIndex const root_index = in Generate_MathMaxMin() local
140 __ LoadRoot(r5, root_index); in Generate_MathMaxMin()
/external/v8/src/mips64/
Dbuiltins-mips64.cc135 Heap::RootListIndex const root_index = in Generate_MathMaxMin() local
141 __ LoadRoot(t1, root_index); in Generate_MathMaxMin()
/external/v8/src/mips/
Dbuiltins-mips.cc136 Heap::RootListIndex const root_index = in Generate_MathMaxMin() local
142 __ LoadRoot(t2, root_index); in Generate_MathMaxMin()
/external/v8/src/x87/
Dbuiltins-x87.cc1576 Heap::RootListIndex const root_index = in Generate_MathMaxMin() local
1583 __ LoadRoot(edx, root_index); in Generate_MathMaxMin()

12