Home
last modified time | relevance | path

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

12

/art/compiler/jni/quick/
Djni_compiler.cc58 size_t frame_size, size_t out_arg_size);
229 const size_t frame_size(main_jni_conv->FrameSize()); // Excludes outgoing args. in ArtJniCompileMethodInternal() local
231 __ BuildFrame(frame_size, mr_conv->MethodRegister(), callee_save_regs, mr_conv->EntrySpills()); in ArtJniCompileMethodInternal()
232 DCHECK_EQ(jni_asm->cfi().GetCurrentCFAOffset(), static_cast<int>(frame_size)); in ArtJniCompileMethodInternal()
239 mr_conv->ResetIterator(FrameOffset(frame_size)); in ArtJniCompileMethodInternal()
258 CHECK_LT(handle_scope_offset.Uint32Value(), frame_size); in ArtJniCompileMethodInternal()
281 CHECK_LT(handle_scope_offset.Uint32Value(), frame_size); in ArtJniCompileMethodInternal()
439 mr_conv->ResetIterator(FrameOffset(frame_size + main_out_arg_size)); in ArtJniCompileMethodInternal()
450 mr_conv->ResetIterator(FrameOffset(frame_size + main_out_arg_size)); in ArtJniCompileMethodInternal()
465 CopyParameter(jni_asm.get(), mr_conv.get(), main_jni_conv.get(), frame_size, main_out_arg_size); in ArtJniCompileMethodInternal()
[all …]
Djni_compiler.h35 uint32_t frame_size, in JniCompiledMethod() argument
41 frame_size_(frame_size), in JniCompiledMethod()
/art/compiler/jni/
Djni_cfi_test.cc77 const int frame_size(jni_conv->FrameSize()); in TestImplSized() local
84 jni_asm->BuildFrame(frame_size, mr_conv->MethodRegister(), in TestImplSized()
88 jni_asm->RemoveFrame(frame_size, callee_save_regs, /* may_suspend */ true); in TestImplSized()
93 ASSERT_EQ(jni_asm->cfi().GetCurrentCFAOffset(), frame_size); in TestImplSized()
/art/runtime/mirror/
Demulated_stack_frame.cc39 size_t frame_size = 0; in CalculateFrameAndReferencesSize() local
47 frame_size += 8; in CalculateFrameAndReferencesSize()
49 frame_size += 4; in CalculateFrameAndReferencesSize()
57 frame_size += 8; in CalculateFrameAndReferencesSize()
59 frame_size += 4; in CalculateFrameAndReferencesSize()
62 (*frame_size_out) = frame_size; in CalculateFrameAndReferencesSize()
163 size_t frame_size = 0; in CreateFromShadowFrameAndArgs() local
166 CalculateFrameAndReferencesSize(to_types.Get(), r_type.Get(), &frame_size, &refs_size); in CreateFromShadowFrameAndArgs()
179 Handle<ByteArray> stack_frame(hs.NewHandle(ByteArray::Alloc(self, frame_size))); in CreateFromShadowFrameAndArgs()
/art/runtime/arch/
Dcontext.h42 static uintptr_t* CalleeSaveAddress(uint8_t* frame, int num, size_t frame_size) { in CalleeSaveAddress() argument
44 uint8_t* save_addr = frame + frame_size - ((num + 1) * sizeof(void*)); in CalleeSaveAddress()
/art/compiler/utils/x86/
Djni_macro_assembler_x86.cc44 void X86JNIMacroAssembler::BuildFrame(size_t frame_size, in BuildFrame() argument
50 CHECK_ALIGNED(frame_size, kStackAlignment); in BuildFrame()
61 int32_t adjust = frame_size - gpr_count * kFramePointerSize - in BuildFrame()
68 DCHECK_EQ(static_cast<size_t>(cfi().GetCurrentCFAOffset()), frame_size); in BuildFrame()
73 int offset = frame_size + spill.getSpillOffset(); in BuildFrame()
78 __ movsd(Address(ESP, frame_size + spill.getSpillOffset()), spill.AsX86().AsXmmRegister()); in BuildFrame()
81 __ movss(Address(ESP, frame_size + spill.getSpillOffset()), spill.AsX86().AsXmmRegister()); in BuildFrame()
87 void X86JNIMacroAssembler::RemoveFrame(size_t frame_size, in RemoveFrame() argument
90 CHECK_ALIGNED(frame_size, kStackAlignment); in RemoveFrame()
93 int adjust = frame_size - spill_regs.size() * kFramePointerSize - kFramePointerSize; in RemoveFrame()
[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.cc38 void X86_64JNIMacroAssembler::BuildFrame(size_t frame_size, in BuildFrame() argument
44 CHECK_ALIGNED(frame_size, kStackAlignment); in BuildFrame()
56 int64_t rest_of_frame = static_cast<int64_t>(frame_size) in BuildFrame()
82 __ movq(Address(CpuRegister(RSP), frame_size + spill.getSpillOffset()), in BuildFrame()
86 __ movl(Address(CpuRegister(RSP), frame_size + spill.getSpillOffset()), in BuildFrame()
91 __ movsd(Address(CpuRegister(RSP), frame_size + spill.getSpillOffset()), in BuildFrame()
95 __ movss(Address(CpuRegister(RSP), frame_size + spill.getSpillOffset()), in BuildFrame()
102 void X86_64JNIMacroAssembler::RemoveFrame(size_t frame_size, in RemoveFrame() argument
105 CHECK_ALIGNED(frame_size, kStackAlignment); in RemoveFrame()
109 int64_t offset = static_cast<int64_t>(frame_size) 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.cc2013 size_t frame_size = 10 * kStackAlignment; in buildframe_test_fn() local
2014 assembler->BuildFrame(frame_size, method_reg, spill_regs, entry_spills); in buildframe_test_fn()
2022 ssize_t displacement = static_cast<ssize_t>(frame_size) - (spill_regs.size() * 8 + 8); in buildframe_test_fn()
2027 str << "movq %rax, " << frame_size + 0 << "(%rsp)\n"; in buildframe_test_fn()
2028 str << "movq %rbx, " << frame_size + 8 << "(%rsp)\n"; in buildframe_test_fn()
2029 str << "movsd %xmm1, " << frame_size + 16 << "(%rsp)\n"; in buildframe_test_fn()
2049 size_t frame_size = 10 * kStackAlignment; in removeframe_test_fn() local
2050 assembler->RemoveFrame(frame_size, spill_regs, /* may_suspend */ true); in removeframe_test_fn()
2055 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.cc686 void Arm64JNIMacroAssembler::BuildFrame(size_t frame_size, in BuildFrame() argument
706 DCHECK_ALIGNED(frame_size, kStackAlignment); in BuildFrame()
707 DCHECK_GE(frame_size, core_reg_size + fp_reg_size + static_cast<size_t>(kArm64PointerSize)); in BuildFrame()
708 IncreaseFrameSize(frame_size); in BuildFrame()
711 asm_.SpillRegisters(core_reg_list, frame_size - core_reg_size); in BuildFrame()
712 asm_.SpillRegisters(fp_reg_list, frame_size - core_reg_size - fp_reg_size); in BuildFrame()
721 int32_t offset = frame_size + static_cast<size_t>(kArm64PointerSize); in BuildFrame()
744 void Arm64JNIMacroAssembler::RemoveFrame(size_t frame_size, in RemoveFrame() argument
764 DCHECK_GE(frame_size, core_reg_size + fp_reg_size + static_cast<size_t>(kArm64PointerSize)); in RemoveFrame()
765 DCHECK_ALIGNED(frame_size, kStackAlignment); 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.cc58 void ArmVIXLJNIMacroAssembler::BuildFrame(size_t frame_size, in BuildFrame() argument
62 CHECK_ALIGNED(frame_size, kStackAlignment); in BuildFrame()
92 CHECK_GT(frame_size, pushed_values * kFramePointerSize); in BuildFrame()
93 IncreaseFrameSize(frame_size - pushed_values * kFramePointerSize); // handles CFI as well. in BuildFrame()
99 int32_t offset = frame_size + kFramePointerSize; in BuildFrame()
119 void ArmVIXLJNIMacroAssembler::RemoveFrame(size_t frame_size, in RemoveFrame() argument
122 CHECK_ALIGNED(frame_size, kStackAlignment); in RemoveFrame()
138 CHECK_GT(frame_size, pop_values * kFramePointerSize); in RemoveFrame()
139 DecreaseFrameSize(frame_size - (pop_values * kFramePointerSize)); // handles CFI as well. in RemoveFrame()
190 cfi().DefCFAOffset(frame_size); in RemoveFrame()
Djni_macro_assembler_arm_vixl.h52 void BuildFrame(size_t frame_size,
58 void RemoveFrame(size_t frame_size,
/art/runtime/
Dstack.cc680 size_t frame_size = GetCurrentQuickFrameInfo().FrameSizeInBytes(); in SanityCheckFrame() local
681 CHECK_NE(frame_size, 0u); in SanityCheckFrame()
690 CHECK_LE(frame_size, kMaxExpectedFrameSize) << method->PrettyMethod(); in SanityCheckFrame()
692 CHECK_LT(return_pc_offset, frame_size); in SanityCheckFrame()
759 size_t frame_size = RoundUp( in GetCurrentQuickFrameInfo() local
762 return QuickMethodFrameInfo(frame_size, callee_info.CoreSpillMask(), callee_info.FpSpillMask()); in GetCurrentQuickFrameInfo()
864 size_t frame_size = frame_info.FrameSizeInBytes(); in WalkStack() local
865 size_t return_pc_offset = frame_size - sizeof(void*); in WalkStack()
908 uint8_t* next_frame = reinterpret_cast<uint8_t*>(cur_quick_frame_) + frame_size; in WalkStack()
912 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/runtime/jit/
Djit.cc477 size_t frame_size = 0; in MaybeDoOnStackReplacement() local
512 frame_size = osr_method->GetFrameSizeInBytes(); in MaybeDoOnStackReplacement()
518 memory = reinterpret_cast<void**>(malloc(frame_size)); in MaybeDoOnStackReplacement()
520 memset(memory, 0, frame_size); in MaybeDoOnStackReplacement()
550 DCHECK_LT(slot_offset, static_cast<int32_t>(frame_size)); in MaybeDoOnStackReplacement()
568 frame_size, in MaybeDoOnStackReplacement()
/art/compiler/optimizing/
Doptimizing_cfi_test.cc71 const int frame_size = 64; in SetUpFrame() local
94 code_gen_->SetFrameSize(frame_size); in SetUpFrame()
Dcode_generator_arm64.cc1517 int frame_size = GetFrameSize(); in GenerateFrameEntry() local
1529 __ Str(kArtMethodRegister, MemOperand(sp, -frame_size, PreIndex)); in GenerateFrameEntry()
1531 __ Claim(frame_size); in GenerateFrameEntry()
1533 GetAssembler()->cfi().AdjustCFAOffset(frame_size); in GenerateFrameEntry()
1535 frame_size - GetCoreSpillSize()); in GenerateFrameEntry()
1537 frame_size - FrameEntrySpillSize()); in GenerateFrameEntry()
1552 int frame_size = GetFrameSize(); in GenerateFrameExit() local
1554 frame_size - FrameEntrySpillSize()); in GenerateFrameExit()
1556 frame_size - GetCoreSpillSize()); in GenerateFrameExit()
1557 __ Drop(frame_size); in GenerateFrameExit()
[all …]
/art/compiler/utils/
Dassembler_thumb_test.cc222 const int frame_size(jni_conv->FrameSize()); in TEST_F() local
228 __ BuildFrame(frame_size, mr_conv->MethodRegister(), callee_save_regs, mr_conv->EntrySpills()); in TEST_F()
286 __ 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/interpreter/
Dshadow_frame.h75 size_t frame_size = ShadowFrame::ComputeSize(num_vregs); \
76 void* alloca_mem = alloca(frame_size); \
/art/compiler/utils/mips64/
Dassembler_mips64.cc3590 void Mips64Assembler::BuildFrame(size_t frame_size, in BuildFrame() argument
3594 CHECK_ALIGNED(frame_size, kStackAlignment); in BuildFrame()
3598 IncreaseFrameSize(frame_size); in BuildFrame()
3601 int stack_offset = frame_size - kFramePointerSize; in BuildFrame()
3615 int32_t offset = frame_size + kFramePointerSize; in BuildFrame()
3635 void Mips64Assembler::RemoveFrame(size_t frame_size, in RemoveFrame() argument
3638 CHECK_ALIGNED(frame_size, kStackAlignment); in RemoveFrame()
3643 int stack_offset = frame_size - (callee_save_regs.size() * kFramePointerSize) - kFramePointerSize; in RemoveFrame()
3654 DecreaseFrameSize(frame_size); in RemoveFrame()
3662 cfi_.DefCFAOffset(frame_size); in RemoveFrame()
/art/compiler/utils/mips/
Dassembler_mips.cc4758 void MipsAssembler::BuildFrame(size_t frame_size, in BuildFrame() argument
4762 CHECK_ALIGNED(frame_size, kStackAlignment); in BuildFrame()
4766 IncreaseFrameSize(frame_size); in BuildFrame()
4769 int stack_offset = frame_size - kFramePointerSize; in BuildFrame()
4783 int32_t offset = frame_size + kFramePointerSize; in BuildFrame()
4802 void MipsAssembler::RemoveFrame(size_t frame_size, in RemoveFrame() argument
4805 CHECK_ALIGNED(frame_size, kStackAlignment); in RemoveFrame()
4810 int stack_offset = frame_size - (callee_save_regs.size() * kFramePointerSize) - kFramePointerSize; in RemoveFrame()
4821 bool exchange = IsInt<16>(static_cast<int32_t>(frame_size)); in RemoveFrame()
4827 DecreaseFrameSize(frame_size); // Single instruction in delay slot. in RemoveFrame()
[all …]
/art/oatdump/
Doatdump.cc1581 size_t frame_size, in GetVRegOffsetFromQuickCode() argument
1591 DCHECK_ALIGNED(frame_size, kStackAlignment); in GetVRegOffsetFromQuickCode()
1612 int locals_start = frame_size - spill_size - num_regs * sizeof(uint32_t); in GetVRegOffsetFromQuickCode()
1616 return frame_size + ((reg - num_regs) * sizeof(uint32_t)) in GetVRegOffsetFromQuickCode()

12