| /arkcompiler/runtime_core/static_core/abc2program/ |
| D | abc_code_processor.cpp | 53 while (bcInsFirst.GetAddress() != bcInsCur.GetAddress()) { in GetBytecodeInstructionNumber() 56 if (bcInsFirst.GetAddress() > bcInsCur.GetAddress()) { in GetBytecodeInstructionNumber() 77 if (immToLabel.bcInsLast.GetAddress() <= bcInsDest.GetAddress()) { in TranslateImmToLabel() 80 … << (immToLabel.bcIns.GetAddress() - immToLabel.insArr) << ": invalid jump offset 0x" in TranslateImmToLabel() 97 … << (immToLabel.bcIns.GetAddress() - immToLabel.insArr) << ": invalid jump offset 0x" in TranslateImmToLabel() 111 while (bcIns.GetAddress() != bcInsLast.GetAddress()) { in FillProgramData() 169 …handlerBeginOffsetInRange = locateCatchBlock.bcInsLast.GetAddress() > handlerBeginBcIns.GetAddress… in LocateCatchBlock() 170 …ol handlerEndOffsetInRange = locateCatchBlock.bcInsLast.GetAddress() > handlerEndBcIns.GetAddress(… in LocateCatchBlock() 176 << handlerBeginBcIns.GetAddress(); in LocateCatchBlock() 192 << handlerEndBcIns.GetAddress(); in LocateCatchBlock() [all …]
|
| /arkcompiler/ets_runtime/ecmascript/ |
| D | js_handle.h | 105 inline uintptr_t GetAddress() const in GetAddress() function 111 explicit JSHandle(const JSHandle<S> &handle) : address_(handle.GetAddress()) {} in JSHandle() 117 return JSHandle<T>(handle.GetAddress()); in Cast() 123 if (GetAddress() == 0U) { in GetTaggedValue() 126 …return *reinterpret_cast<JSTaggedValue *>(GetAddress()); // NOLINT(clang-analyzer-core.NullDerefer… in GetTaggedValue() 132 if (GetAddress() == 0U) { in GetTaggedType() 135 …return *reinterpret_cast<JSTaggedType *>(GetAddress()); // NOLINT(clang-analyzer-core.NullDerefere… in GetTaggedType() 160 return GetAddress() == 0U; in IsEmpty() 210 // Barriers::UpdateSlot(reinterpret_cast<JSTaggedValue*>(GetAddress()), 0); 211 return reinterpret_cast<JSTaggedValue *>(GetAddress()); [all …]
|
| /arkcompiler/runtime_core/common_interfaces/objects/ |
| D | readonly_handle.h | 35 uintptr_t GetAddress() const in GetAddress() function 41 explicit ReadOnlyHandle(const ReadOnlyHandle<S> &handle) : address_(handle.GetAddress()) in ReadOnlyHandle() 50 return ReadOnlyHandle<T>(handle.GetAddress()); in Cast() 55 if (GetAddress() == 0U) { in GetBaseObject() 59 return *reinterpret_cast<BaseObject **>(GetAddress()); in GetBaseObject() 84 return GetAddress() == 0U; in IsEmpty()
|
| /arkcompiler/runtime_core/compiler/optimizer/ir_builder/ |
| D | pbc_iterator.h | 40 return inst_.GetAddress() != rhs.inst_.GetAddress(); 45 return inst_.GetAddress() == rhs.inst_.GetAddress(); 68 return INST.GetAddress() - data_; in GetPc()
|
| D | inst_templates.yaml | 20 …inst = graph_->CreateInst<%= opc %>(<%= get_type(inst.dtype) %>, GetPc(instruction->GetAddress())); 25 auto inst_save_state = CreateSaveState(Opcode::SaveState, GetPc(instruction->GetAddress())); 26 …check = graph_->CreateInstZeroCheck(<%= get_type(inst.dtype) %>, GetPc(instruction->GetAddress())); 37 …inst = graph_->CreateInst<%= opc %>(<%= get_type(inst.dtype) %>, GetPc(instruction->GetAddress())); 45 … auto inst = graph_->CreateInstAdd(<%= get_type(inst.dtype) %>, GetPc(instruction->GetAddress())); 55 … auto inst = graph_->CreateInstCast(<%= get_type(inst.dtype) %>, GetPc(instruction->GetAddress())); 66 …auto inst = graph_->CreateInstCompare(DataType::BOOL, GetPc(instruction->GetAddress()), ConditionC… 68 … auto inst = graph_->CreateInstCmp(<%= get_type(inst.dtype) %>, GetPc(instruction->GetAddress())); 79 …auto inst = graph_->CreateInstCompare(DataType::BOOL, GetPc(instruction->GetAddress()), <%= get_cc… 87 …auto inst_jump = graph_->CreateInstIfImm(DataType::NO_TYPE, GetPc(instruction->GetAddress()), Cond… [all …]
|
| D | inst_builder-inl.h | 30 auto save_state = CreateSaveState(Opcode::SaveState, GetPc(bc_inst->GetAddress())); in BuildLoadFromPool() 35 inst = GetGraph()->CreateInstLoadString(DataType::REFERENCE, GetPc(bc_inst->GetAddress())); in BuildLoadFromPool() 56 auto box = graph_->CreateInstCastValueToAnyType(GetPc(bc_inst->GetAddress())); in BuildCastToAnyString() 82 auto box = graph_->CreateInstCastValueToAnyType(GetPc(bc_inst->GetAddress())); in BuildCastToAnyNumber()
|
| /arkcompiler/runtime_core/libabckit/src/irbuilder_dynamic/templates/ |
| D | inst_templates.yaml | 20 …inst = graph_->CreateInst<%= opc %>(<%= get_type(inst.dtype) %>, GetPc(instruction->GetAddress())); 25 …auto instSaveState = CreateSaveState(compiler::Opcode::SaveState, GetPc(instruction->GetAddress())… 26 …Check = graph_->CreateInstZeroCheck(<%= get_type(inst.dtype) %>, GetPc(instruction->GetAddress())); 33 …inst = graph_->CreateInst<%= opc %>(<%= get_type(inst.dtype) %>, GetPc(instruction->GetAddress())); 41 … auto inst = graph_->CreateInstAdd(<%= get_type(inst.dtype) %>, GetPc(instruction->GetAddress())); 47 … auto inst = graph_->CreateInstCast(<%= get_type(inst.dtype) %>, GetPc(instruction->GetAddress())); 58 …auto inst = graph_->CreateInstCompare(compiler::DataType::BOOL, GetPc(instruction->GetAddress()), … 60 … auto inst = graph_->CreateInstCmp(<%= get_type(inst.dtype) %>, GetPc(instruction->GetAddress())); 72 …auto inst = graph_->CreateInstIf(compiler::DataType::NO_TYPE, GetPc(instruction->GetAddress()), Ge… 75 …auto inst = graph_->CreateInstIf(compiler::DataType::NO_TYPE, GetPc(instruction->GetAddress()), Ge… [all …]
|
| /arkcompiler/runtime_core/static_core/disassembler/templates/ |
| D | get_ins_info.cpp.erb | 36 while (bc_ins.GetAddress() != bc_ins_last.GetAddress()) { 40 << bc_ins.GetAddress() - BytecodeInstruction(ins_arr).GetAddress(); 57 const uint8_t* pc = bc_ins.GetAddress();
|
| /arkcompiler/runtime_core/disassembler/templates/ |
| D | get_ins_info.cpp.erb | 34 while (bc_ins.GetAddress() != bc_ins_last.GetAddress()) { 38 << instruction_offset + bc_ins.GetAddress() - BytecodeInstruction(ins_arr).GetAddress(); 55 const uint8_t* pc = bc_ins.GetAddress();
|
| /arkcompiler/runtime_core/static_core/plugins/ets/runtime/interpreter/ |
| D | interpreter-inl.h | 63 …Field *field = GetFieldByName<true>(cache->GetEntry(this->GetInst().GetAddress()), caller, rawFiel… in HandleEtsLdobjName() 64 this->GetInst().GetAddress(), klass); in HandleEtsLdobjName() 71 …cache->GetEntry(this->GetInst().GetAddress()), caller, rawField, this->GetInst().GetAddress(), kla… in HandleEtsLdobjName() 100 …Field *field = GetFieldByName<true>(cache->GetEntry(this->GetInst().GetAddress()), caller, rawFiel… in HandleEtsLdobjNameWide() 101 this->GetInst().GetAddress(), klass); in HandleEtsLdobjNameWide() 108 …cache->GetEntry(this->GetInst().GetAddress()), caller, rawField, this->GetInst().GetAddress(), kla… in HandleEtsLdobjNameWide() 137 …Field *field = GetFieldByName<true>(cache->GetEntry(this->GetInst().GetAddress()), caller, rawFiel… in HandleEtsLdobjNameObj() 138 this->GetInst().GetAddress(), klass); in HandleEtsLdobjNameObj() 147 …cache->GetEntry(this->GetInst().GetAddress()), caller, rawField, this->GetInst().GetAddress(), kla… in HandleEtsLdobjNameObj() 176 …Field *field = GetFieldByName<false>(cache->GetEntry(this->GetInst().GetAddress()), caller, rawFie… in HandleEtsStobjName() [all …]
|
| /arkcompiler/runtime_core/verifier/ |
| D | verifier.cpp | 123 while (bc_ins.GetAddress() < bc_ins_last.GetAddress()) { in VerifyRegisterIndex() 238 while (bc_ins.GetAddress() < bc_ins_last.GetAddress()) { in CollectIdInInstructions() 577 instruction_index_map_[current_ins.GetAddress()] = index; in PrecomputeInstructionIndices() 579 while (current_ins.GetAddress() < bc_ins_last.GetAddress()) { in PrecomputeInstructionIndices() 587 instruction_index_map_[current_ins.GetAddress()] = index; in PrecomputeInstructionIndices() 594 if (instruction_index_map_.find(bc_ins_cur.GetAddress()) != instruction_index_map_.end()) { in IsMethodBytecodeInstruction() 605 const auto bc_ins_forward_size = bc_ins_last.GetAddress() - bc_ins.GetAddress(); in VerifyJumpInstruction() 607 const auto bc_ins_backward_size = bc_ins.GetAddress() - bc_ins_first.GetAddress(); in VerifyJumpInstruction() 631 … << "). incorrect instruction at offset: 0x" << (bc_ins.GetAddress() - ins_arr) in VerifyJumpInstruction() 682 …nst bool handler_begin_offset_in_range = bc_ins_last.GetAddress() > handler_begin_bc_ins.GetAddres… in VerifyCatchBlocks() [all …]
|
| /arkcompiler/runtime_core/static_core/compiler/optimizer/ir_builder/ |
| D | inst_builder-inl.h | 43 pc_ = Builder()->GetPc(bcInst->GetAddress()); in BuildCallHelper() 243 auto saveState = CreateSaveState(Opcode::SaveState, GetPc(bcInst->GetAddress())); in BuildMonitor() 244 auto inst = GetGraph()->CreateInstMonitor(DataType::VOID, GetPc(bcInst->GetAddress())); in BuildMonitor() 250 …auto nullCheck = graph_->CreateInstNullCheck(DataType::REFERENCE, GetPc(bcInst->GetAddress()), def… in BuildMonitor() 289 … auto inst = GetGraph()->CreateInstAbs(GetMethodReturnType(methodId), GetPc(bcInst->GetAddress())); in BuildAbsIntrinsic() 326 …ateBinaryOperation<OPCODE>(GetGraph(), GetMethodReturnType(methodId), GetPc(bcInst->GetAddress())); in BuildBinaryOperationIntrinsic() 338 …auto inst = GetGraph()->CreateInstSqrt(GetMethodReturnType(methodId), GetPc(bcInst->GetAddress())); in BuildSqrtIntrinsic() 354 … auto inst = GetGraph()->CreateInstCompare(DataType::BOOL, GetPc(bcInst->GetAddress()), vreg, vreg, in BuildIsNanIntrinsic() 364 auto bcAddr = GetPc(bcInst->GetAddress()); in BuildStringLengthIntrinsic() 389 auto bcAddr = GetPc(bcInst->GetAddress()); in BuildStringIsEmptyIntrinsic() [all …]
|
| D | inst_templates.yaml | 20 …inst = graph_->CreateInst<%= opc %>(<%= get_type(inst.dtype) %>, GetPc(instruction->GetAddress())); 25 auto inst_save_state = CreateSaveState(Opcode::SaveState, GetPc(instruction->GetAddress())); 26 …check = graph_->CreateInstZeroCheck(<%= get_type(inst.dtype) %>, GetPc(instruction->GetAddress())); 41 …inst = graph_->CreateInst<%= opc %>(<%= get_type(inst.dtype) %>, GetPc(instruction->GetAddress())); 65 …inst = graph_->CreateInst<%= opc %>(<%= get_type(inst.dtype) %>, GetPc(instruction->GetAddress()), 75 …->CreateInst<%= opc %>(<%= get_type(inst.dtype) %>, GetPc(instruction->GetAddress()), GetDefinitio… 80 … auto inst = graph_->CreateInstAdd(<%= get_type(inst.dtype) %>, GetPc(instruction->GetAddress())); 91 …auto inst = graph_->CreateInstCast(<%= get_type(inst.dtype) %>, GetPc(instruction->GetAddress()), … 99 …auto inst = graph_->CreateInstCompare(DataType::BOOL, GetPc(instruction->GetAddress()), GetDefinit… 103 …auto inst = graph_->CreateInstCmp(<%= get_type(inst.dtype) %>, GetPc(instruction->GetAddress()), G… [all …]
|
| D | pbc_iterator.h | 39 return inst_.GetAddress() != rhs.inst_.GetAddress(); 62 return inst.GetAddress() - data_; in GetPc()
|
| /arkcompiler/runtime_core/libabckit/src/templates/abckit_intrinsics/ |
| D | inst_builder_abckit_intrinsics.inc.erb | 72 auto pc = GetPc(bcInst->GetAddress()); 175 …>CreateInstIntrinsic(ark::compiler::DataType::REFERENCE, GetPc(bcInst->GetAddress()), ark::compile… 177 …>CreateInstIntrinsic(ark::compiler::DataType::REFERENCE, GetPc(bcInst->GetAddress()), ark::compile… 179 …>CreateInstIntrinsic(ark::compiler::DataType::REFERENCE, GetPc(bcInst->GetAddress()), ark::compile… 212 …inst = GetGraph()->CreateInstIntrinsic(retType, GetPc(bcInst->GetAddress()), ark::compiler::Runtim… 216 …inst = GetGraph()->CreateInstIntrinsic(retType, GetPc(bcInst->GetAddress()), ark::compiler::Runtim… 220 …inst = GetGraph()->CreateInstIntrinsic(retType, GetPc(bcInst->GetAddress()), ark::compiler::Runtim… 252 …inst = GetGraph()->CreateInstIntrinsic(type, GetPc(bcInst->GetAddress()), ark::compiler::RuntimeIn… 256 …inst = GetGraph()->CreateInstIntrinsic(type, GetPc(bcInst->GetAddress()), ark::compiler::RuntimeIn… 260 …inst = GetGraph()->CreateInstIntrinsic(type, GetPc(bcInst->GetAddress()), ark::compiler::RuntimeIn… [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/compiler/ |
| D | ir_build_intrinsics_ets.cpp | 45 …GetGraph()->CreateInstBitcast(itype, GetPc(bcInst->GetAddress()), GetArgDefinition(bcInst, 0, accR… in BuildIsFiniteIntrinsic() 47 …GetGraph()->CreateInstShr(itype, GetPc(bcInst->GetAddress()), bitcast, FindOrCreateConstant(fpFrac… in BuildIsFiniteIntrinsic() 48 …auto mask = GetGraph()->CreateInstAnd(itype, GetPc(bcInst->GetAddress()), shift, FindOrCreateConst… in BuildIsFiniteIntrinsic() 49 auto cmp = GetGraph()->CreateInstCompare(DataType::BOOL, GetPc(bcInst->GetAddress()), mask, in BuildIsFiniteIntrinsic() 59 …GetGraph()->CreateInstCompare(DataType::BOOL, GetPc(bcInst->GetAddress()), GetArgDefinition(bcInst… in BuildStdRuntimeEquals() 67 auto bitcast = GetGraph()->CreateInstBitcast(DataType::INT64, GetPc(bcInst->GetAddress()), in BuildSignbitIntrinsic() 71 …GetGraph()->CreateInstShr(DataType::INT64, GetPc(bcInst->GetAddress()), bitcast, FindOrCreateConst… in BuildSignbitIntrinsic() 80 auto bcAddr = GetPc(bcInst->GetAddress()); in BuildUint8ClampedArraySetIntrinsic() 122 auto bcAddr = GetPc(bcInst->GetAddress()); in BuildTypedArraySet() 135 auto bcAddr = GetPc(bcInst->GetAddress()); in BuildBigInt64ArraySetIntrinsic() [all …]
|
| /arkcompiler/runtime_core/libabckit/src/irbuilder_dynamic/ |
| D | pbc_iterator_dyn.h | 44 return inst_.GetAddress() != rhs.inst_.GetAddress(); 67 return inst.GetAddress() - data_; in GetPc()
|
| D | bytecode_inst.h | 134 const uint8_t *GetAddress() const in GetAddress() function 139 const uint8_t *GetAddress() volatile const in GetAddress() function 209 const uint8_t *GetAddress() const in GetAddress() function 211 return Base::GetAddress(); in GetAddress() 214 const uint8_t *GetAddress() volatile const in GetAddress() function 216 return Base::GetAddress(); in GetAddress()
|
| /arkcompiler/runtime_core/static_core/libpandafile/ |
| D | debug_info_extractor.cpp | 44 lnt_.push_back({state_->GetAddress(), state_->GetLine()}); in ProcessBegin() 90 lvt_.push_back({name, type, type, regNumber, state_->GetAddress(), 0}); in HandleStartLocal() 99 lvt_.push_back({name, type, typeSign, regNumber, state_->GetAddress(), 0}); in HandleStartLocalExtended() 108 it->endOffset = state_->GetAddress(); in HandleEndLocal() 128 cnt_.push_back({state_->GetAddress(), state_->GetColumn()}); in HandleSetColumn() 137 lnt_.push_back({state_->GetAddress(), state_->GetLine()}); in HandleSpecialOpcode() 183 var.endOffset = state_->GetAddress(); in ProcessVars()
|
| D | bytecode_instruction.h | 101 const uint8_t *GetAddress() const in GetAddress() function 106 const uint8_t *GetAddress() volatile const in GetAddress() function 171 const uint8_t *GetAddress() const in GetAddress() function 191 const uint8_t *GetAddress() volatile const in GetAddress() function 337 const uint8_t *GetAddress() const in GetAddress() function 339 return Base::GetAddress(); in GetAddress() 342 const uint8_t *GetAddress() volatile const in GetAddress() function 344 return Base::GetAddress(); in GetAddress()
|
| /arkcompiler/runtime_core/libpandafile/ |
| D | bytecode_instruction.h | 101 const uint8_t *GetAddress() const in GetAddress() function 106 const uint8_t *GetAddress() volatile const in GetAddress() function 171 const uint8_t *GetAddress() const in GetAddress() function 191 const uint8_t *GetAddress() volatile const in GetAddress() function 331 const uint8_t *GetAddress() const in GetAddress() function 333 return Base::GetAddress(); in GetAddress() 336 const uint8_t *GetAddress() volatile const in GetAddress() function 338 return Base::GetAddress(); in GetAddress()
|
| D | debug_info_extractor.cpp | 49 lnt_.push_back({state_->GetAddress(), static_cast<size_t>(state_->GetLine())}); in ProcessBegin() 95 lvt_.push_back({name, type, type, reg_number, state_->GetAddress(), 0}); in HandleStartLocal() 104 lvt_.push_back({name, type, type_sign, reg_number, state_->GetAddress(), 0}); in HandleStartLocalExtended() 113 it->end_offset = state_->GetAddress(); in HandleEndLocal() 127 cnt_.push_back({state_->GetAddress(), state_->GetColumn()}); in HandleSetColumn() 135 lnt_.push_back({state_->GetAddress(), static_cast<size_t>(state_->GetLine())}); in HandleSpecialOpcode() 171 var.end_offset = state_->GetAddress(); in ProcessVars()
|
| /arkcompiler/ets_runtime/ecmascript/jspandafile/ |
| D | debug_info_extractor.cpp | 51 lnt_.push_back({state_->GetAddress(), static_cast<int32_t>(state_->GetLine())}); in ProcessBegin() 60 iter->endOffset = state_->GetAddress(); in ProcessEnd() 103 uint32_t startOffset = state_->GetAddress(); in HandleStartLocal() 113 uint32_t startOffset = state_->GetAddress(); in HandleStartLocalExtended() 125 iter->endOffset = state_->GetAddress(); in HandleEndLocal() 135 cnt_.push_back({state_->GetAddress(), static_cast<int32_t>(state_->GetColumn())}); in HandleSetColumn() 143 lnt_.push_back({state_->GetAddress(), static_cast<int32_t>(state_->GetLine())}); in HandleSpecialOpcode()
|
| /arkcompiler/runtime_core/static_core/runtime/ |
| D | handle_scope.h | 81 …*(reinterpret_cast<T *>(escapeHandle_.GetAddress())) = *(reinterpret_cast<T *>(handle.GetAddress()… in Escape()
|
| /arkcompiler/runtime_core/static_core/plugins/ets/compiler/optimizer/ir_builder/ |
| D | ets_inst_builder.cpp | 56 auto pc = GetPc(bcInst->GetAddress()); in BuildLdObjByName() 152 auto pc = GetPc(bcInst->GetAddress()); in BuildStObjByName() 198 …auto cmpInst = graph_->CreateInstCompare(DataType::BOOL, GetPc(bcInst->GetAddress()), GetDefinitio… in BuildIsNullValue() 207 auto pc = GetPc(bcInst->GetAddress()); in BuildEquals() 242 auto pc = GetPc(bcInst->GetAddress()); in BuildTypeof() 262 auto pc = GetPc(bcInst->GetAddress()); in BuildIstrue() 284 auto pc = GetPc(bcInst->GetAddress()); in BuildCallByName()
|