Home
last modified time | relevance | path

Searched refs:stack_index (Results 1 – 13 of 13) sorted by relevance

/art/compiler/optimizing/
Dlocations.h242 static uintptr_t EncodeStackIndex(intptr_t stack_index) { in EncodeStackIndex() argument
243 DCHECK(-kStackIndexBias <= stack_index); in EncodeStackIndex()
244 DCHECK(stack_index < kStackIndexBias); in EncodeStackIndex()
245 return static_cast<uintptr_t>(kStackIndexBias + stack_index); in EncodeStackIndex()
248 static Location StackSlot(intptr_t stack_index) { in StackSlot() argument
249 uintptr_t payload = EncodeStackIndex(stack_index); in StackSlot()
252 DCHECK_EQ(loc.GetStackIndex(), stack_index); in StackSlot()
260 static Location DoubleStackSlot(intptr_t stack_index) { in DoubleStackSlot() argument
261 uintptr_t payload = EncodeStackIndex(stack_index); in DoubleStackSlot()
264 DCHECK_EQ(loc.GetStackIndex(), stack_index); in DoubleStackSlot()
[all …]
Dcode_generator_x86.h360 size_t SaveCoreRegister(size_t stack_index, uint32_t reg_id) override;
361 size_t RestoreCoreRegister(size_t stack_index, uint32_t reg_id) override;
362 size_t SaveFloatingPointRegister(size_t stack_index, uint32_t reg_id) override;
363 size_t RestoreFloatingPointRegister(size_t stack_index, uint32_t reg_id) override;
Dcode_generator_x86_64.h343 size_t SaveCoreRegister(size_t stack_index, uint32_t reg_id) override;
344 size_t RestoreCoreRegister(size_t stack_index, uint32_t reg_id) override;
345 size_t SaveFloatingPointRegister(size_t stack_index, uint32_t reg_id) override;
346 size_t RestoreFloatingPointRegister(size_t stack_index, uint32_t reg_id) override;
Dcode_generator.h281 virtual size_t SaveCoreRegister(size_t stack_index, uint32_t reg_id) = 0;
283 virtual size_t RestoreCoreRegister(size_t stack_index, uint32_t reg_id) = 0;
285 virtual size_t SaveFloatingPointRegister(size_t stack_index, uint32_t reg_id) = 0;
286 virtual size_t RestoreFloatingPointRegister(size_t stack_index, uint32_t reg_id) = 0;
Dcode_generator_arm_vixl.h464 size_t SaveCoreRegister(size_t stack_index, uint32_t reg_id) override;
465 size_t RestoreCoreRegister(size_t stack_index, uint32_t reg_id) override;
466 size_t SaveFloatingPointRegister(size_t stack_index, uint32_t reg_id) override;
467 size_t RestoreFloatingPointRegister(size_t stack_index, uint32_t reg_id) override;
Dcode_generator_arm64.h596 size_t SaveCoreRegister(size_t stack_index, uint32_t reg_id) override;
597 size_t RestoreCoreRegister(size_t stack_index, uint32_t reg_id) override;
598 size_t SaveFloatingPointRegister(size_t stack_index, uint32_t reg_id) override;
599 size_t RestoreFloatingPointRegister(size_t stack_index, uint32_t reg_id) override;
Dcode_generator_x86_64.cc1293 size_t CodeGeneratorX86_64::SaveCoreRegister(size_t stack_index, uint32_t reg_id) { in SaveCoreRegister() argument
1294 __ movq(Address(CpuRegister(RSP), stack_index), CpuRegister(reg_id)); in SaveCoreRegister()
1298 size_t CodeGeneratorX86_64::RestoreCoreRegister(size_t stack_index, uint32_t reg_id) { in RestoreCoreRegister() argument
1299 __ movq(CpuRegister(reg_id), Address(CpuRegister(RSP), stack_index)); in RestoreCoreRegister()
1303 size_t CodeGeneratorX86_64::SaveFloatingPointRegister(size_t stack_index, uint32_t reg_id) { in SaveFloatingPointRegister() argument
1305 __ movups(Address(CpuRegister(RSP), stack_index), XmmRegister(reg_id)); in SaveFloatingPointRegister()
1307 __ movsd(Address(CpuRegister(RSP), stack_index), XmmRegister(reg_id)); in SaveFloatingPointRegister()
1312 size_t CodeGeneratorX86_64::RestoreFloatingPointRegister(size_t stack_index, uint32_t reg_id) { in RestoreFloatingPointRegister() argument
1314 __ movups(XmmRegister(reg_id), Address(CpuRegister(RSP), stack_index)); in RestoreFloatingPointRegister()
1316 __ movsd(XmmRegister(reg_id), Address(CpuRegister(RSP), stack_index)); in RestoreFloatingPointRegister()
Dcode_generator_arm_vixl.cc1039 size_t CodeGeneratorARMVIXL::SaveCoreRegister(size_t stack_index ATTRIBUTE_UNUSED, in SaveCoreRegister()
1046 size_t CodeGeneratorARMVIXL::RestoreCoreRegister(size_t stack_index ATTRIBUTE_UNUSED, in RestoreCoreRegister()
1052 size_t CodeGeneratorARMVIXL::SaveFloatingPointRegister(size_t stack_index ATTRIBUTE_UNUSED, in SaveFloatingPointRegister()
1058 size_t CodeGeneratorARMVIXL::RestoreFloatingPointRegister(size_t stack_index ATTRIBUTE_UNUSED, in RestoreFloatingPointRegister()
2338 uint32_t stack_index = stack_index_++; in GetNextLocation() local
2342 return Location::StackSlot(calling_convention.GetStackOffsetOf(stack_index)); in GetNextLocation()
2348 uint32_t stack_index = stack_index_; in GetNextLocation() local
2365 return Location::DoubleStackSlot(calling_convention.GetStackOffsetOf(stack_index)); in GetNextLocation()
2370 uint32_t stack_index = stack_index_++; in GetNextLocation() local
2377 return Location::StackSlot(calling_convention.GetStackOffsetOf(stack_index)); in GetNextLocation()
[all …]
Dcode_generator_x86.cc977 size_t CodeGeneratorX86::SaveCoreRegister(size_t stack_index, uint32_t reg_id) { in SaveCoreRegister() argument
978 __ movl(Address(ESP, stack_index), static_cast<Register>(reg_id)); in SaveCoreRegister()
982 size_t CodeGeneratorX86::RestoreCoreRegister(size_t stack_index, uint32_t reg_id) { in RestoreCoreRegister() argument
983 __ movl(static_cast<Register>(reg_id), Address(ESP, stack_index)); in RestoreCoreRegister()
987 size_t CodeGeneratorX86::SaveFloatingPointRegister(size_t stack_index, uint32_t reg_id) { in SaveFloatingPointRegister() argument
989 __ movups(Address(ESP, stack_index), XmmRegister(reg_id)); in SaveFloatingPointRegister()
991 __ movsd(Address(ESP, stack_index), XmmRegister(reg_id)); in SaveFloatingPointRegister()
996 size_t CodeGeneratorX86::RestoreFloatingPointRegister(size_t stack_index, uint32_t reg_id) { in RestoreFloatingPointRegister() argument
998 __ movups(XmmRegister(reg_id), Address(ESP, stack_index)); in RestoreFloatingPointRegister()
1000 __ movsd(XmmRegister(reg_id), Address(ESP, stack_index)); in RestoreFloatingPointRegister()
Dcode_generator_arm64.cc1385 size_t CodeGeneratorARM64::SaveCoreRegister(size_t stack_index, uint32_t reg_id) { in SaveCoreRegister() argument
1387 __ Str(reg, MemOperand(sp, stack_index)); in SaveCoreRegister()
1391 size_t CodeGeneratorARM64::RestoreCoreRegister(size_t stack_index, uint32_t reg_id) { in RestoreCoreRegister() argument
1393 __ Ldr(reg, MemOperand(sp, stack_index)); in RestoreCoreRegister()
1397 size_t CodeGeneratorARM64::SaveFloatingPointRegister(size_t stack_index ATTRIBUTE_UNUSED, in SaveFloatingPointRegister()
1404 size_t CodeGeneratorARM64::RestoreFloatingPointRegister(size_t stack_index ATTRIBUTE_UNUSED, in RestoreFloatingPointRegister()
/art/runtime/interpreter/mterp/arm64ng/
Dmain.S894 .macro LOOP_RANGE_OVER_SHORTY_LOADING_FPS dreg, sreg, shorty, arg_index, stack_index, finished
903 add \stack_index, \stack_index, #1
908 add \stack_index, \stack_index, #1
913 add \stack_index, \stack_index, #2
918 add \stack_index, \stack_index, #1
931 .macro LOOP_RANGE_OVER_FPs shorty, arg_index, stack_index, finished
940 add \stack_index, \stack_index, #1
945 add \stack_index, \stack_index, #1
949 add ip2, sp, \stack_index, uxtw #2
952 add \stack_index, \stack_index, #2
[all …]
/art/runtime/interpreter/mterp/x86_64ng/
Dmain.S459 .macro LOOP_RANGE_OVER_SHORTY_LOADING_XMMS xmm_reg, shorty, arg_index, stack_index, finished
470 addq MACRO_LITERAL(1), REG_VAR(stack_index)
475 addq MACRO_LITERAL(1), REG_VAR(stack_index)
480 addq MACRO_LITERAL(2), REG_VAR(stack_index)
485 addq MACRO_LITERAL(1), REG_VAR(stack_index)
498 .macro LOOP_RANGE_OVER_FPs shorty, arg_index, stack_index, finished
509 addq MACRO_LITERAL(1), REG_VAR(stack_index)
514 addq MACRO_LITERAL(1), REG_VAR(stack_index)
518 movq %rax, 8(%rsp, REG_VAR(stack_index), 4)
520 addq MACRO_LITERAL(2), REG_VAR(stack_index)
[all …]
/art/runtime/
Dthread.cc3885 size_t stack_index ATTRIBUTE_UNUSED, in VisitQuickFrameNonPrecise()
3939 void VisitStack(mirror::Object** ref, size_t stack_index, const StackVisitor* stack_visitor) in VisitQuickFramePrecise()
3941 const size_t stack_offset = stack_index * kFrameSlotSize; in VisitQuickFramePrecise()