Home
last modified time | relevance | path

Searched refs:frame_size (Results 1 – 25 of 31) 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/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/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.cc777 void Arm64JNIMacroAssembler::BuildFrame(size_t frame_size, in BuildFrame() argument
796 DCHECK_ALIGNED(frame_size, kStackAlignment); in BuildFrame()
798 DCHECK_GE(frame_size, in BuildFrame()
800 IncreaseFrameSize(frame_size); in BuildFrame()
803 asm_.SpillRegisters(core_reg_list, frame_size - core_reg_size); in BuildFrame()
804 asm_.SpillRegisters(fp_reg_list, frame_size - core_reg_size - fp_reg_size); in BuildFrame()
813 void Arm64JNIMacroAssembler::RemoveFrame(size_t frame_size, in RemoveFrame() argument
833 DCHECK_GE(frame_size, core_reg_size + fp_reg_size); in RemoveFrame()
834 DCHECK_ALIGNED(frame_size, kAapcs64StackAlignment); in RemoveFrame()
839 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/runtime/
Dnterp_helpers.cc130 size_t frame_size = in NterpGetFrameSize() local
137 return RoundUp(frame_size, kStackAlignment); in NterpGetFrameSize()
Dstack.cc154 const size_t frame_size = GetCurrentQuickFrameInfo().FrameSizeInBytes(); in GetThisObject() local
156 reinterpret_cast<uint8_t*>(cur_quick_frame_) + frame_size + sizeof(ArtMethod*)); in GetThisObject()
736 size_t frame_size = GetCurrentQuickFrameInfo().FrameSizeInBytes(); in ValidateFrame() local
737 CHECK_NE(frame_size, 0u); in ValidateFrame()
745 CHECK_LE(frame_size, kMaxExpectedFrameSize) << method->PrettyMethod(); in ValidateFrame()
747 CHECK_LT(return_pc_offset, frame_size); in ValidateFrame()
898 size_t frame_size = frame_info.FrameSizeInBytes(); in WalkStack() local
933 uint8_t* next_frame = reinterpret_cast<uint8_t*>(cur_quick_frame_) + frame_size; in WalkStack()
937 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()
Dmonitor.cc1465 size_t frame_size = stack_visitor->GetCurrentQuickFrameInfo().FrameSizeInBytes(); in VisitLocks() local
1467 sp + frame_size + static_cast<size_t>(kRuntimePointerSize))->AsMirrorPtr(); in VisitLocks()
/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.cc1200 int32_t frame_size = dchecked_integral_cast<int32_t>(GetFrameSize()); in GenerateFrameEntry() local
1201 uint32_t core_spills_offset = frame_size - GetCoreSpillSize(); in GenerateFrameEntry()
1204 uint32_t fp_spills_offset = frame_size - FrameEntrySpillSize(); in GenerateFrameEntry()
1215 DCHECK_LE(frame_size, 512); // 32 core registers are only 256 bytes. in GenerateFrameEntry()
1217 __ Stp(kArtMethodRegister, lowest_spill, MemOperand(sp, -frame_size, PreIndex)); in GenerateFrameEntry()
1219 __ Str(kArtMethodRegister, MemOperand(sp, -frame_size, PreIndex)); in GenerateFrameEntry()
1221 __ Claim(frame_size); in GenerateFrameEntry()
1223 GetAssembler()->cfi().AdjustCFAOffset(frame_size); in GenerateFrameEntry()
1244 int32_t frame_size = dchecked_integral_cast<int32_t>(GetFrameSize()); in GenerateFrameExit() local
1245 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.cc2350 size_t frame_size = 10 * kStackAlignment; in buildframe_test_fn() local
2351 assembler->BuildFrame(frame_size, method_reg, spill_regs); in buildframe_test_fn()
2354 assembler->Store(FrameOffset(frame_size + 0u), ManagedFromCpu(x86_64::RAX), /* size= */ 8u); in buildframe_test_fn()
2355 assembler->Store(FrameOffset(frame_size + 8u), ManagedFromCpu(x86_64::RBX), /* size= */ 8u); in buildframe_test_fn()
2356 assembler->Store(FrameOffset(frame_size + 16u), ManagedFromFpu(x86_64::XMM1), /* size= */ 8u); in buildframe_test_fn()
2364 ssize_t displacement = static_cast<ssize_t>(frame_size) - (spill_regs.size() * 8 + 8); in buildframe_test_fn()
2369 str << "movq %rax, " << frame_size + 0 << "(%rsp)\n"; in buildframe_test_fn()
2370 str << "movq %rbx, " << frame_size + 8 << "(%rsp)\n"; in buildframe_test_fn()
2371 str << "movsd %xmm1, " << frame_size + 16 << "(%rsp)\n"; in buildframe_test_fn()
2391 size_t frame_size = 10 * kStackAlignment; in removeframe_test_fn() local
[all …]
/art/compiler/utils/arm/
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()
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 …]
Djni_macro_assembler_arm_vixl.h52 void BuildFrame(size_t frame_size,
57 void RemoveFrame(size_t frame_size,
/art/runtime/jit/
Djit.h219 size_t frame_size; member
229 return MemberOffset(OFFSETOF_MEMBER(OsrData, frame_size)); in FrameSizeOffset()
Djit.cc514 size_t frame_size = osr_method->GetFrameSizeInBytes(); in PrepareForOsr() local
520 osr_data = reinterpret_cast<OsrData*>(malloc(sizeof(OsrData) + frame_size)); in PrepareForOsr()
524 memset(osr_data, 0, sizeof(OsrData) + frame_size); in PrepareForOsr()
525 osr_data->frame_size = frame_size; in PrepareForOsr()
550 DCHECK_LT(slot_offset, static_cast<int32_t>(frame_size)); in PrepareForOsr()
609 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); \
/art/runtime/entrypoints/
Dentrypoint_utils-inl.h776 size_t frame_size = RuntimeCalleeSaveFrame::GetFrameSize(CalleeSaveType::kSaveRefsAndArgs); in GetGenericJniSynchronizationObject() local
777 return reinterpret_cast<jobject>(sp + frame_size + static_cast<size_t>(kRuntimePointerSize)); in GetGenericJniSynchronizationObject()

12