Searched refs:code (Results 1 - 25 of 53) sorted by relevance

123

/art/runtime/
H A Doat_file-inl.h25 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 Ddex_instruction_visitor.h28 void Visit(const uint16_t* code, size_t size_in_bytes) { argument
33 const Instruction* inst = Instruction::At(&code[i]);
H A Dlock_word.h34 * 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 Dtrampoline_compiler.cc51 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 Dassembler_arm64.h95 // 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 Dassembler_thumb_test.cc136 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 Dassembler_test.h356 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 Dportable_trampoline_entrypoints.cc209 // 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 Dportable_invoke_entrypoints.cc41 const void* code = method->GetEntryPointFromPortableCompiledCode(); local
43 const void* code = nullptr; local
47 if (UNLIKELY(code == NULL)) {
/art/runtime/arch/x86_64/
H A Dthread_x86_64.cc33 static void arch_prctl(int code, void* val) { argument
34 syscall(__NR_arch_prctl, code, val);
/art/test/701-easy-div-rem/
H A DgenMain.py70 code = \
155 f.write(code)
/art/runtime/arch/arm/
H A Djni_entrypoints_arm.S37 cbz r0, 1f @ is method code null?
45 bx r12 @ if non-null, tail call to method's code
H A Dportable_entrypoints_arm.S56 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 Dcommon_compiler_test.cc145 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 Dcompiled_method.cc38 // 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 Dcompiled_method.h39 // 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 Dcommon_compiler_test.h45 OatFile::OatMethod CreateOatMethod(const void* code);
/art/runtime/mirror/
H A Dart_method-inl.h147 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 Dart_method.h334 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 Djni_entrypoints_mips.S50 move $t9, $v0 # put method code result in $t9
51 jr $t9 # leaf call to method's code
/art/compiler/dex/
H A Dverified_method.cc267 * 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 Dstub_test.cc66 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 Dquick_trampoline_entrypoints.cc430 // 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 Dbuilder.h51 HGraph* BuildGraph(const DexFile::CodeItem& code);
112 // A list of the size of the dex code holding block information for
H A Dcode_generator.cc65 MemoryRegion code(buffer, code_size);
66 GetAssembler()->FinalizeInstructions(code);
91 MemoryRegion code(buffer, code_size);
92 GetAssembler()->FinalizeInstructions(code);

Completed in 789 milliseconds

123