/art/compiler/jni/ |
D | jni_cfi_test.cc | 79 const int frame_size(jni_conv->FrameSize()); in TestImplSized() local 86 jni_asm->BuildFrame(frame_size, mr_conv->MethodRegister(), callee_save_regs); in TestImplSized() 88 mr_conv->ResetIterator(FrameOffset(frame_size)); in TestImplSized() 97 jni_asm->RemoveFrame(frame_size, callee_save_regs, /* may_suspend= */ true); in TestImplSized() 102 ASSERT_EQ(jni_asm->cfi().GetCurrentCFAOffset(), frame_size); in TestImplSized()
|
/art/runtime/mirror/ |
D | emulated_stack_frame.cc | 43 size_t frame_size = 0; in CalculateFrameAndReferencesSize() local 51 frame_size += 8; in CalculateFrameAndReferencesSize() 53 frame_size += 4; in CalculateFrameAndReferencesSize() 61 frame_size += 8; in CalculateFrameAndReferencesSize() 63 frame_size += 4; in CalculateFrameAndReferencesSize() 66 (*frame_size_out) = frame_size; in CalculateFrameAndReferencesSize() 159 size_t frame_size = 0; in CreateFromShadowFrameAndArgs() local 162 CalculateFrameAndReferencesSize(p_types.Get(), r_type.Get(), &frame_size, &refs_size); in CreateFromShadowFrameAndArgs() 174 Handle<ByteArray> stack_frame(hs.NewHandle(ByteArray::Alloc(self, frame_size))); in CreateFromShadowFrameAndArgs()
|
/art/runtime/arch/ |
D | context.h | 41 static uintptr_t* CalleeSaveAddress(uint8_t* frame, int num, size_t frame_size) { in CalleeSaveAddress() argument 43 uint8_t* save_addr = frame + frame_size - ((num + 1) * sizeof(void*)); in CalleeSaveAddress()
|
/art/compiler/jni/quick/ |
D | jni_compiler.h | 36 uint32_t frame_size, in JniCompiledMethod() argument 42 frame_size_(frame_size), in JniCompiledMethod()
|
/art/runtime/ |
D | stack.cc | 154 const size_t frame_size = GetCurrentQuickFrameInfo().FrameSizeInBytes(); in GetThisObject() local 156 reinterpret_cast<uint8_t*>(cur_quick_frame_) + frame_size + sizeof(ArtMethod*)); in GetThisObject() 697 size_t frame_size = GetCurrentQuickFrameInfo().FrameSizeInBytes(); in ValidateFrame() local 698 CHECK_NE(frame_size, 0u); in ValidateFrame() 706 CHECK_LE(frame_size, kMaxExpectedFrameSize) << method->PrettyMethod(); in ValidateFrame() 708 CHECK_LT(return_pc_offset, frame_size); in ValidateFrame() 765 size_t frame_size = frame_info.FrameSizeInBytes(); in GetShouldDeoptimizeFlagAddr() local 771 size_t offset = frame_size - core_spill_size - fpu_spill_size - kShouldDeoptimizeFlagSize; in GetShouldDeoptimizeFlagAddr() 872 size_t frame_size = frame_info.FrameSizeInBytes(); in WalkStack() local 907 uint8_t* next_frame = reinterpret_cast<uint8_t*>(cur_quick_frame_) + frame_size; in WalkStack() [all …]
|
D | nterp_helpers.cc | 150 size_t frame_size = in NterpGetFrameSize() local 157 return RoundUp(frame_size, kStackAlignment); in NterpGetFrameSize()
|
D | instrumentation.cc | 554 size_t frame_size = GetCurrentQuickFrameInfo().FrameSizeInBytes(); in InstrumentationInstallStack() local 556 reinterpret_cast<uint8_t*>(GetCurrentQuickFrame()) + frame_size); in InstrumentationInstallStack()
|
D | monitor.cc | 1468 size_t frame_size = stack_visitor->GetCurrentQuickFrameInfo().FrameSizeInBytes(); in VisitLocks() local 1470 sp + frame_size + static_cast<size_t>(kRuntimePointerSize))->AsMirrorPtr(); in VisitLocks()
|
/art/compiler/utils/x86/ |
D | jni_macro_assembler_x86.cc | 45 void X86JNIMacroAssembler::BuildFrame(size_t frame_size, in BuildFrame() argument 50 if (frame_size == kFramePointerSize) { in BuildFrame() 55 CHECK_ALIGNED(frame_size, kNativeStackAlignment); in BuildFrame() 57 CHECK_ALIGNED(frame_size, kStackAlignment); in BuildFrame() 69 int32_t adjust = frame_size - gpr_count * kFramePointerSize - in BuildFrame() 80 DCHECK_EQ(static_cast<size_t>(cfi().GetCurrentCFAOffset()), frame_size); in BuildFrame() 83 void X86JNIMacroAssembler::RemoveFrame(size_t frame_size, in RemoveFrame() argument 86 CHECK_ALIGNED(frame_size, kNativeStackAlignment); in RemoveFrame() 89 int adjust = frame_size - spill_regs.size() * kFramePointerSize - kFramePointerSize; in RemoveFrame() 103 cfi().DefCFAOffset(frame_size); in RemoveFrame()
|
D | jni_macro_assembler_x86.h | 45 void BuildFrame(size_t frame_size, 50 void RemoveFrame(size_t frame_size,
|
/art/compiler/utils/ |
D | assembler_thumb_test.cc | 117 const int frame_size(jni_conv->FrameSize()); in TEST_F() local 124 __ BuildFrame(frame_size, mr_conv->MethodRegister(), callee_save_regs); in TEST_F() 127 mr_conv->ResetIterator(FrameOffset(frame_size)); in TEST_F() 194 __ RemoveFrame(frame_size, callee_save_regs, /* may_suspend= */ true); in TEST_F()
|
D | jni_macro_assembler.h | 98 virtual void BuildFrame(size_t frame_size, 107 virtual void RemoveFrame(size_t frame_size,
|
/art/compiler/optimizing/ |
D | optimizing_cfi_test.cc | 62 const int frame_size = 64; in SetUpFrame() local 85 code_gen_->SetFrameSize(frame_size); in SetUpFrame()
|
D | code_generator_arm64.cc | 1262 int32_t frame_size = dchecked_integral_cast<int32_t>(GetFrameSize()); in GenerateFrameEntry() local 1263 uint32_t core_spills_offset = frame_size - GetCoreSpillSize(); in GenerateFrameEntry() 1266 uint32_t fp_spills_offset = frame_size - FrameEntrySpillSize(); in GenerateFrameEntry() 1277 DCHECK_LE(frame_size, 512); // 32 core registers are only 256 bytes. in GenerateFrameEntry() 1279 __ Stp(kArtMethodRegister, lowest_spill, MemOperand(sp, -frame_size, PreIndex)); in GenerateFrameEntry() 1281 __ Str(kArtMethodRegister, MemOperand(sp, -frame_size, PreIndex)); in GenerateFrameEntry() 1283 __ Claim(frame_size); in GenerateFrameEntry() 1285 GetAssembler()->cfi().AdjustCFAOffset(frame_size); in GenerateFrameEntry() 1306 int32_t frame_size = dchecked_integral_cast<int32_t>(GetFrameSize()); in GenerateFrameExit() local 1307 uint32_t core_spills_offset = frame_size - GetCoreSpillSize(); in GenerateFrameExit() [all …]
|
/art/compiler/utils/x86_64/ |
D | jni_macro_assembler_x86_64.cc | 46 void X86_64JNIMacroAssembler::BuildFrame(size_t frame_size, in BuildFrame() argument 53 CHECK_ALIGNED(frame_size, kNativeStackAlignment); in BuildFrame() 55 CHECK_ALIGNED(frame_size, kStackAlignment); in BuildFrame() 68 int64_t rest_of_frame = static_cast<int64_t>(frame_size) in BuildFrame() 95 void X86_64JNIMacroAssembler::RemoveFrame(size_t frame_size, in RemoveFrame() argument 98 CHECK_ALIGNED(frame_size, kNativeStackAlignment); in RemoveFrame() 102 int64_t offset = static_cast<int64_t>(frame_size) in RemoveFrame() 116 frame_size - (gpr_count * kFramePointerSize) - kFramePointerSize); in RemoveFrame() 132 cfi().DefCFAOffset(frame_size); in RemoveFrame()
|
D | jni_macro_assembler_x86_64.h | 46 void BuildFrame(size_t frame_size, 51 void RemoveFrame(size_t frame_size,
|
D | assembler_x86_64_test.cc | 2528 size_t frame_size = 10 * kStackAlignment; in buildframe_test_fn() local 2529 assembler->BuildFrame(frame_size, method_reg, spill_regs); in buildframe_test_fn() 2532 assembler->Store(FrameOffset(frame_size + 0u), ManagedFromCpu(x86_64::RAX), /* size= */ 8u); in buildframe_test_fn() 2533 assembler->Store(FrameOffset(frame_size + 8u), ManagedFromCpu(x86_64::RBX), /* size= */ 8u); in buildframe_test_fn() 2534 assembler->Store(FrameOffset(frame_size + 16u), ManagedFromFpu(x86_64::XMM1), /* size= */ 8u); in buildframe_test_fn() 2542 ssize_t displacement = static_cast<ssize_t>(frame_size) - (spill_regs.size() * 8 + 8); in buildframe_test_fn() 2547 str << "movq %rax, " << frame_size + 0 << "(%rsp)\n"; in buildframe_test_fn() 2548 str << "movq %rbx, " << frame_size + 8 << "(%rsp)\n"; in buildframe_test_fn() 2549 str << "movsd %xmm1, " << frame_size + 16 << "(%rsp)\n"; in buildframe_test_fn() 2569 size_t frame_size = 10 * kStackAlignment; in removeframe_test_fn() local [all …]
|
/art/compiler/utils/arm64/ |
D | jni_macro_assembler_arm64.cc | 1045 void Arm64JNIMacroAssembler::BuildFrame(size_t frame_size, in BuildFrame() argument 1064 DCHECK_ALIGNED(frame_size, kStackAlignment); in BuildFrame() 1066 DCHECK_GE(frame_size, in BuildFrame() 1068 IncreaseFrameSize(frame_size); in BuildFrame() 1071 asm_.SpillRegisters(core_reg_list, frame_size - core_reg_size); in BuildFrame() 1072 asm_.SpillRegisters(fp_reg_list, frame_size - core_reg_size - fp_reg_size); in BuildFrame() 1081 void Arm64JNIMacroAssembler::RemoveFrame(size_t frame_size, in RemoveFrame() argument 1101 DCHECK_GE(frame_size, core_reg_size + fp_reg_size); in RemoveFrame() 1102 DCHECK_ALIGNED(frame_size, kAapcs64StackAlignment); in RemoveFrame() 1107 asm_.UnspillRegisters(core_reg_list, frame_size - core_reg_size); in RemoveFrame() [all …]
|
D | jni_macro_assembler_arm64.h | 54 void BuildFrame(size_t frame_size, 59 void RemoveFrame(size_t frame_size,
|
/art/compiler/utils/arm/ |
D | jni_macro_assembler_arm_vixl.cc | 80 void ArmVIXLJNIMacroAssembler::BuildFrame(size_t frame_size, in BuildFrame() argument 86 CHECK_ALIGNED_PARAM(frame_size, kAapcsStackAlignment); in BuildFrame() 88 CHECK_ALIGNED_PARAM(frame_size, kStackAlignment); in BuildFrame() 103 frame_size == 2 * kFramePointerSize && in BuildFrame() 130 CHECK_GE(frame_size, (pushed_values + (method_reg.IsRegister() ? 1u : 0u)) * kFramePointerSize); in BuildFrame() 131 IncreaseFrameSize(frame_size - pushed_values * kFramePointerSize); // handles CFI as well. in BuildFrame() 140 void ArmVIXLJNIMacroAssembler::RemoveFrame(size_t frame_size, in RemoveFrame() argument 143 CHECK_ALIGNED(frame_size, kAapcsStackAlignment); in RemoveFrame() 167 if (frame_size == POPCOUNT(core_spill_mask) * kFramePointerSize) { in RemoveFrame() 171 } else if (frame_size == 8u && core_spill_mask == (1u << pc.GetCode())) { in RemoveFrame() [all …]
|
D | jni_macro_assembler_arm_vixl.h | 49 void BuildFrame(size_t frame_size, 54 void RemoveFrame(size_t frame_size,
|
/art/runtime/jit/ |
D | jit.h | 211 size_t frame_size; member 221 return MemberOffset(OFFSETOF_MEMBER(OsrData, frame_size)); in FrameSizeOffset()
|
D | jit.cc | 494 size_t frame_size = osr_method->GetFrameSizeInBytes(); in PrepareForOsr() local 500 osr_data = reinterpret_cast<OsrData*>(malloc(sizeof(OsrData) + frame_size)); in PrepareForOsr() 504 memset(osr_data, 0, sizeof(OsrData) + frame_size); in PrepareForOsr() 505 osr_data->frame_size = frame_size; in PrepareForOsr() 530 DCHECK_LT(slot_offset, static_cast<int32_t>(frame_size)); in PrepareForOsr() 594 osr_data->frame_size, in MaybeDoOnStackReplacement()
|
/art/runtime/interpreter/ |
D | shadow_frame.h | 91 size_t frame_size = ShadowFrame::ComputeSize(num_vregs); \ 92 void* alloca_mem = alloca(frame_size); \
|
/art/runtime/entrypoints/ |
D | entrypoint_utils-inl.h | 751 size_t frame_size = RuntimeCalleeSaveFrame::GetFrameSize(CalleeSaveType::kSaveRefsAndArgs); in GetGenericJniSynchronizationObject() local 753 sp + frame_size + static_cast<size_t>(kRuntimePointerSize)); in GetGenericJniSynchronizationObject()
|