Home
last modified time | relevance | path

Searched refs:cell_index (Results 1 - 22 of 22) sorted by relevance

/third_party/node/deps/v8/src/heap/
H A Dobject-start-bitmap.h68 inline void store(size_t cell_index, uint32_t value);
69 inline uint32_t load(size_t cell_index) const;
98 size_t cell_index = object_start_number / kBitsPerCell; in FindBasePtr() local
99 DCHECK_GT(object_start_bit_map_.size(), cell_index); in FindBasePtr()
102 uint32_t byte = load(cell_index) & ((1 << (bit + 1)) - 1); in FindBasePtr()
103 while (!byte && cell_index) { in FindBasePtr()
104 DCHECK_LT(0u, cell_index); in FindBasePtr()
105 byte = load(--cell_index); in FindBasePtr()
113 (cell_index * kBitsPerCell) + (kBitsPerCell - 1) - leading_zeroes; in FindBasePtr()
119 size_t cell_index, object_bi in SetBit() local
126 size_t cell_index, object_bit; ClearBit() local
133 size_t cell_index, object_bit; CheckBit() local
138 store(size_t cell_index, uint32_t value) store() argument
149 ObjectStartIndexAndBit(Address base_ptr, size_t* cell_index, size_t* bit) const ObjectStartIndexAndBit() argument
[all...]
H A Dslot-set.h206 int cell_index, bit_index; in Insert() local
207 SlotToIndices(slot_offset, &bucket_index, &cell_index, &bit_index); in Insert()
221 if ((bucket->LoadCell<access_mode>(cell_index) & mask) == 0) { in Insert()
222 bucket->SetCellBits<access_mode>(cell_index, mask); in Insert()
230 int cell_index, bit_index; in Contains() local
231 SlotToIndices(slot_offset, &bucket_index, &cell_index, &bit_index); in Contains()
234 return (bucket->LoadCell(cell_index) & (1u << bit_index)) != 0; in Contains()
240 int cell_index, bit_index; in Remove() local
241 SlotToIndices(slot_offset, &bucket_index, &cell_index, &bit_index); in Remove()
244 uint32_t cell = bucket->LoadCell(cell_index); in Remove()
322 int cell_index, bit_index; Lookup() local
431 cell(int cell_index) cell() argument
434 LoadCell(int cell_index) LoadCell() argument
442 SetCellBits(int cell_index, uint32_t mask) SetCellBits() argument
451 ClearCellBits(int cell_index, uint32_t mask) ClearCellBits() argument
455 StoreCell(int cell_index, uint32_t value) StoreCell() argument
581 SlotToIndices(size_t slot_offset, size_t* bucket_index, int* cell_index, int* bit_index) SlotToIndices() argument
[all...]
H A Dmarking.h152 void ClearBitsInCell(uint32_t cell_index, uint32_t mask);
156 void SetBitsInCell(uint32_t cell_index, uint32_t mask);
248 uint32_t cell_index, uint32_t mask) { in SetBitsInCell()
249 cells()[cell_index] |= mask; in SetBitsInCell()
254 uint32_t cell_index, uint32_t mask) { in SetBitsInCell()
255 base::AsAtomic32::SetBits(cells() + cell_index, mask, mask); in SetBitsInCell()
260 uint32_t cell_index, uint32_t mask) { in ClearBitsInCell()
261 cells()[cell_index] &= ~mask; in ClearBitsInCell()
266 uint32_t cell_index, uint32_t mask) { in ClearBitsInCell()
267 base::AsAtomic32::SetBits(cells() + cell_index, in ClearBitsInCell()
247 SetBitsInCell( uint32_t cell_index, uint32_t mask) SetBitsInCell() argument
253 SetBitsInCell( uint32_t cell_index, uint32_t mask) SetBitsInCell() argument
259 ClearBitsInCell( uint32_t cell_index, uint32_t mask) ClearBitsInCell() argument
265 ClearBitsInCell( uint32_t cell_index, uint32_t mask) ClearBitsInCell() argument
[all...]
/third_party/node/deps/v8/src/heap/cppgc/
H A Dobject-start-bitmap.h76 inline void store(size_t cell_index, uint8_t value);
78 inline uint8_t load(size_t cell_index) const;
120 size_t cell_index = object_start_number / kBitsPerCell; in FindHeader() local
121 DCHECK_GT(object_start_bit_map_.size(), cell_index); in FindHeader()
123 uint8_t byte = load<mode>(cell_index) & ((1 << (bit + 1)) - 1); in FindHeader()
124 while (!byte && cell_index) { in FindHeader()
125 DCHECK_LT(0u, cell_index); in FindHeader()
126 byte = load<mode>(--cell_index); in FindHeader()
130 (cell_index * kBitsPerCell) + (kBitsPerCell - 1) - leading_zeroes; in FindHeader()
137 size_t cell_index, object_bi in SetBit() local
146 size_t cell_index, object_bit; ClearBit() local
154 size_t cell_index, object_bit; CheckBit() local
160 store(size_t cell_index, uint8_t value) store() argument
178 ObjectStartIndexAndBit(ConstAddress header_address, size_t* cell_index, size_t* bit) const ObjectStartIndexAndBit() argument
[all...]
/third_party/node/deps/v8/src/ast/
H A Dmodules.cc164 ToStringOrUndefined(isolate, import_name), module_request, cell_index, in Serialize()
190 DCHECK_EQ(it->second->cell_index, next->second->cell_index); in SerializeRegularExports()
200 handle(Smi::FromInt(it->second->cell_index), isolate); in SerializeRegularExports()
265 SourceTextModuleDescriptor::GetCellIndexKind(int cell_index) { in GetCellIndexKind() argument
266 if (cell_index > 0) return kExport; in GetCellIndexKind()
267 if (cell_index < 0) return kImport; in GetCellIndexKind()
282 DCHECK_EQ(entry->cell_index, 0); in AssignCellIndices()
283 entry->cell_index = export_index; in AssignCellIndices()
295 DCHECK_EQ(entry->cell_index, in AssignCellIndices()
[all...]
H A Dmodules.h102 // the cell_index value to encode the location of their cell. During
106 // GetCellIndexKind(cell_index) == kInvalid.
107 int cell_index; member
116 cell_index(0) {} in Entry()
123 static CellIndexKind GetCellIndexKind(int cell_index);
261 // Assign a cell_index of -1,-2,... to regular imports.
262 // Assign a cell_index of +1,+2,... to regular (local) exports.
263 // Assign a cell_index of 0 to anything else.
H A Dscopes.cc2560 var->AllocateTo(VariableLocation::MODULE, it.second->cell_index); in AllocateModuleVariables()
2566 var->AllocateTo(VariableLocation::MODULE, it.second->cell_index); in AllocateModuleVariables()
/third_party/node/deps/v8/src/objects/
H A Dsource-text-module.h46 Cell GetCell(int cell_index);
49 int cell_index);
50 static void StoreVariable(Handle<SourceTextModule> module, int cell_index,
53 static int ImportIndex(int cell_index);
54 static int ExportIndex(int cell_index);
142 int cell_index, Handle<FixedArray> names);
294 int cell_index, int beg_pos, int end_pos);
H A Dsource-text-module.cc113 int SourceTextModule::ExportIndex(int cell_index) { in ExportIndex() argument
114 DCHECK_EQ(SourceTextModuleDescriptor::GetCellIndexKind(cell_index), in ExportIndex()
116 return cell_index - 1; in ExportIndex()
119 int SourceTextModule::ImportIndex(int cell_index) { in ImportIndex() argument
120 DCHECK_EQ(SourceTextModuleDescriptor::GetCellIndexKind(cell_index), in ImportIndex()
122 return -cell_index - 1; in ImportIndex()
136 int cell_index, Handle<FixedArray> names) { in CreateExport()
140 module->regular_exports().set(ExportIndex(cell_index), *cell); in CreateExport()
151 Cell SourceTextModule::GetCell(int cell_index) { in GetCell() argument
154 switch (SourceTextModuleDescriptor::GetCellIndexKind(cell_index)) { in GetCell()
134 CreateExport(Isolate* isolate, Handle<SourceTextModule> module, int cell_index, Handle<FixedArray> names) CreateExport() argument
167 LoadVariable(Isolate* isolate, Handle<SourceTextModule> module, int cell_index) LoadVariable() argument
173 StoreVariable(Handle<SourceTextModule> module, int cell_index, Handle<Object> value) StoreVariable() argument
373 int cell_index = module_info->RegularExportCellIndex(i); PrepareInstantiate() local
[all...]
H A Dcontexts.cc367 int cell_index = in Lookup() local
369 if (cell_index != 0) { in Lookup()
373 *index = cell_index; in Lookup()
377 cell_index) == SourceTextModuleDescriptor::kExport in Lookup()
H A Dscope-info.cc1139 Handle<PrimitiveHeapObject> import_name, int module_request, int cell_index, in New()
1148 result->set_cell_index(cell_index); in New()
1157 Handle<PrimitiveHeapObject> import_name, int module_request, int cell_index,
1162 Handle<PrimitiveHeapObject> import_name, int module_request, int cell_index,
1136 New( IsolateT* isolate, Handle<PrimitiveHeapObject> export_name, Handle<PrimitiveHeapObject> local_name, Handle<PrimitiveHeapObject> import_name, int module_request, int cell_index, int beg_pos, int end_pos) New() argument
/third_party/node/deps/v8/src/baseline/
H A Dbaseline-compiler.cc879 int cell_index = Int(0); in VisitLdaModuleVariable() local
880 if (cell_index > 0) { in VisitLdaModuleVariable()
883 // The actual array index is (cell_index - 1). in VisitLdaModuleVariable()
884 cell_index -= 1; in VisitLdaModuleVariable()
888 // The actual array index is (-cell_index - 1). in VisitLdaModuleVariable()
889 cell_index = -cell_index - 1; in VisitLdaModuleVariable()
891 __ LoadFixedArrayElement(scratch, scratch, cell_index); in VisitLdaModuleVariable()
897 int cell_index = Int(0); in VisitStaModuleVariable() local
898 if (V8_UNLIKELY(cell_index < in VisitStaModuleVariable()
[all...]
/third_party/node/deps/v8/src/debug/
H A Ddebug-scopes.cc1075 int cell_index; in SetModuleVariableValue() local
1079 cell_index = context_->scope_info().ModuleIndex( in SetModuleVariableValue()
1083 if (SourceTextModuleDescriptor::GetCellIndexKind(cell_index) != in SetModuleVariableValue()
1089 SourceTextModule::StoreVariable(module, cell_index, new_value); in SetModuleVariableValue()
/third_party/node/deps/v8/src/interpreter/
H A Dinterpreter-generator.cc761 // LdaModuleVariable <cell_index> <depth>
764 // identified by <cell_index>. <depth> is the depth of the current context
767 TNode<IntPtrT> cell_index = BytecodeOperandImmIntPtr(0); in IGNITION_HANDLER() local
775 Branch(IntPtrGreaterThan(cell_index, IntPtrConstant(0)), &if_export, in IGNITION_HANDLER()
782 // The actual array index is (cell_index - 1). in IGNITION_HANDLER()
783 TNode<IntPtrT> export_index = IntPtrSub(cell_index, IntPtrConstant(1)); in IGNITION_HANDLER()
794 // The actual array index is (-cell_index - 1). in IGNITION_HANDLER()
795 TNode<IntPtrT> import_index = IntPtrSub(IntPtrConstant(-1), cell_index); in IGNITION_HANDLER()
806 // StaModuleVariable <cell_index> <depth>
808 // Store accumulator to the module variable identified by <cell_index>
812 TNode<IntPtrT> cell_index = BytecodeOperandImmIntPtr(0); IGNITION_HANDLER() local
[all...]
H A Dbytecode-array-builder.h120 BytecodeArrayBuilder& LoadModuleVariable(int cell_index, int depth);
124 BytecodeArrayBuilder& StoreModuleVariable(int cell_index, int depth);
H A Dbytecode-array-builder.cc1375 BytecodeArrayBuilder& BytecodeArrayBuilder::StoreModuleVariable(int cell_index, in StoreModuleVariable() argument
1377 OutputStaModuleVariable(cell_index, depth); in StoreModuleVariable()
1381 BytecodeArrayBuilder& BytecodeArrayBuilder::LoadModuleVariable(int cell_index, in LoadModuleVariable() argument
1383 OutputLdaModuleVariable(cell_index, depth); in LoadModuleVariable()
/third_party/node/deps/v8/src/compiler/
H A Djs-operator.cc1225 const Operator* JSOperatorBuilder::LoadModule(int32_t cell_index) { in LoadModule() argument
1231 cell_index); // parameter in LoadModule()
1242 const Operator* JSOperatorBuilder::StoreModule(int32_t cell_index) { in StoreModule() argument
1248 cell_index); // parameter in StoreModule()
H A Djs-typed-lowering.cc1436 int32_t cell_index = OpParameter<int32_t>(node->op()); in BuildGetModuleCell() local
1443 base::Optional<CellRef> cell_constant = module_constant.GetCell(cell_index); in BuildGetModuleCell()
1449 if (SourceTextModuleDescriptor::GetCellIndexKind(cell_index) == in BuildGetModuleCell()
1452 index = cell_index - 1; in BuildGetModuleCell()
1454 DCHECK_EQ(SourceTextModuleDescriptor::GetCellIndexKind(cell_index), in BuildGetModuleCell()
1457 index = -cell_index - 1; in BuildGetModuleCell()
H A Dheap-refs.h963 base::Optional<CellRef> GetCell(int cell_index) const;
H A Dheap-refs.cc1931 base::Optional<CellRef> SourceTextModuleRef::GetCell(int cell_index) const { in GetCell()
1932 return TryMakeRef(broker(), object()->GetCell(cell_index)); in GetCell()
H A Djs-operator.h1057 const Operator* LoadModule(int32_t cell_index);
1058 const Operator* StoreModule(int32_t cell_index);
H A Dbytecode-graph-builder.cc2145 int32_t cell_index = bytecode_iterator().GetImmediateOperand(0); in VisitLdaModuleVariable() local
2149 Node* value = NewNode(javascript()->LoadModule(cell_index), module); in VisitLdaModuleVariable()
2154 int32_t cell_index = bytecode_iterator().GetImmediateOperand(0); in VisitStaModuleVariable() local
2159 NewNode(javascript()->StoreModule(cell_index), module, value); in VisitStaModuleVariable()

Completed in 49 milliseconds