Home
last modified time | relevance | path

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

/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(), in TestImplSized()
89 jni_asm->RemoveFrame(frame_size, callee_save_regs, /* may_suspend= */ true); in TestImplSized()
94 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/compiler/jni/quick/
Djni_compiler.h35 uint32_t frame_size, in JniCompiledMethod() argument
41 frame_size_(frame_size), in JniCompiledMethod()
/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/runtime/
Dnterp_helpers.cc100 size_t frame_size = in NterpGetFrameSize() local
107 return RoundUp(frame_size, kStackAlignment); in NterpGetFrameSize()
Dstack.cc761 size_t frame_size = GetCurrentQuickFrameInfo().FrameSizeInBytes(); in SanityCheckFrame() local
762 CHECK_NE(frame_size, 0u); in SanityCheckFrame()
770 CHECK_LE(frame_size, kMaxExpectedFrameSize) << method->PrettyMethod(); in SanityCheckFrame()
772 CHECK_LT(return_pc_offset, frame_size); in SanityCheckFrame()
923 size_t frame_size = frame_info.FrameSizeInBytes(); in WalkStack() local
958 uint8_t* next_frame = reinterpret_cast<uint8_t*>(cur_quick_frame_) + frame_size; in WalkStack()
962 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.cc47 void X86JNIMacroAssembler::BuildFrame(size_t frame_size, in BuildFrame() argument
53 if (frame_size == kFramePointerSize) { in BuildFrame()
58 CHECK_ALIGNED(frame_size, kNativeStackAlignment); in BuildFrame()
60 CHECK_ALIGNED(frame_size, kStackAlignment); in BuildFrame()
72 int32_t adjust = frame_size - gpr_count * kFramePointerSize - in BuildFrame()
83 DCHECK_EQ(static_cast<size_t>(cfi().GetCurrentCFAOffset()), frame_size); in BuildFrame()
87 int offset = frame_size + spill.getSpillOffset(); in BuildFrame()
92 __ movsd(Address(ESP, frame_size + spill.getSpillOffset()), spill.AsX86().AsXmmRegister()); in BuildFrame()
95 __ movss(Address(ESP, frame_size + spill.getSpillOffset()), spill.AsX86().AsXmmRegister()); in BuildFrame()
101 void X86JNIMacroAssembler::RemoveFrame(size_t frame_size, in RemoveFrame() argument
[all …]
Djni_macro_assembler_x86.h45 void BuildFrame(size_t frame_size,
51 void RemoveFrame(size_t frame_size,
/art/compiler/utils/x86_64/
Djni_macro_assembler_x86_64.cc41 void X86_64JNIMacroAssembler::BuildFrame(size_t frame_size, in BuildFrame() argument
49 CHECK_ALIGNED(frame_size, kNativeStackAlignment); in BuildFrame()
51 CHECK_ALIGNED(frame_size, kStackAlignment); in BuildFrame()
64 int64_t rest_of_frame = static_cast<int64_t>(frame_size) in BuildFrame()
93 __ movq(Address(CpuRegister(RSP), frame_size + spill.getSpillOffset()), in BuildFrame()
97 __ movl(Address(CpuRegister(RSP), frame_size + spill.getSpillOffset()), in BuildFrame()
102 __ movsd(Address(CpuRegister(RSP), frame_size + spill.getSpillOffset()), in BuildFrame()
106 __ movss(Address(CpuRegister(RSP), frame_size + spill.getSpillOffset()), in BuildFrame()
113 void X86_64JNIMacroAssembler::RemoveFrame(size_t frame_size, in RemoveFrame() argument
116 CHECK_ALIGNED(frame_size, kNativeStackAlignment); in RemoveFrame()
[all …]
Djni_macro_assembler_x86_64.h46 void BuildFrame(size_t frame_size,
52 void RemoveFrame(size_t frame_size,
Dassembler_x86_64_test.cc2348 size_t frame_size = 10 * kStackAlignment; in buildframe_test_fn() local
2349 assembler->BuildFrame(frame_size, method_reg, spill_regs, entry_spills); in buildframe_test_fn()
2357 ssize_t displacement = static_cast<ssize_t>(frame_size) - (spill_regs.size() * 8 + 8); in buildframe_test_fn()
2362 str << "movq %rax, " << frame_size + 0 << "(%rsp)\n"; in buildframe_test_fn()
2363 str << "movq %rbx, " << frame_size + 8 << "(%rsp)\n"; in buildframe_test_fn()
2364 str << "movsd %xmm1, " << frame_size + 16 << "(%rsp)\n"; in buildframe_test_fn()
2384 size_t frame_size = 10 * kStackAlignment; in removeframe_test_fn() local
2385 assembler->RemoveFrame(frame_size, spill_regs, /* may_suspend= */ true); in removeframe_test_fn()
2390 ssize_t displacement = static_cast<ssize_t>(frame_size) - spill_regs.size() * 8 - 8; in removeframe_test_fn()
/art/compiler/utils/arm64/
Djni_macro_assembler_arm64.cc703 void Arm64JNIMacroAssembler::BuildFrame(size_t frame_size, in BuildFrame() argument
723 DCHECK_ALIGNED(frame_size, kStackAlignment); in BuildFrame()
725 DCHECK_GE(frame_size, in BuildFrame()
727 IncreaseFrameSize(frame_size); in BuildFrame()
730 asm_.SpillRegisters(core_reg_list, frame_size - core_reg_size); in BuildFrame()
731 asm_.SpillRegisters(fp_reg_list, frame_size - core_reg_size - fp_reg_size); in BuildFrame()
740 int32_t offset = frame_size + static_cast<size_t>(kArm64PointerSize); in BuildFrame()
762 void Arm64JNIMacroAssembler::RemoveFrame(size_t frame_size, in RemoveFrame() argument
782 DCHECK_GE(frame_size, core_reg_size + fp_reg_size); in RemoveFrame()
783 DCHECK_ALIGNED(frame_size, kAapcs64StackAlignment); in RemoveFrame()
[all …]
Djni_macro_assembler_arm64.h55 void BuildFrame(size_t frame_size,
61 void RemoveFrame(size_t frame_size,
/art/compiler/utils/arm/
Djni_macro_assembler_arm_vixl.cc77 void ArmVIXLJNIMacroAssembler::BuildFrame(size_t frame_size, in BuildFrame() argument
84 CHECK_ALIGNED_PARAM(frame_size, kAapcsStackAlignment); in BuildFrame()
86 CHECK_ALIGNED_PARAM(frame_size, kStackAlignment); in BuildFrame()
118 CHECK_GE(frame_size, (pushed_values + (method_reg.IsRegister() ? 1u : 0u)) * kFramePointerSize); in BuildFrame()
119 IncreaseFrameSize(frame_size - pushed_values * kFramePointerSize); // handles CFI as well. in BuildFrame()
128 int32_t offset = frame_size + kFramePointerSize; in BuildFrame()
147 void ArmVIXLJNIMacroAssembler::RemoveFrame(size_t frame_size, in RemoveFrame() argument
150 CHECK_ALIGNED(frame_size, kAapcsStackAlignment); in RemoveFrame()
166 CHECK_GE(frame_size, pop_values * kFramePointerSize); in RemoveFrame()
167 DecreaseFrameSize(frame_size - (pop_values * kFramePointerSize)); // handles CFI as well. in RemoveFrame()
[all …]
Djni_macro_assembler_arm_vixl.h52 void BuildFrame(size_t frame_size,
58 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()
/art/compiler/utils/
Dassembler_thumb_test.cc223 const int frame_size(jni_conv->FrameSize()); in TEST_F() local
229 __ BuildFrame(frame_size, mr_conv->MethodRegister(), callee_save_regs, mr_conv->EntrySpills()); in TEST_F()
287 __ RemoveFrame(frame_size, callee_save_regs, /* may_suspend= */ true); in TEST_F()
Djni_macro_assembler.h64 virtual void BuildFrame(size_t frame_size,
74 virtual void RemoveFrame(size_t frame_size,
/art/runtime/jit/
Djit.h214 size_t frame_size; member
224 return MemberOffset(OFFSETOF_MEMBER(OsrData, frame_size)); in FrameSizeOffset()
Djit.cc504 size_t frame_size = osr_method->GetFrameSizeInBytes(); in PrepareForOsr() local
510 osr_data = reinterpret_cast<OsrData*>(malloc(sizeof(OsrData) + frame_size)); in PrepareForOsr()
514 memset(osr_data, 0, sizeof(OsrData) + frame_size); in PrepareForOsr()
515 osr_data->frame_size = frame_size; in PrepareForOsr()
540 DCHECK_LT(slot_offset, static_cast<int32_t>(frame_size)); in PrepareForOsr()
599 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()
Dinterpreter_common.h136 NO_INLINE bool CheckStackOverflow(Thread* self, size_t frame_size)
/art/oatdump/
Doatdump.cc1388 size_t frame_size, in GetVRegOffsetFromQuickCode() argument
1398 DCHECK_ALIGNED(frame_size, kStackAlignment); in GetVRegOffsetFromQuickCode()
1419 int locals_start = frame_size - spill_size - num_regs * sizeof(uint32_t); in GetVRegOffsetFromQuickCode()
1423 return frame_size + ((reg - num_regs) * sizeof(uint32_t)) in GetVRegOffsetFromQuickCode()