/art/runtime/quick/ |
D | inline_method_analyser.cc | 94 const DexFile::CodeItem* code_item = verifier->CodeItem(); in AnalyseMethodCode() local 95 DCHECK_NE(code_item->insns_size_in_code_units_, 0u); in AnalyseMethodCode() 96 const Instruction* instruction = Instruction::At(code_item->insns_); in AnalyseMethodCode() 110 return AnalyseReturnMethod(code_item, method); in AnalyseMethodCode() 116 return AnalyseConstMethod(code_item, method); in AnalyseMethodCode() 144 bool InlineMethodAnalyser::AnalyseReturnMethod(const DexFile::CodeItem* code_item, in AnalyseReturnMethod() argument 146 const Instruction* return_instruction = Instruction::At(code_item->insns_); in AnalyseReturnMethod() 149 uint32_t arg_start = code_item->registers_size_ - code_item->ins_size_; in AnalyseReturnMethod() 152 code_item->registers_size_); in AnalyseReturnMethod() 167 bool InlineMethodAnalyser::AnalyseConstMethod(const DexFile::CodeItem* code_item, in AnalyseConstMethod() argument [all …]
|
/art/compiler/dex/ |
D | verified_method.cc | 121 const DexFile::CodeItem* code_item = method_verifier->CodeItem(); in GenerateGcMap() local 122 for (size_t i = 0; i < code_item->insns_size_in_code_units_; i++) { in GenerateGcMap() 143 const DexFile::CodeItem* code_item = method_verifier->CodeItem(); in VerifyGcMap() local 144 for (size_t i = 0; i < code_item->insns_size_in_code_units_; i++) { in VerifyGcMap() 152 for (size_t j = 0; j < code_item->registers_size_; j++) { in VerifyGcMap() 174 const DexFile::CodeItem* code_item = method_verifier->CodeItem(); in ComputeGcMapSizes() local 175 for (size_t i = 0; i < code_item->insns_size_in_code_units_; i++) { in ComputeGcMapSizes() 199 const DexFile::CodeItem* code_item = method_verifier->CodeItem(); in GenerateDevirtMap() local 200 const uint16_t* insns = code_item->insns_; in GenerateDevirtMap() 202 const Instruction* end = Instruction::At(insns + code_item->insns_size_in_code_units_); in GenerateDevirtMap() [all …]
|
D | dex_to_dex_compiler.cc | 95 const DexFile::CodeItem* code_item = unit_.GetCodeItem(); in Compile() local 96 const uint16_t* insns = code_item->insns_; in Compile() 97 const uint32_t insns_size = code_item->insns_size_in_code_units_; in Compile() 274 extern "C" void ArtCompileDEX(art::CompilerDriver& driver, const art::DexFile::CodeItem* code_item, in ArtCompileDEX() argument 281 dex_file, code_item, class_def_idx, method_idx, access_flags, in ArtCompileDEX()
|
D | frontend.cc | 486 code_item(nullptr), in CompilationUnit() 620 const DexFile::CodeItem* code_item, in CompileMethod() argument 631 if (code_item->insns_size_in_code_units_ >= UINT16_MAX / 4) { in CompileMethod() 633 << code_item->insns_size_in_code_units_ in CompileMethod() 637 if (code_item->registers_size_ >= UINT16_MAX / 4) { in CompileMethod() 639 << code_item->registers_size_ << " in " << PrettyMethod(method_idx, dex_file); in CompileMethod() 666 cu.num_dalvik_registers = code_item->registers_size_; in CompileMethod() 720 cu.mir_graph->InlineMethod(code_item, access_flags, invoke_type, class_def_idx, method_idx, in CompileMethod() 807 const DexFile::CodeItem* code_item, in CompileOneMethod() argument 815 return CompileMethod(driver, compiler, code_item, access_flags, invoke_type, class_def_idx, in CompileOneMethod() [all …]
|
/art/compiler/sea_ir/ |
D | frontend.cc | 42 const DexFile::CodeItem* code_item, in CompileMethodWithSeaIr() argument 51 code_item, class_def_idx, method_idx, method_access_flags, dex_file); in CompileMethodWithSeaIr() 66 const DexFile::CodeItem* code_item, in SeaIrCompileOneMethod() argument 74 return CompileMethodWithSeaIr(compiler, backend, code_item, method_access_flags, invoke_type, in SeaIrCompileOneMethod() 80 const art::DexFile::CodeItem* code_item, in SeaIrCompileMethod() argument 87 return art::SeaIrCompileOneMethod(compiler, backend, code_item, method_access_flags, invoke_type, in SeaIrCompileMethod()
|
/art/compiler/ |
D | compilers.cc | 29 const art::DexFile::CodeItem* code_item, 52 CompiledMethod* QuickCompiler::Compile(const DexFile::CodeItem* code_item, in Compile() argument 59 CompiledMethod* method = TryCompileWithSeaIR(code_item, in Compile() 71 code_item, in Compile() 142 CompiledMethod* OptimizingCompiler::Compile(const DexFile::CodeItem* code_item, in Compile() argument 149 CompiledMethod* method = TryCompile(code_item, access_flags, invoke_type, class_def_idx, in Compile() 155 return QuickCompiler::Compile(code_item, access_flags, invoke_type, class_def_idx, method_idx, in Compile()
|
D | compiler.cc | 30 extern "C" art::CompiledMethod* SeaIrCompileMethod(const art::DexFile::CodeItem* code_item, 40 CompiledMethod* Compiler::TryCompileWithSeaIR(const art::DexFile::CodeItem* code_item, in TryCompileWithSeaIR() argument 51 return SeaIrCompileMethod(code_item, in TryCompileWithSeaIR() 71 const art::DexFile::CodeItem* code_item, 99 CompiledMethod* Compile(const DexFile::CodeItem* code_item, in Compile() argument 106 CompiledMethod* method = TryCompileWithSeaIR(code_item, in Compile() 118 code_item, in Compile()
|
D | compilers.h | 32 CompiledMethod* Compile(const DexFile::CodeItem* code_item, 78 CompiledMethod* Compile(const DexFile::CodeItem* code_item, 86 CompiledMethod* TryCompile(const DexFile::CodeItem* code_item,
|
D | compiler.h | 50 virtual CompiledMethod* Compile(const DexFile::CodeItem* code_item, 58 static CompiledMethod* TryCompileWithSeaIR(const art::DexFile::CodeItem* code_item,
|
/art/runtime/entrypoints/interpreter/ |
D | interpreter_entrypoints.cc | 29 const DexFile::CodeItem* code_item, in artInterpreterToCompiledCodeBridge() argument 50 uint16_t arg_offset = (code_item == NULL) ? 0 : code_item->registers_size_ - code_item->ins_size_; in artInterpreterToCompiledCodeBridge()
|
D | interpreter_entrypoints.h | 37 const DexFile::CodeItem* code_item, 40 const DexFile::CodeItem* code_item,
|
/art/runtime/interpreter/ |
D | interpreter.cc | 326 JValue ExecuteGotoImpl(Thread* self, MethodHelper& mh, const DexFile::CodeItem* code_item, in ExecuteGotoImpl() argument 334 const DexFile::CodeItem* code_item, 338 const DexFile::CodeItem* code_item, 342 const DexFile::CodeItem* code_item, 346 const DexFile::CodeItem* code_item, 350 static JValue Execute(Thread* self, MethodHelper& mh, const DexFile::CodeItem* code_item, 354 static inline JValue Execute(Thread* self, MethodHelper& mh, const DexFile::CodeItem* code_item, in Execute() argument 367 return ExecuteSwitchImpl<false, true>(self, mh, code_item, shadow_frame, result_register); in Execute() 369 return ExecuteSwitchImpl<false, false>(self, mh, code_item, shadow_frame, result_register); in Execute() 374 return ExecuteGotoImpl<false, true>(self, mh, code_item, shadow_frame, result_register); in Execute() [all …]
|
D | interpreter.h | 46 const DexFile::CodeItem* code_item, 51 const DexFile::CodeItem* code_item, 58 const DexFile::CodeItem* code_item,
|
/art/runtime/ |
D | dex_file.cc | 718 const CodeItem* code_item = GetCodeItem(method->GetCodeItemOffset()); in GetLineNumFromPC() local 719 DCHECK(code_item != NULL) << PrettyMethod(method) << " " << GetLocation(); in GetLineNumFromPC() 723 DecodeDebugInfo(code_item, method->IsStatic(), method->GetDexMethodIndex(), LineNumForPcCb, in GetLineNumFromPC() 728 int32_t DexFile::FindTryItem(const CodeItem &code_item, uint32_t address) { in FindTryItem() argument 731 int32_t max = code_item.tries_size_ - 1; in FindTryItem() 736 const art::DexFile::TryItem* ti = GetTryItems(code_item, mid); in FindTryItem() 752 int32_t DexFile::FindCatchHandlerOffset(const CodeItem &code_item, uint32_t address) { in FindCatchHandlerOffset() argument 753 int32_t try_item = FindTryItem(code_item, address); in FindCatchHandlerOffset() 757 return DexFile::GetTryItems(code_item, try_item)->handler_off_; in FindCatchHandlerOffset() 761 void DexFile::DecodeDebugInfo0(const CodeItem* code_item, bool is_static, uint32_t method_idx, in DecodeDebugInfo0() argument [all …]
|
D | exception_test.cc | 124 const DexFile::CodeItem* code_item = dex_->GetCodeItem(method_f_->GetCodeItemOffset()); in TEST_F() local 126 ASSERT_TRUE(code_item != NULL); in TEST_F() 128 ASSERT_EQ(2u, code_item->tries_size_); in TEST_F() 129 ASSERT_NE(0u, code_item->insns_size_in_code_units_); in TEST_F() 132 t0 = dex_->GetTryItems(*code_item, 0); in TEST_F() 133 t1 = dex_->GetTryItems(*code_item, 1); in TEST_F() 136 CatchHandlerIterator iter(*code_item, 4 /* Dex PC in the first try block */); in TEST_F() 146 CatchHandlerIterator iter(*code_item, 8 /* Dex PC in the second try block */); in TEST_F() 153 CatchHandlerIterator iter(*code_item, 11 /* Dex PC not in any try block */); in TEST_F()
|
D | stack.cc | 43 const DexFile::CodeItem* code_item = m->GetCodeItem(); in GetThisObject() local 44 CHECK(code_item != NULL) << PrettyMethod(m); in GetThisObject() 45 uint16_t reg = code_item->registers_size_ - code_item->ins_size_; in GetThisObject() 137 const DexFile::CodeItem* code_item = m->GetCodeItem(); in GetThisObject() local 138 if (code_item == NULL) { in GetThisObject() 143 uint16_t reg = code_item->registers_size_ - code_item->ins_size_; in GetThisObject() 188 const DexFile::CodeItem* code_item = m->GetCodeItem(); in GetVReg() local 189 DCHECK(code_item != nullptr) << PrettyMethod(m); // Can't be NULL or how would we compile in GetVReg() 191 *val = *GetVRegAddr(cur_quick_frame_, code_item, frame_info.CoreSpillMask(), in GetVReg() 241 const DexFile::CodeItem* code_item = m->GetCodeItem(); in GetVRegPair() local [all …]
|
D | dex_file-inl.h | 45 inline const DexFile::TryItem* DexFile::GetTryItems(const CodeItem& code_item, uint32_t offset) { in GetTryItems() argument 46 const uint16_t* insns_end_ = &code_item.insns_[code_item.insns_size_in_code_units_]; in GetTryItems()
|
D | dex_file.h | 750 static const TryItem* GetTryItems(const CodeItem& code_item, uint32_t offset); 753 static const byte* GetCatchHandlerData(const CodeItem& code_item, uint32_t offset) { in GetCatchHandlerData() argument 755 reinterpret_cast<const byte*>(GetTryItems(code_item, code_item.tries_size_)); in GetCatchHandlerData() 760 static int32_t FindTryItem(const CodeItem &code_item, uint32_t address); 763 static int32_t FindCatchHandlerOffset(const CodeItem &code_item, uint32_t address); 766 const byte* GetDebugInfoStream(const CodeItem* code_item) const { in GetDebugInfoStream() argument 767 if (code_item->debug_info_off_ == 0) { in GetDebugInfoStream() 770 return begin_ + code_item->debug_info_off_; in GetDebugInfoStream() 849 void DecodeDebugInfo(const CodeItem* code_item, bool is_static, uint32_t method_idx, 948 void DecodeDebugInfo0(const CodeItem* code_item, bool is_static, uint32_t method_idx, [all …]
|
D | dex_file_verifier.cc | 399 bool DexFileVerifier::CheckAndGetHandlerOffsets(const DexFile::CodeItem* code_item, in CheckAndGetHandlerOffsets() argument 401 const byte* handlers_base = DexFile::GetCatchHandlerData(*code_item, 0); in CheckAndGetHandlerOffsets() 429 if (UNLIKELY(addr >= code_item->insns_size_in_code_units_)) { in CheckAndGetHandlerOffsets() 437 if (UNLIKELY(addr >= code_item->insns_size_in_code_units_)) { in CheckAndGetHandlerOffsets() 716 const DexFile::CodeItem* code_item = reinterpret_cast<const DexFile::CodeItem*>(ptr_); in CheckIntraCodeItem() local 717 if (!CheckListSize(code_item, 1, sizeof(DexFile::CodeItem), "code")) { in CheckIntraCodeItem() 721 if (UNLIKELY(code_item->ins_size_ > code_item->registers_size_)) { in CheckIntraCodeItem() 723 code_item->ins_size_, code_item->registers_size_); in CheckIntraCodeItem() 727 if (UNLIKELY((code_item->outs_size_ > 5) && in CheckIntraCodeItem() 728 (code_item->outs_size_ > code_item->registers_size_))) { in CheckIntraCodeItem() [all …]
|
/art/compiler/driver/ |
D | dex_compilation_unit.cc | 31 code_item_(cu->code_item), in DexCompilationUnit() 42 const DexFile::CodeItem* code_item, in DexCompilationUnit() argument 51 code_item_(code_item), in DexCompilationUnit()
|
/art/runtime/entrypoints/portable/ |
D | portable_throw_entrypoints.cc | 83 const DexFile::CodeItem* code_item = current_method->GetCodeItem(); in art_portable_find_catch_block_from_code() local 84 DCHECK_LT(ti_offset, code_item->tries_size_); in art_portable_find_catch_block_from_code() 85 const DexFile::TryItem* try_item = DexFile::GetTryItems(*code_item, ti_offset); in art_portable_find_catch_block_from_code() 91 for (CatchHandlerIterator it(*code_item, *try_item); it.HasNext(); it.Next()) { in art_portable_find_catch_block_from_code()
|
D | portable_fillarray_entrypoints.cc | 29 const DexFile::CodeItem* code_item = method->GetCodeItem(); in art_portable_fill_array_data_from_code() local 31 reinterpret_cast<const Instruction::ArrayDataPayload*>(code_item->insns_ + payload_offset); in art_portable_fill_array_data_from_code()
|
/art/oatdump/ |
D | oatdump.cc | 450 uint32_t dex_method_idx, const DexFile::CodeItem* code_item, in DumpOatMethod() argument 462 DumpDexCode(*indent2_os, dex_file, code_item); in DumpOatMethod() 468 verifier.reset(DumpVerifier(*indent2_os, dex_method_idx, &dex_file, class_def, code_item, in DumpOatMethod() 515 DumpGcMap(indent3_os, oat_method, code_item); in DumpOatMethod() 626 DumpCode(*indent2_os, verifier.get(), oat_method, code_item, true, kPrologueBytes); in DumpOatMethod() 638 DumpCode(*indent2_os, verifier.get(), oat_method, code_item, true, kPrologueBytes); in DumpOatMethod() 642 DumpCode(*indent2_os, verifier.get(), oat_method, code_item, !success, 0); in DumpOatMethod() 701 const DexFile::CodeItem* code_item, size_t reg, VRegKind kind) { in DescribeVReg() argument 712 uint32_t offset = StackVisitor::GetVRegOffset(code_item, oat_method.GetCoreSpillMask(), in DescribeVReg() 722 const DexFile::CodeItem* code_item, in DumpGcMapRegisters() argument [all …]
|
/art/compiler/optimizing/ |
D | optimizing_compiler.cc | 74 CompiledMethod* OptimizingCompiler::TryCompile(const DexFile::CodeItem* code_item, in TryCompile() argument 94 nullptr, class_loader, art::Runtime::Current()->GetClassLinker(), dex_file, code_item, in TryCompile() 108 HGraph* graph = builder.BuildGraph(*code_item); in TryCompile()
|
D | builder.cc | 132 static bool CanHandleCodeItem(const DexFile::CodeItem& code_item) { in CanHandleCodeItem() argument 133 if (code_item.tries_size_ > 0) { in CanHandleCodeItem() 172 HGraph* HGraphBuilder::BuildGraph(const DexFile::CodeItem& code_item) { in BuildGraph() argument 173 if (!CanHandleCodeItem(code_item)) { in BuildGraph() 177 const uint16_t* code_ptr = code_item.insns_; in BuildGraph() 178 const uint16_t* code_end = code_item.insns_ + code_item.insns_size_in_code_units_; in BuildGraph() 188 InitializeLocals(code_item.registers_size_); in BuildGraph() 189 graph_->UpdateMaximumNumberOfOutVRegs(code_item.outs_size_); in BuildGraph() 195 if (!InitializeParameters(code_item.ins_size_)) { in BuildGraph()
|