Home
last modified time | relevance | path

Searched refs:frame_size (Results 1 – 25 of 27) sorted by relevance

12

/art/compiler/jni/
Djni_cfi_test.cc78 const int frame_size(jni_conv->FrameSize()); in TestImplSized() local
85 jni_asm->BuildFrame(frame_size, mr_conv->MethodRegister(), callee_save_regs); in TestImplSized()
87 mr_conv->ResetIterator(FrameOffset(frame_size)); in TestImplSized()
96 jni_asm->RemoveFrame(frame_size, callee_save_regs, /* may_suspend= */ true); in TestImplSized()
101 ASSERT_EQ(jni_asm->cfi().GetCurrentCFAOffset(), frame_size); in TestImplSized()
/art/runtime/mirror/
Demulated_stack_frame.cc43 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()
167 size_t frame_size = 0; in CreateFromShadowFrameAndArgs() local
170 CalculateFrameAndReferencesSize(to_types.Get(), r_type.Get(), &frame_size, &refs_size); in CreateFromShadowFrameAndArgs()
182 Handle<ByteArray> stack_frame(hs.NewHandle(ByteArray::Alloc(self, frame_size))); in CreateFromShadowFrameAndArgs()
/art/runtime/arch/
Dcontext.h41 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/
Djni_compiler.h35 uint32_t frame_size, in JniCompiledMethod() argument
41 frame_size_(frame_size), in JniCompiledMethod()
/art/runtime/
Dnterp_helpers.cc107 size_t frame_size = in NterpGetFrameSize() local
114 return RoundUp(frame_size, kStackAlignment); in NterpGetFrameSize()
Dstack.cc762 size_t frame_size = GetCurrentQuickFrameInfo().FrameSizeInBytes(); in ValidateFrame() local
763 CHECK_NE(frame_size, 0u); in ValidateFrame()
771 CHECK_LE(frame_size, kMaxExpectedFrameSize) << method->PrettyMethod(); in ValidateFrame()
773 CHECK_LT(return_pc_offset, frame_size); in ValidateFrame()
924 size_t frame_size = frame_info.FrameSizeInBytes(); in WalkStack() local
959 uint8_t* next_frame = reinterpret_cast<uint8_t*>(cur_quick_frame_) + frame_size; in WalkStack()
963 LOG(INFO) << ArtMethod::PrettyMethod(method) << "@" << method << " size=" << frame_size in WalkStack()
Dcha.cc230 size_t frame_size = frame_info.FrameSizeInBytes(); in SetShouldDeoptimizeFlag() local
236 size_t offset = frame_size - core_spill_size - fpu_spill_size - kShouldDeoptimizeFlagSize; in SetShouldDeoptimizeFlag()
/art/compiler/utils/x86/
Djni_macro_assembler_x86.cc53 void X86JNIMacroAssembler::BuildFrame(size_t frame_size, in BuildFrame() argument
58 if (frame_size == kFramePointerSize) { in BuildFrame()
63 CHECK_ALIGNED(frame_size, kNativeStackAlignment); in BuildFrame()
65 CHECK_ALIGNED(frame_size, kStackAlignment); in BuildFrame()
77 int32_t adjust = frame_size - gpr_count * kFramePointerSize - in BuildFrame()
88 DCHECK_EQ(static_cast<size_t>(cfi().GetCurrentCFAOffset()), frame_size); in BuildFrame()
91 void X86JNIMacroAssembler::RemoveFrame(size_t frame_size, in RemoveFrame() argument
94 CHECK_ALIGNED(frame_size, kNativeStackAlignment); in RemoveFrame()
97 int adjust = frame_size - spill_regs.size() * kFramePointerSize - kFramePointerSize; in RemoveFrame()
111 cfi().DefCFAOffset(frame_size); in RemoveFrame()
Djni_macro_assembler_x86.h45 void BuildFrame(size_t frame_size,
50 void RemoveFrame(size_t frame_size,
/art/compiler/utils/arm64/
Djni_macro_assembler_arm64.cc781 void Arm64JNIMacroAssembler::BuildFrame(size_t frame_size, in BuildFrame() argument
800 DCHECK_ALIGNED(frame_size, kStackAlignment); in BuildFrame()
802 DCHECK_GE(frame_size, in BuildFrame()
804 IncreaseFrameSize(frame_size); in BuildFrame()
807 asm_.SpillRegisters(core_reg_list, frame_size - core_reg_size); in BuildFrame()
808 asm_.SpillRegisters(fp_reg_list, frame_size - core_reg_size - fp_reg_size); in BuildFrame()
817 void Arm64JNIMacroAssembler::RemoveFrame(size_t frame_size, in RemoveFrame() argument
837 DCHECK_GE(frame_size, core_reg_size + fp_reg_size); in RemoveFrame()
838 DCHECK_ALIGNED(frame_size, kAapcs64StackAlignment); in RemoveFrame()
843 asm_.UnspillRegisters(core_reg_list, frame_size - core_reg_size); in RemoveFrame()
[all …]
Djni_macro_assembler_arm64.h55 void BuildFrame(size_t frame_size,
60 void RemoveFrame(size_t frame_size,
/art/compiler/utils/
Dassembler_thumb_test.cc115 const int frame_size(jni_conv->FrameSize()); in TEST_F() local
122 __ BuildFrame(frame_size, mr_conv->MethodRegister(), callee_save_regs); in TEST_F()
125 mr_conv->ResetIterator(FrameOffset(frame_size)); in TEST_F()
189 __ RemoveFrame(frame_size, callee_save_regs, /* may_suspend= */ true); in TEST_F()
Djni_macro_assembler.h98 virtual void BuildFrame(size_t frame_size,
107 virtual void RemoveFrame(size_t frame_size,
/art/compiler/optimizing/
Doptimizing_cfi_test.cc62 const int frame_size = 64; in SetUpFrame() local
85 code_gen_->SetFrameSize(frame_size); in SetUpFrame()
Dcode_generator_arm64.cc1214 int32_t frame_size = dchecked_integral_cast<int32_t>(GetFrameSize()); in GenerateFrameEntry() local
1215 uint32_t core_spills_offset = frame_size - GetCoreSpillSize(); in GenerateFrameEntry()
1218 uint32_t fp_spills_offset = frame_size - FrameEntrySpillSize(); in GenerateFrameEntry()
1229 DCHECK_LE(frame_size, 512); // 32 core registers are only 256 bytes. in GenerateFrameEntry()
1231 __ Stp(kArtMethodRegister, lowest_spill, MemOperand(sp, -frame_size, PreIndex)); in GenerateFrameEntry()
1233 __ Str(kArtMethodRegister, MemOperand(sp, -frame_size, PreIndex)); in GenerateFrameEntry()
1235 __ Claim(frame_size); in GenerateFrameEntry()
1237 GetAssembler()->cfi().AdjustCFAOffset(frame_size); in GenerateFrameEntry()
1258 int32_t frame_size = dchecked_integral_cast<int32_t>(GetFrameSize()); in GenerateFrameExit() local
1259 uint32_t core_spills_offset = frame_size - GetCoreSpillSize(); in GenerateFrameExit()
[all …]
/art/compiler/utils/x86_64/
Djni_macro_assembler_x86_64.cc45 void X86_64JNIMacroAssembler::BuildFrame(size_t frame_size, in BuildFrame() argument
52 CHECK_ALIGNED(frame_size, kNativeStackAlignment); in BuildFrame()
54 CHECK_ALIGNED(frame_size, kStackAlignment); in BuildFrame()
67 int64_t rest_of_frame = static_cast<int64_t>(frame_size) in BuildFrame()
94 void X86_64JNIMacroAssembler::RemoveFrame(size_t frame_size, in RemoveFrame() argument
97 CHECK_ALIGNED(frame_size, kNativeStackAlignment); in RemoveFrame()
101 int64_t offset = static_cast<int64_t>(frame_size) in RemoveFrame()
115 frame_size - (gpr_count * kFramePointerSize) - kFramePointerSize); in RemoveFrame()
131 cfi().DefCFAOffset(frame_size); in RemoveFrame()
Djni_macro_assembler_x86_64.h46 void BuildFrame(size_t frame_size,
51 void RemoveFrame(size_t frame_size,
Dassembler_x86_64_test.cc2345 size_t frame_size = 10 * kStackAlignment; in buildframe_test_fn() local
2346 assembler->BuildFrame(frame_size, method_reg, spill_regs); in buildframe_test_fn()
2349 assembler->Store(FrameOffset(frame_size + 0u), ManagedFromCpu(x86_64::RAX), /* size= */ 8u); in buildframe_test_fn()
2350 assembler->Store(FrameOffset(frame_size + 8u), ManagedFromCpu(x86_64::RBX), /* size= */ 8u); in buildframe_test_fn()
2351 assembler->Store(FrameOffset(frame_size + 16u), ManagedFromFpu(x86_64::XMM1), /* size= */ 8u); in buildframe_test_fn()
2359 ssize_t displacement = static_cast<ssize_t>(frame_size) - (spill_regs.size() * 8 + 8); in buildframe_test_fn()
2364 str << "movq %rax, " << frame_size + 0 << "(%rsp)\n"; in buildframe_test_fn()
2365 str << "movq %rbx, " << frame_size + 8 << "(%rsp)\n"; in buildframe_test_fn()
2366 str << "movsd %xmm1, " << frame_size + 16 << "(%rsp)\n"; in buildframe_test_fn()
2386 size_t frame_size = 10 * kStackAlignment; in removeframe_test_fn() local
[all …]
/art/compiler/utils/arm/
Djni_macro_assembler_arm_vixl.h52 void BuildFrame(size_t frame_size,
57 void RemoveFrame(size_t frame_size,
Djni_macro_assembler_arm_vixl.cc80 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()
120 CHECK_GE(frame_size, (pushed_values + (method_reg.IsRegister() ? 1u : 0u)) * kFramePointerSize); in BuildFrame()
121 IncreaseFrameSize(frame_size - pushed_values * kFramePointerSize); // handles CFI as well. in BuildFrame()
130 void ArmVIXLJNIMacroAssembler::RemoveFrame(size_t frame_size, in RemoveFrame() argument
133 CHECK_ALIGNED(frame_size, kAapcsStackAlignment); in RemoveFrame()
149 CHECK_GE(frame_size, pop_values * kFramePointerSize); in RemoveFrame()
150 DecreaseFrameSize(frame_size - (pop_values * kFramePointerSize)); // handles CFI as well. in RemoveFrame()
200 cfi().DefCFAOffset(frame_size); in RemoveFrame()
/art/runtime/jit/
Djit.h215 size_t frame_size; member
225 return MemberOffset(OFFSETOF_MEMBER(OsrData, frame_size)); in FrameSizeOffset()
Djit.cc508 size_t frame_size = osr_method->GetFrameSizeInBytes(); in PrepareForOsr() local
514 osr_data = reinterpret_cast<OsrData*>(malloc(sizeof(OsrData) + frame_size)); in PrepareForOsr()
518 memset(osr_data, 0, sizeof(OsrData) + frame_size); in PrepareForOsr()
519 osr_data->frame_size = frame_size; in PrepareForOsr()
544 DCHECK_LT(slot_offset, static_cast<int32_t>(frame_size)); in PrepareForOsr()
603 osr_data->frame_size, in MaybeDoOnStackReplacement()
/art/runtime/interpreter/
Dshadow_frame.h91 size_t frame_size = ShadowFrame::ComputeSize(num_vregs); \
92 void* alloca_mem = alloca(frame_size); \
Dinterpreter_common.cc59 bool CheckStackOverflow(Thread* self, size_t frame_size) in CheckStackOverflow() argument
63 if (UNLIKELY(__builtin_frame_address(0) < stack_end + frame_size)) { in CheckStackOverflow()
/art/oatdump/
Doatdump.cc1392 size_t frame_size, in GetVRegOffsetFromQuickCode() argument
1402 DCHECK_ALIGNED(frame_size, kStackAlignment); in GetVRegOffsetFromQuickCode()
1423 int locals_start = frame_size - spill_size - num_regs * sizeof(uint32_t); in GetVRegOffsetFromQuickCode()
1427 return frame_size + ((reg - num_regs) * sizeof(uint32_t)) in GetVRegOffsetFromQuickCode()

12