Home
last modified time | relevance | path

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

123

/external/v8/src/arm/
Dassembler-arm-inl.h183 int code_target_index = branch->GetBranchOffset() / kInstrSize; in relative_code_target_object_handle_at()
233 pc_ += kInstrSize; in emit()
257 Address candidate = pc - 2 * kInstrSize; in target_address_from_return_address()
263 candidate -= 1 * kInstrSize; in target_address_from_return_address()
265 IsMovT(Memory<int32_t>(candidate + kInstrSize))); in target_address_from_return_address()
267 candidate -= 3 * kInstrSize; in target_address_from_return_address()
269 IsOrrImmed(Memory<int32_t>(candidate + kInstrSize)) && in target_address_from_return_address()
270 IsOrrImmed(Memory<int32_t>(candidate + 2 * kInstrSize)) && in target_address_from_return_address()
271 IsOrrImmed(Memory<int32_t>(candidate + 3 * kInstrSize))); in target_address_from_return_address()
281 return pc + kInstrSize * 2; in return_address_from_call_start()
[all …]
Dconstants-arm.h440 constexpr uint8_t kInstrSize = 4; variable
619 return SImmed24Value() * kInstrSize; in GetBranchOffset()
624 DCHECK_EQ(branch_offset % kInstrSize, 0); in SetBranchOffset()
625 int32_t new_imm24 = branch_offset / kInstrSize; in SetBranchOffset()
Dcode-stubs-arm.cc230 tasm, TurboAssembler::kCallStubSize + 2 * kInstrSize); in MaybeCallEntryHookDelayed()
242 masm, TurboAssembler::kCallStubSize + 2 * kInstrSize); in MaybeCallEntryHook()
252 const int32_t kReturnAddressDistanceFromFunctionStart = 3 * kInstrSize; in Generate()
/external/v8/src/mips/
Dassembler-mips-inl.h104 return pc_ + (Assembler::kInstructionsFor32BitConstant - 1) * kInstrSize; in target_address_address()
106 return pc_ + Assembler::kInstructionsFor32BitConstant * kInstrSize; in target_address_address()
128 instruction_payload - (kInstructionsFor32BitConstant - 1) * kInstrSize, in deserialization_set_special_target_at()
132 instruction_payload - kInstructionsFor32BitConstant * kInstrSize, in deserialization_set_special_target_at()
144 Instr instr1 = Assembler::instr_at(pc + 0 * kInstrSize); in set_target_internal_reference_encoded_at()
145 Instr instr2 = Assembler::instr_at(pc + 1 * kInstrSize); in set_target_internal_reference_encoded_at()
157 Assembler::instr_at_put(pc + 0 * kInstrSize, instr1 | lui_offset_u); in set_target_internal_reference_encoded_at()
158 Assembler::instr_at_put(pc + 1 * kInstrSize, instr2 | jic_offset_u); in set_target_internal_reference_encoded_at()
161 Assembler::instr_at_put(pc + 0 * kInstrSize, in set_target_internal_reference_encoded_at()
163 Assembler::instr_at_put(pc + 1 * kInstrSize, instr2 | (imm & kImm16Mask)); in set_target_internal_reference_encoded_at()
[all …]
Dassembler-mips.cc864 Instr instr_lui = instr_at(pos + 2 * kInstrSize); in target_at()
865 Instr instr_ori = instr_at(pos + 3 * kInstrSize); in target_at()
877 if (IsNal(instr_at(pos + kInstrSize))) { in target_at()
879 Instr instr_lui = instr_at(pos + 0 * kInstrSize); in target_at()
880 Instr instr_ori = instr_at(pos + 2 * kInstrSize); in target_at()
891 Instr instr1 = instr_at(pos + 0 * kInstrSize); in target_at()
892 Instr instr2 = instr_at(pos + 1 * kInstrSize); in target_at()
954 Instr instr_lui = instr_at(pos + 2 * kInstrSize); in target_at_put()
955 Instr instr_ori = instr_at(pos + 3 * kInstrSize); in target_at_put()
967 Instr instr_j = instr_at(pos + 5 * kInstrSize); in target_at_put()
[all …]
Ddeoptimizer-mips.cc240 const int Deoptimizer::table_entry_size_ = 2 * kInstrSize;
242 const int Deoptimizer::table_entry_size_ = 3 * kInstrSize;
255 (1 << (kImm26Bits - 2)) / (table_entry_size_ / kInstrSize); in GeneratePrologue()
258 (1 << (kImm16Bits - 2)) / (table_entry_size_ / kInstrSize); in GeneratePrologue()
Dsimulator-mips.cc398 sim_->set_pc(sim_->get_pc() + kInstrSize); in Debug()
565 end = cur + (10 * kInstrSize); in Debug()
574 end = cur + (10 * kInstrSize); in Debug()
582 end = cur + (value * kInstrSize); in Debug()
590 end = cur + (value2 * kInstrSize); in Debug()
598 cur += kInstrSize; in Debug()
625 intptr_t stop_pc = sim_->get_pc() - 2 * kInstrSize; in Debug()
628 reinterpret_cast<Instruction*>(stop_pc + kInstrSize); in Debug()
697 end = cur + (10 * kInstrSize); in Debug()
703 end = cur + (10 * kInstrSize); in Debug()
[all …]
Dconstants-mips.h1223 constexpr uint8_t kInstrSize = 4; variable
1687 const int kCArgsSlotsSize = kCArgSlotCount * kInstrSize;
1690 const int kJSArgsSlotsSize = 0 * kInstrSize;
1692 const int kBArgsSlotsSize = 0 * kInstrSize;
1694 const int kBranchReturnOffset = 2 * kInstrSize;
Dassembler-mips.h528 return pc_offset() - L->pos() < kMaxBranchOffset - 4 * kInstrSize; in is_near_pre_r6()
532 return pc_offset() - L->pos() < kMaxCompactBranchOffset - 4 * kInstrSize; in is_near_r6()
611 static constexpr int kBranchPCOffset = kInstrSize;
616 static constexpr int kLongBranchPCOffset = 3 * kInstrSize;
622 static constexpr int kOptimizedBranchAndLinkLongReturnOffset = 4 * kInstrSize;
642 static constexpr int kCallTargetAddressOffset = 2 * kInstrSize;
644 static constexpr int kCallTargetAddressOffset = 4 * kInstrSize;
658 IsMipsArchVariant(kMips32r6) ? 2 * kInstrSize : 7 * kInstrSize;
1684 return SizeOfCodeGeneratedSince(label) / kInstrSize; in InstructionsGeneratedSince()
1933 if (pc_offset() >= next_buffer_check_ - extra_instructions * kInstrSize) {
[all …]
/external/v8/src/wasm/
Djump-table-assembler.h100 static constexpr int kJumpTableLineSize = 5 * kInstrSize;
101 static constexpr int kJumpTableSlotSize = 5 * kInstrSize;
103 static constexpr int kJumpTableLineSize = 3 * kInstrSize;
104 static constexpr int kJumpTableSlotSize = 3 * kInstrSize;
118 static constexpr int kJumpTableLineSize = 6 * kInstrSize;
119 static constexpr int kJumpTableSlotSize = 6 * kInstrSize;
121 static constexpr int kJumpTableLineSize = 8 * kInstrSize;
122 static constexpr int kJumpTableSlotSize = 8 * kInstrSize;
Djump-table-assembler.cc93 DCHECK_EQ(0, bytes % kInstrSize);
94 for (; bytes > 0; bytes -= kInstrSize) {
115 DCHECK_EQ(0, bytes % kInstrSize);
116 for (; bytes > 0; bytes -= kInstrSize) {
159 DCHECK_EQ(0, bytes % kInstrSize);
160 for (; bytes > 0; bytes -= kInstrSize) {
/external/v8/src/ppc/
Dassembler-ppc-inl.h143 IsConstantPoolLoadEnd(pc - 3 * kInstrSize, &access)) { in target_address_from_return_address()
148 return pc - (len + 2) * kInstrSize; in target_address_from_return_address()
161 return pc + (len + 2) * kInstrSize; in return_address_from_call_start()
280 Instr instr2 = instr_at(pc + kInstrSize); in target_address_at()
284 Instr instr4 = instr_at(pc + (3 * kInstrSize)); in target_address_at()
285 Instr instr5 = instr_at(pc + (4 * kInstrSize)); in target_address_at()
324 opcode = instr_at(pc + kInstrSize) & kOpcodeMask; in IsConstantPoolLoadStart()
343 instr = instr_at(pc - kInstrSize); in IsConstantPoolLoadEnd()
371 offset += SIGN_EXT_IMM16(instr_at(pc + kInstrSize) & kImm16Mask); in GetConstantPoolOffset()
398 Instr instr2 = instr_at(pc + kInstrSize); in PatchConstantPoolAccessInstruction()
[all …]
Dcode-stubs-ppc.cc225 14 * kInstrSize); in MaybeCallEntryHookDelayed()
227 11 * kInstrSize); in MaybeCallEntryHookDelayed()
241 14 * kInstrSize); in MaybeCallEntryHook()
243 11 * kInstrSize); in MaybeCallEntryHook()
258 Assembler::kCallTargetAddressOffset + 3 * kInstrSize; in Generate()
Dassembler-ppc.cc284 DCHECK_EQ(pc_offset() & (kInstrSize - 1), 0); in Align()
474 if (imm26 == kInstrSize && !(instr & kLKMask)) { in target_at_put()
487 if (imm16 == kInstrSize && !(instr & kLKMask)) { in target_at_put()
500 Register dst = Register::from_code(instr_at(pos + kInstrSize)); in target_at_put()
510 Instr operands = instr_at(pos + kInstrSize); in target_at_put()
514 ? static_cast<int32_t>(instr_at(pos + 2 * kInstrSize)) in target_at_put()
526 Register dst = Register::from_code(instr_at(pos + kInstrSize)); in target_at_put()
537 kPointerSize / kInstrSize); in target_at_put()
2112 BlockTrampolinePoolBefore(pc_offset() + instructions * kInstrSize); in BlockTrampolinePoolFor()
2130 int size = tracked_branch_count_ * kInstrSize; in CheckTrampolinePool()
[all …]
Dassembler-ppc.h634 (kMovInstructions + 2) * kInstrSize;
809 int cmpi_pos = pc_offset() - kInstrSize; in cmpi_optimization()
813 int xpos = cmpi_pos - kInstrSize; in cmpi_optimization()
822 pc_ -= kInstrSize; in cmpi_optimization()
826 pc_ -= kInstrSize; in cmpi_optimization()
829 pc_ -= kInstrSize; in cmpi_optimization()
1311 return SizeOfCodeGeneratedSince(label) / kInstrSize; in InstructionsGeneratedSince()
1539 pc_ += kInstrSize; in emit()
1619 static constexpr int kTrampolineSlotsSize = kInstrSize;
1621 static constexpr int kMaxBlockTrampolineSectionSize = 64 * kInstrSize;
Dsimulator-ppc.cc76 char* msg = *reinterpret_cast<char**>(sim_->get_pc() + kInstrSize); in Stop()
87 sim_->set_pc(sim_->get_pc() + kInstrSize + kPointerSize); in Stop()
235 sim_->set_pc(sim_->get_pc() + kInstrSize); in Debug()
259 sim_->set_pc(sim_->get_pc() + kInstrSize); in Debug()
432 end = cur + (10 * kInstrSize); in Debug()
441 end = cur + (10 * kInstrSize); in Debug()
449 end = cur + (value * kInstrSize); in Debug()
457 end = cur + (value2 * kInstrSize); in Debug()
500 intptr_t stop_pc = sim_->get_pc() - (kInstrSize + kPointerSize); in Debug()
503 reinterpret_cast<Instruction*>(stop_pc + kInstrSize); in Debug()
[all …]
/external/v8/src/mips64/
Dassembler-mips64-inl.h99 return pc_ + Assembler::kInstructionsFor64BitConstant * kInstrSize; in target_address_address()
119 instruction_payload - kInstructionsFor64BitConstant * kInstrSize, in deserialization_set_special_target_at()
131 Instr instr = Assembler::instr_at(pc + 0 * kInstrSize); in set_target_internal_reference_encoded_at()
198 Instr instr = Assembler::instr_at(pc_ + 0 * kInstrSize); in target_internal_reference()
282 pc_ += kInstrSize; in CheckForEmitInForbiddenSlot()
295 pc_ += kInstrSize; in EmitHelper()
300 pc_ += kInstrSize; in EmitHelper()
321 if (reinterpret_cast<intptr_t>(pc_) % kInstrSize == 0) { in EmitHelper()
Dassembler-mips64.cc798 Instr instr_lui = instr_at(pos + 2 * kInstrSize); in target_at()
799 Instr instr_ori = instr_at(pos + 3 * kInstrSize); in target_at()
810 if (IsNal(instr_at(pos + kInstrSize))) { in target_at()
812 Instr instr_lui = instr_at(pos + 0 * kInstrSize); in target_at()
813 Instr instr_ori = instr_at(pos + 2 * kInstrSize); in target_at()
824 Instr instr_lui = instr_at(pos + 0 * kInstrSize); in target_at()
825 Instr instr_ori = instr_at(pos + 1 * kInstrSize); in target_at()
826 Instr instr_ori2 = instr_at(pos + 3 * kInstrSize); in target_at()
897 if (IsNal(instr_at(pos + kInstrSize))) { in target_at_put()
898 Instr instr_lui = instr_at(pos + 0 * kInstrSize); in target_at_put()
[all …]
Ddeoptimizer-mips64.cc238 const int Deoptimizer::table_entry_size_ = 2 * kInstrSize;
240 const int Deoptimizer::table_entry_size_ = 3 * kInstrSize;
252 (1 << (kImm26Bits - 2)) / (table_entry_size_ / kInstrSize); in GeneratePrologue()
255 (1 << (kImm16Bits - 2)) / (table_entry_size_ / kInstrSize); in GeneratePrologue()
Dsimulator-mips64.cc363 sim_->set_pc(sim_->get_pc() + kInstrSize); in Debug()
497 end = cur + (10 * kInstrSize); in Debug()
506 end = cur + (10 * kInstrSize); in Debug()
514 end = cur + (value * kInstrSize); in Debug()
522 end = cur + (value2 * kInstrSize); in Debug()
530 cur += kInstrSize; in Debug()
557 intptr_t stop_pc = sim_->get_pc() - 2 * kInstrSize; in Debug()
560 reinterpret_cast<Instruction*>(stop_pc + kInstrSize); in Debug()
629 end = cur + (10 * kInstrSize); in Debug()
635 end = cur + (10 * kInstrSize); in Debug()
[all …]
Ddisasm-mips64.cc1082 static_cast<void*>(reinterpret_cast<int32_t*>(instr + kInstrSize)), in DecodeBreakInstr()
1084 *reinterpret_cast<char**>(instr + kInstrSize))); in DecodeBreakInstr()
1086 return 3 * kInstrSize; in DecodeBreakInstr()
1089 return kInstrSize; in DecodeBreakInstr()
1899 return kInstrSize; in DecodeTypeRegister()
3024 return kInstrSize; in InstructionDecode()
/external/v8/src/arm64/
Dinstructions-arm64.h107 return InstructionAtOffset(count * static_cast<int>(kInstrSize));
111 return InstructionAtOffset(count * static_cast<int>(kInstrSize));
333 kInstrSize; in ImmBranchRange()
421 DCHECK(check == NO_CHECK || IsAligned(offset, kInstrSize));
428 DCHECK(check == NO_CHECK || IsAligned(offset, kInstrSize));
536 const unsigned kPrintfArgCountOffset = 1 * kInstrSize;
537 const unsigned kPrintfArgPatternListOffset = 2 * kInstrSize;
538 const unsigned kPrintfLength = 3 * kInstrSize;
562 const unsigned kDebugCodeOffset = 1 * kInstrSize;
563 const unsigned kDebugParamsOffset = 2 * kInstrSize;
[all …]
Dinstructions-arm64.cc162 kInstrSize * 8); in CalcLSDataSize()
263 DCHECK(IsAligned(DistanceTo(target), kInstrSize)); in SetBranchImmTarget()
298 DCHECK(IsAligned(DistanceTo(target), kInstrSize)); in SetUnresolvedInternalReferenceImmTarget()
313 DCHECK(IsAligned(DistanceTo(source), kInstrSize)); in SetImmLLiteral()
Dassembler-arm64-inl.h552 DCHECK_EQ(instr->ImmPCOffset() % kInstrSize, 0);
573 Address candidate = pc - 2 * kInstrSize;
601 Assembler::FlushICache(location, kInstrSize);
638 Assembler::FlushICache(pc, kInstrSize);
876 DCHECK(IsAligned(offset, kInstrSize));
1094 DCHECK((LSSize_offset + LSSize_width) == (kInstrSize * 8));
/external/swiftshader/third_party/subzero/src/DartARM32/
Dassembler_arm.cc2178 const int32_t or1 = region.Load<int32_t>(position + 1*Instr::kInstrSize); in ProcessARMv6()
2179 const int32_t or2 = region.Load<int32_t>(position + 2*Instr::kInstrSize); in ProcessARMv6()
2180 const int32_t or3 = region.Load<int32_t>(position + 3*Instr::kInstrSize); in ProcessARMv6()
2181 const int32_t bx = region.Load<int32_t>(position + 4*Instr::kInstrSize); in ProcessARMv6()
2198 region.Store<int32_t>(position + 0 * Instr::kInstrSize, patched_mov); in ProcessARMv6()
2199 region.Store<int32_t>(position + 1 * Instr::kInstrSize, patched_or1); in ProcessARMv6()
2200 region.Store<int32_t>(position + 2 * Instr::kInstrSize, patched_or2); in ProcessARMv6()
2201 region.Store<int32_t>(position + 3 * Instr::kInstrSize, patched_or3); in ProcessARMv6()
2217 const int32_t movt = region.Load<int32_t>(position + Instr::kInstrSize); in ProcessARMv7()
2218 const int32_t bx = region.Load<int32_t>(position + 2 * Instr::kInstrSize); in ProcessARMv7()
[all …]

123