/art/runtime/ |
D | oat_file-inl.h | 25 const void* code = mirror::ArtMethod::EntryPointToCodePointer(GetQuickCode()); in GetOatQuickMethodHeader() local 26 if (code == nullptr) { in GetOatQuickMethodHeader() 30 return reinterpret_cast<const OatQuickMethodHeader*>(code) - 1; in GetOatQuickMethodHeader() 42 const void* code = mirror::ArtMethod::EntryPointToCodePointer(GetQuickCode()); in GetQuickCodeSize() local 43 if (code == nullptr) { in GetQuickCodeSize() 46 return reinterpret_cast<const OatQuickMethodHeader*>(code)[-1].code_size_; in GetQuickCodeSize() 58 const void* code = mirror::ArtMethod::EntryPointToCodePointer(GetQuickCode()); in GetFrameSizeInBytes() local 59 if (code == nullptr) { in GetFrameSizeInBytes() 62 return reinterpret_cast<const OatQuickMethodHeader*>(code)[-1].frame_info_.FrameSizeInBytes(); in GetFrameSizeInBytes() 66 const void* code = mirror::ArtMethod::EntryPointToCodePointer(GetQuickCode()); in GetCoreSpillMask() local [all …]
|
D | dex_instruction_visitor.h | 28 void Visit(const uint16_t* code, size_t size_in_bytes) { in Visit() argument 33 const Instruction* inst = Instruction::At(&code[i]); in Visit()
|
/art/compiler/utils/ |
D | assembler_thumb_test.cc | 136 void dump(std::vector<uint8_t>& code, const char* testname) { in dump() argument 166 for (uint32_t i = 0 ; i < code.size(); ++i) { in dump() 167 out << ".byte " << (static_cast<int>(code[i]) & 0xff) << "\n"; in dump() 243 MemoryRegion code(&managed_code[0], managed_code.size()); in TEST() local 244 __ FinalizeInstructions(code); in TEST() 258 MemoryRegion code(&managed_code[0], managed_code.size()); in TEST() local 259 __ FinalizeInstructions(code); in TEST() 273 MemoryRegion code(&managed_code[0], managed_code.size()); in TEST() local 274 __ FinalizeInstructions(code); in TEST() 320 MemoryRegion code(&managed_code[0], managed_code.size()); in TEST() local [all …]
|
D | assembler_test.h | 356 MemoryRegion code(&(*data)[0], data->size()); in Driver() 357 assembler_->FinalizeInstructions(code); in Driver() 359 if (*data == *res.code) { in Driver() 362 if (DisassembleBinaries(*data, *res.code, test_name)) { in Driver() 363 if (data->size() > res.code->size()) { in Driver() 367 ", gcc size=" << res.code->size(); in Driver() 376 EXPECT_EQ(*data, *res.code) << "Outputs (and disassembly) not identical."; in Driver() 386 std::unique_ptr<std::vector<uint8_t>> code; member 537 res->code.reset(nullptr); in Compile() 583 res->code.reset(new std::vector<uint8_t>(res->length)); in Compile() [all …]
|
/art/compiler/trampolines/ |
D | trampoline_compiler.cc | 51 MemoryRegion code(&(*entry_stub)[0], entry_stub->size()); in CreateTrampoline() local 52 assembler->FinalizeInstructions(code); in CreateTrampoline() 88 MemoryRegion code(&(*entry_stub)[0], entry_stub->size()); in CreateTrampoline() local 89 assembler->FinalizeInstructions(code); in CreateTrampoline() 118 MemoryRegion code(&(*entry_stub)[0], entry_stub->size()); in CreateTrampoline() local 119 assembler->FinalizeInstructions(code); in CreateTrampoline() 135 MemoryRegion code(&(*entry_stub)[0], entry_stub->size()); in CreateTrampoline() local 136 assembler->FinalizeInstructions(code); in CreateTrampoline() 153 MemoryRegion code(&(*entry_stub)[0], entry_stub->size()); in CreateTrampoline() local 154 assembler->FinalizeInstructions(code); in CreateTrampoline()
|
/art/runtime/entrypoints/portable/ |
D | portable_trampoline_entrypoints.cc | 330 const DexFile::CodeItem* code = caller->GetCodeItem(); in artPortableResolutionTrampoline() local 331 CHECK_LT(dex_pc, code->insns_size_in_code_units_); in artPortableResolutionTrampoline() 332 const Instruction* instr = Instruction::At(&code->insns_[dex_pc]); in artPortableResolutionTrampoline() 397 const void* code = nullptr; in artPortableResolutionTrampoline() local 405 code = called->GetEntryPointFromPortableCompiledCode(); in artPortableResolutionTrampoline() 407 code = nullptr; in artPortableResolutionTrampoline() 410 if (code == nullptr) { in artPortableResolutionTrampoline() 413 code = linker->GetPortableOatCodeFor(called, &have_portable_code); in artPortableResolutionTrampoline() 422 code = linker->GetPortableOatCodeFor(called, &have_portable_code); in artPortableResolutionTrampoline() 427 code = called->GetEntryPointFromPortableCompiledCode(); in artPortableResolutionTrampoline() [all …]
|
D | portable_invoke_entrypoints.cc | 41 const void* code = method->GetEntryPointFromPortableCompiledCode(); in FindMethodHelper() local 43 const void* code = nullptr; in FindMethodHelper() local 47 if (UNLIKELY(code == NULL)) { in FindMethodHelper()
|
/art/compiler/utils/arm64/ |
D | assembler_arm64.h | 197 static vixl::Register reg_x(int code) { in reg_x() argument 198 CHECK(code < kNumberOfCoreRegisters) << code; in reg_x() 199 if (code == SP) { in reg_x() 201 } else if (code == XZR) { in reg_x() 204 return vixl::Register::XRegFromCode(code); in reg_x() 207 static vixl::Register reg_w(int code) { in reg_w() argument 208 return vixl::Register::WRegFromCode(code); in reg_w() 211 static vixl::FPRegister reg_d(int code) { in reg_d() argument 212 return vixl::FPRegister::DRegFromCode(code); in reg_d() 215 static vixl::FPRegister reg_s(int code) { in reg_s() argument [all …]
|
/art/compiler/ |
D | common_compiler_test.cc | 145 OatFile::OatMethod CommonCompilerTest::CreateOatMethod(const void* code) { in CreateOatMethod() argument 146 CHECK(code != nullptr); in CreateOatMethod() 147 const byte* base = reinterpret_cast<const byte*>(code); // Base of data points at code. in CreateOatMethod() 165 const SwapVector<uint8_t>* code = compiled_method->GetQuickCode(); in MakeExecutable() local 167 if (code != nullptr) { in MakeExecutable() 168 uint32_t code_size = code->size(); in MakeExecutable() 197 chunk->insert(chunk->end(), code->begin(), code->end()); in MakeExecutable() 201 code = compiled_method->GetPortableCode(); in MakeExecutable() 202 code_ptr = &(*code)[0]; in MakeExecutable() 204 MakeExecutable(code_ptr, code->size()); in MakeExecutable()
|
D | compiled_method.cc | 163 const ArrayRef<const uint8_t>& code, in CompiledMethod() argument 167 : CompiledCode(driver, instruction_set, code), in CompiledMethod() 178 const std::string& code, const ArrayRef<const uint8_t>& gc_map, in CompiledMethod() argument 180 : CompiledCode(driver, instruction_set, code, symbol), in CompiledMethod() 189 const std::string& code, const std::string& symbol) in CompiledMethod() argument 190 : CompiledCode(driver, instruction_set, code, symbol), in CompiledMethod()
|
/art/test/076-boolean-put/ |
D | info.txt | 1 This checks a case where javac generates code that stores a byte into a 2 boolean field. The code as generated should not pass the verifier, so the
|
/art/test/090-loop-formation/ |
D | info.txt | 1 Test loop formation heuristics and code generation. Basically the problem to 2 catch here is to make sure that some never-exercised code blocks are included
|
/art/runtime/mirror/ |
D | art_method-inl.h | 147 const void* code = EntryPointToCodePointer(GetEntryPointFromQuickCompiledCode()); in GetCodeSize() local 148 if (code == nullptr) { in GetCodeSize() 151 return reinterpret_cast<const OatQuickMethodHeader*>(code)[-1].code_size_; in GetCodeSize() 188 const void* code = GetEntryPointFromQuickCompiledCode(); in AssertPcIsWithinQuickCode() local 189 if (code == GetQuickToInterpreterBridge() || code == GetQuickInstrumentationEntryPoint()) { in AssertPcIsWithinQuickCode() 193 if (code == class_linker->GetQuickResolutionTrampoline() || in AssertPcIsWithinQuickCode() 194 code == class_linker->GetQuickToInterpreterBridgeTrampoline()) { in AssertPcIsWithinQuickCode() 200 << " code=" << code in AssertPcIsWithinQuickCode() 349 const void* code = Runtime::Current()->GetInstrumentation()->GetQuickCodeFor(this, sizeof(void*)); in NativePcOffset() local 350 return pc - reinterpret_cast<uintptr_t>(code); in NativePcOffset()
|
D | art_method.h | 334 uintptr_t code = reinterpret_cast<uintptr_t>(GetEntryPointFromQuickCompiledCode()); in IsWithinQuickCode() local 335 if (code == 0) { in IsWithinQuickCode() 345 return code <= pc && pc <= code + GetCodeSize(); in IsWithinQuickCode() 358 uintptr_t code = reinterpret_cast<uintptr_t>(entry_point); in EntryPointToCodePointer() local 359 code &= ~0x1; // TODO: Make this Thumb2 specific. in EntryPointToCodePointer() 360 return reinterpret_cast<const void*>(code); in EntryPointToCodePointer()
|
/art/runtime/arch/x86_64/ |
D | thread_x86_64.cc | 33 static void arch_prctl(int code, void* val) { in arch_prctl() argument 34 syscall(__NR_arch_prctl, code, val); in arch_prctl()
|
/art/compiler/dex/quick/mips/ |
D | README.mips | 8 the vast majority of code for Mips support is either shared with other 17 code generation for switch tables, fill array data, 64-bit 36 don't need def/use bits because they are never modified by code 47 slot and adjust the displacement. However, given that code expansion is 54 for Arm and x86. It might make sense to replace the inline code generation
|
/art/test/701-easy-div-rem/ |
D | genMain.py | 70 code = \ variable 155 f.write(code)
|
/art/runtime/base/unix_file/ |
D | README | 10 This code will not log, because it can't know whether that's appropriate in 13 This code will, in general, return -errno on failure. If an operation consisted
|
/art/runtime/arch/ |
D | stub_test.cc | 66 size_t Invoke3(size_t arg0, size_t arg1, size_t arg2, uintptr_t code, Thread* self) { in Invoke3() argument 67 return Invoke3WithReferrer(arg0, arg1, arg2, code, self, nullptr); in Invoke3() 71 size_t Invoke3WithReferrer(size_t arg0, size_t arg1, size_t arg2, uintptr_t code, Thread* self, in Invoke3WithReferrer() argument 88 : "a"(arg0), "c"(arg1), "d"(arg2), "D"(code), [referrer]"r"(referrer) in Invoke3WithReferrer() 126 : [arg0] "r"(arg0), [arg1] "r"(arg1), [arg2] "r"(arg2), [code] "r"(code), [self] "r"(self), in Invoke3WithReferrer() 254 : [arg0] "0"(arg0), [arg1] "r"(arg1), [arg2] "r"(arg2), [code] "r"(code), [self] "r"(self), in Invoke3WithReferrer() 275 : "D"(arg0), "S"(arg1), "d"(arg2), "a"(code), [referrer] "m"(referrer) in Invoke3WithReferrer() 294 size_t Invoke3WithReferrerAndHidden(size_t arg0, size_t arg1, size_t arg2, uintptr_t code, in Invoke3WithReferrerAndHidden() argument 312 : "a"(arg0), "c"(arg1), "d"(arg2), "D"(code), [referrer]"m"(referrer), [hidden]"r"(hidden) in Invoke3WithReferrerAndHidden() 352 : [arg0] "r"(arg0), [arg1] "r"(arg1), [arg2] "r"(arg2), [code] "r"(code), [self] "r"(self), in Invoke3WithReferrerAndHidden() [all …]
|
/art/test/110-field-access/ |
D | info.txt | 1 Test code generation for field accesses.
|
/art/test/095-switch-MAX_INT/ |
D | info.txt | 1 Bug: http://code.google.com/p/android/issues/detail?id=22344
|
/art/test/113-multidex/ |
D | info.txt | 1 Test whether we can run code from an application split into multiple dex files (similar to
|
/art/runtime/entrypoints/quick/ |
D | quick_trampoline_entrypoints.cc | 719 const DexFile::CodeItem* code; in artQuickResolutionTrampoline() local 721 code = caller->GetCodeItem(); in artQuickResolutionTrampoline() 722 CHECK_LT(dex_pc, code->insns_size_in_code_units_); in artQuickResolutionTrampoline() 723 const Instruction* instr = Instruction::At(&code->insns_[dex_pc]); in artQuickResolutionTrampoline() 794 const void* code = NULL; in artQuickResolutionTrampoline() local 845 code = called->GetEntryPointFromQuickCompiledCode(); in artQuickResolutionTrampoline() 850 code = linker->GetQuickOatCodeFor(called); in artQuickResolutionTrampoline() 853 code = called->GetEntryPointFromQuickCompiledCode(); in artQuickResolutionTrampoline() 859 CHECK_EQ(code == NULL, self->IsExceptionPending()); in artQuickResolutionTrampoline() 864 return code; in artQuickResolutionTrampoline() [all …]
|
/art/compiler/dex/ |
D | verified_method.cc | 280 Instruction::Code code = inst->Opcode(); in GenerateSafeCastSet() local 281 if ((code == Instruction::CHECK_CAST) || (code == Instruction::APUT_OBJECT)) { in GenerateSafeCastSet() 285 if (code == Instruction::CHECK_CAST) { in GenerateSafeCastSet()
|
/art/runtime/arch/arm/ |
D | portable_entrypoints_arm.S | 56 ldr ip, [r0, #METHOD_PORTABLE_CODE_OFFSET_32] @ get pointer to the code 121 cmp r0, #0 @ is code pointer null? 130 bx r12 @ tail-call into actual code
|