/art/runtime/ |
H A D | oat_file-inl.h | 25 const void* code = mirror::ArtMethod::EntryPointToCodePointer(GetQuickCode()); local 26 if (code == nullptr) { 29 // Return a pointer to the packed struct before the code. 30 return reinterpret_cast<const OatQuickMethodHeader*>(code) - 1; 42 const void* code = mirror::ArtMethod::EntryPointToCodePointer(GetQuickCode()); local 43 if (code == nullptr) { 46 return reinterpret_cast<const OatQuickMethodHeader*>(code)[-1].code_size_; 58 const void* code = mirror::ArtMethod::EntryPointToCodePointer(GetQuickCode()); local 59 if (code == nullptr) { 62 return reinterpret_cast<const OatQuickMethodHeader*>(code)[ 66 const void* code = mirror::ArtMethod::EntryPointToCodePointer(GetQuickCode()); local 74 const void* code = mirror::ArtMethod::EntryPointToCodePointer(GetQuickCode()); local 82 const void* code = mirror::ArtMethod::EntryPointToCodePointer(GetQuickCode()); local 133 const void* code = mirror::ArtMethod::EntryPointToCodePointer(GetQuickCode()); local 145 const void* code = mirror::ArtMethod::EntryPointToCodePointer(GetQuickCode()); local [all...] |
H A D | dex_instruction_visitor.h | 28 void Visit(const uint16_t* code, size_t size_in_bytes) { argument 33 const Instruction* inst = Instruction::At(&code[i]);
|
H A D | lock_word.h | 34 * the state. The three possible states are fat locked, thin/unlocked, and hash code. 56 // Number of bits to encode the state, currently just fat or thin/unlocked or hash code. 150 // Return the hash code stored in the lock word, must be kHashCode state. 166 std::ostream& operator<<(std::ostream& os, const LockWord::LockState& code);
|
/art/compiler/trampolines/ |
H A D | trampoline_compiler.cc | 51 MemoryRegion code(&(*entry_stub)[0], entry_stub->size()); 52 assembler->FinalizeInstructions(code); 88 MemoryRegion code(&(*entry_stub)[0], entry_stub->size()); 89 assembler->FinalizeInstructions(code); 118 MemoryRegion code(&(*entry_stub)[0], entry_stub->size()); 119 assembler->FinalizeInstructions(code); 135 MemoryRegion code(&(*entry_stub)[0], entry_stub->size()); 136 assembler->FinalizeInstructions(code); 153 MemoryRegion code(&(*entry_stub)[0], entry_stub->size()); 154 assembler->FinalizeInstructions(code); [all...] |
/art/compiler/utils/arm64/ |
H A D | assembler_arm64.h | 95 // Size of generated code. 101 // Emit code that will create an activation on the stack. 106 // Emit code that will remove an activation from the stack. 160 // Exploit fast access in managed code to Thread::Current(). 192 // Generate code to check if Thread::Current()->exception_ is non-null 197 static vixl::Register reg_x(int code) { argument 198 CHECK(code < kNumberOfCoreRegisters) << code; 199 if (code == SP) { 201 } else if (code [all...] |
/art/compiler/utils/ |
H A D | assembler_thumb_test.cc | 136 void dump(std::vector<uint8_t>& code, const char* testname) { argument 166 for (uint32_t i = 0 ; i < code.size(); ++i) { 167 out << ".byte " << (static_cast<int>(code[i]) & 0xff) << "\n"; 243 MemoryRegion code(&managed_code[0], managed_code.size()); 244 __ FinalizeInstructions(code); 258 MemoryRegion code(&managed_code[0], managed_code.size()); 259 __ FinalizeInstructions(code); 273 MemoryRegion code(&managed_code[0], managed_code.size()); 274 __ FinalizeInstructions(code); 320 MemoryRegion code( [all...] |
H A D | assembler_test.h | 356 MemoryRegion code(&(*data)[0], data->size()); 357 assembler_->FinalizeInstructions(code); 359 if (*data == *res.code) { 362 if (DisassembleBinaries(*data, *res.code, test_name)) { 363 if (data->size() > res.code->size()) { 365 EXPECT_TRUE(false) << "Assembly code is not identical, but disassembly of machine code " 366 "is equal: this implies sub-optimal encoding! Our code size=" << data->size() << 367 ", gcc size=" << res.code->size(); 376 EXPECT_EQ(*data, *res.code) << "Output 386 std::unique_ptr<std::vector<uint8_t>> code; member in struct:art::AssemblerTest::NativeAssemblerResult [all...] |
/art/runtime/entrypoints/portable/ |
H A D | portable_trampoline_entrypoints.cc | 209 // Push a transition back into managed code onto the linked list in thread. 309 // All naked Object*s should now be in jobjects, so its safe to go into the main invoke code 317 // Lazily resolve a method for portable. Called by stub code. 330 const DexFile::CodeItem* code = caller->GetCodeItem(); local 331 CHECK_LT(dex_pc, code->insns_size_in_code_units_); 332 const Instruction* instr = Instruction::At(&code->insns_[dex_pc]); 397 const void* code = nullptr; local 405 code = called->GetEntryPointFromPortableCompiledCode(); 407 code = nullptr; 410 if (code [all...] |
H A D | portable_invoke_entrypoints.cc | 41 const void* code = method->GetEntryPointFromPortableCompiledCode(); local 43 const void* code = nullptr; local 47 if (UNLIKELY(code == NULL)) {
|
/art/runtime/arch/x86_64/ |
H A D | thread_x86_64.cc | 33 static void arch_prctl(int code, void* val) { argument 34 syscall(__NR_arch_prctl, code, val);
|
/art/test/701-easy-div-rem/ |
H A D | genMain.py | 70 code = \ 155 f.write(code)
|
/art/runtime/arch/arm/ |
H A D | jni_entrypoints_arm.S | 37 cbz r0, 1f @ is method code null? 45 bx r12 @ if non-null, tail call to method's code
|
H A 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
|
/art/compiler/ |
H A D | common_compiler_test.cc | 145 OatFile::OatMethod CommonCompilerTest::CreateOatMethod(const void* code) { argument 146 CHECK(code != nullptr); 147 const byte* base = reinterpret_cast<const byte*>(code); // Base of data points at code. 165 const SwapVector<uint8_t>* code = compiled_method->GetQuickCode(); local 167 if (code != nullptr) { 168 uint32_t code_size = code->size(); 197 chunk->insert(chunk->end(), code->begin(), code->end()); 201 code [all...] |
H A D | compiled_method.cc | 38 // TODO: we shouldn't just shove ELF objects in as "code" but 163 const ArrayRef<const uint8_t>& code, 167 : CompiledCode(driver, instruction_set, code), 178 const std::string& code, const ArrayRef<const uint8_t>& gc_map, 180 : CompiledCode(driver, instruction_set, code, symbol), 189 const std::string& code, const std::string& symbol) 190 : CompiledCode(driver, instruction_set, code, symbol), 161 CompiledMethod(CompilerDriver* driver, InstructionSet instruction_set, const ArrayRef<const uint8_t>& code, const size_t frame_size_in_bytes, const uint32_t core_spill_mask, const uint32_t fp_spill_mask) argument 177 CompiledMethod(CompilerDriver* driver, InstructionSet instruction_set, const std::string& code, const ArrayRef<const uint8_t>& gc_map, const std::string& symbol) argument 188 CompiledMethod(CompilerDriver* driver, InstructionSet instruction_set, const std::string& code, const std::string& symbol) argument
|
H A D | compiled_method.h | 39 // For Quick to supply an code blob 65 // for code storage. For example on ARM, to ensure that PC relative 70 // returns the difference between the code address and a usable PC. 75 // Returns a pointer suitable for invoking the code at the argument 93 // Used to store the PIC code for Quick. 129 CompiledMethod(CompilerDriver* driver, InstructionSet instruction_set, const std::string& code, 133 CompiledMethod(CompilerDriver* driver, InstructionSet instruction_set, const std::string& code, 190 // For quick code, the size of the activation used by the code. 192 // For quick code, [all...] |
H A D | common_compiler_test.h | 45 OatFile::OatMethod CreateOatMethod(const void* code);
|
/art/runtime/mirror/ |
H A D | art_method-inl.h | 147 const void* code = EntryPointToCodePointer(GetEntryPointFromQuickCompiledCode()); local 148 if (code == nullptr) { 151 return reinterpret_cast<const OatQuickMethodHeader*>(code)[-1].code_size_; 188 const void* code = GetEntryPointFromQuickCompiledCode(); local 189 if (code == GetQuickToInterpreterBridge() || code == GetQuickInstrumentationEntryPoint()) { 193 if (code == class_linker->GetQuickResolutionTrampoline() || 194 code == class_linker->GetQuickToInterpreterBridgeTrampoline()) { 200 << " code=" << code 349 const void* code = Runtime::Current()->GetInstrumentation()->GetQuickCodeFor(this, sizeof(void*)); local [all...] |
H A D | art_method.h | 334 uintptr_t code = reinterpret_cast<uintptr_t>(GetEntryPointFromQuickCompiledCode()); local 335 if (code == 0) { 339 * During a stack walk, a return PC may point past-the-end of the code 341 * return. Thus, we check <= code + GetCodeSize(). 343 * NOTE: For Thumb both pc and code are offset by 1 indicating the Thumb state. 345 return code <= pc && pc <= code + GetCodeSize(); 358 uintptr_t code = reinterpret_cast<uintptr_t>(entry_point); local 359 code &= ~0x1; // TODO: Make this Thumb2 specific. 360 return reinterpret_cast<const void*>(code); [all...] |
/art/runtime/arch/mips/ |
H A D | jni_entrypoints_mips.S | 50 move $t9, $v0 # put method code result in $t9 51 jr $t9 # leaf call to method's code
|
/art/compiler/dex/ |
H A D | verified_method.cc | 267 * Walks over the method code and adds any cast instructions in which 268 * the type cast is implicit to a set, which is used in the code generation 280 Instruction::Code code = inst->Opcode(); local 281 if ((code == Instruction::CHECK_CAST) || (code == Instruction::APUT_OBJECT)) { 285 if (code == Instruction::CHECK_CAST) {
|
/art/runtime/arch/ |
H A D | stub_test.cc | 66 size_t Invoke3(size_t arg0, size_t arg1, size_t arg2, uintptr_t code, Thread* self) { argument 67 return Invoke3WithReferrer(arg0, arg1, arg2, code, self, nullptr); 71 size_t Invoke3WithReferrer(size_t arg0, size_t arg1, size_t arg2, uintptr_t code, Thread* self, argument 73 // Push a transition back into managed code onto the linked list in thread. 88 : "a"(arg0), "c"(arg1), "d"(arg2), "D"(code), [referrer]"r"(referrer) 89 // This places code into edi, arg0 into eax, arg1 into ecx, and arg2 into edx 109 "str %[code], [sp, #12]\n\t" 126 : [arg0] "r"(arg0), [arg1] "r"(arg1), [arg2] "r"(arg2), [code] "r"(code), [self] "r"(self), 148 "stp %[arg2], %[code], [s 294 Invoke3WithReferrerAndHidden(size_t arg0, size_t arg1, size_t arg2, uintptr_t code, Thread* self, mirror::ArtMethod* referrer, size_t hidden) argument 521 Invoke3UWithReferrer(size_t arg0, uint64_t arg1, uintptr_t code, Thread* self, mirror::ArtMethod* referrer) argument 536 Invoke3UUWithReferrer(uint32_t arg0, uint32_t arg1, uint64_t arg2, uintptr_t code, Thread* self, mirror::ArtMethod* referrer) argument [all...] |
/art/runtime/entrypoints/quick/ |
H A D | quick_trampoline_entrypoints.cc | 430 // allows to use the QuickArgumentVisitor constants without moving all the code in its own module. 512 // Push a transition back into managed code onto the linked list in thread. 650 // All naked Object*s should now be in jobjects, so its safe to go into the main invoke code 698 // Lazily resolve a method for quick. Called by stub code. 719 const DexFile::CodeItem* code; local 721 code = caller->GetCodeItem(); 722 CHECK_LT(dex_pc, code->insns_size_in_code_units_); 723 const Instruction* instr = Instruction::At(&code->insns_[dex_pc]); 794 const void* code = NULL; local 845 code 1804 const void* code = method->GetEntryPointFromQuickCompiledCode(); local 1908 const DexFile::CodeItem* code = caller_method->GetCodeItem(); local 1943 const void* code = method->GetEntryPointFromQuickCompiledCode(); local [all...] |
/art/compiler/optimizing/ |
H A D | builder.h | 51 HGraph* BuildGraph(const DexFile::CodeItem& code); 112 // A list of the size of the dex code holding block information for
|
H A D | code_generator.cc | 65 MemoryRegion code(buffer, code_size); 66 GetAssembler()->FinalizeInstructions(code); 91 MemoryRegion code(buffer, code_size); 92 GetAssembler()->FinalizeInstructions(code);
|