Home
last modified time | relevance | path

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

12

/art/runtime/
Dimage.cc65 void ImageHeader::RelocateImage(off_t delta) { in RelocateImage() argument
66 CHECK_ALIGNED(delta, kPageSize) << " patch delta must be page aligned"; in RelocateImage()
67 image_begin_ += delta; in RelocateImage()
68 oat_file_begin_ += delta; in RelocateImage()
69 oat_data_begin_ += delta; in RelocateImage()
70 oat_data_end_ += delta; in RelocateImage()
71 oat_file_end_ += delta; in RelocateImage()
72 image_roots_ += delta; in RelocateImage()
73 patch_delta_ += delta; in RelocateImage()
75 image_methods_[i] += delta; in RelocateImage()
Dbarrier.cc45 void Barrier::Increment(Thread* self, int delta) { in Increment() argument
47 SetCountLocked(self, count_ + delta); in Increment()
61 bool Barrier::Increment(Thread* self, int delta, uint32_t timeout_ms) { in Increment() argument
63 SetCountLocked(self, count_ + delta); in Increment()
Dbarrier.h54 void Increment(Thread* self, int delta) LOCKS_EXCLUDED(lock_);
58 bool Increment(Thread* self, int delta, uint32_t timeout_ms) LOCKS_EXCLUDED(lock_);
Doat.cc344 void OatHeader::RelocateOat(off_t delta) { in RelocateOat() argument
346 CHECK_ALIGNED(delta, kPageSize); in RelocateOat()
347 image_patch_delta_ += delta; in RelocateOat()
349 image_file_location_oat_data_begin_ += delta; in RelocateOat()
/art/compiler/optimizing/
Dcode_generator_utils.cc70 uint64_t delta; in CalculateMagicAndShiftForDivRem() local
85 delta = abs_d - remainder2; in CalculateMagicAndShiftForDivRem()
86 } while (quotient1 < delta || (quotient1 == delta && remainder1 == 0)); in CalculateMagicAndShiftForDivRem()
/art/compiler/dwarf/
Ddebug_frame_opcode_writer.h48 int delta = FactorCodeOffset(absolute_pc - current_pc_); in AdvancePC() local
49 if (delta != 0) { in AdvancePC()
50 if (delta <= 0x3F) { in AdvancePC()
51 this->PushUint8(DW_CFA_advance_loc | delta); in AdvancePC()
52 } else if (delta <= UINT8_MAX) { in AdvancePC()
54 this->PushUint8(delta); in AdvancePC()
55 } else if (delta <= UINT16_MAX) { in AdvancePC()
57 this->PushUint16(delta); in AdvancePC()
60 this->PushUint32(delta); in AdvancePC()
76 void ALWAYS_INLINE AdjustCFAOffset(int delta) { in AdjustCFAOffset() argument
[all …]
Ddebug_line_opcode_writer.h49 uint64_t delta = FactorCodeOffset(absolute_address - current_address_); in AdvancePC() local
50 if (delta <= INT32_MAX) { in AdvancePC()
52 this->PushUleb128(static_cast<int>(delta)); in AdvancePC()
61 int delta = absolute_line - current_line_; in AdvanceLine() local
62 if (delta != 0) { in AdvanceLine()
64 this->PushSleb128(delta); in AdvanceLine()
/art/patchoat/
Dpatchoat.h45 static bool Patch(File* oat_in, off_t delta, File* oat_out, TimingLogger* timings,
50 static bool Patch(const std::string& art_location, off_t delta, File* art_out, InstructionSet isa,
55 off_t delta, File* oat_out, File* art_out, InstructionSet isa,
62 PatchOat(ElfFile* oat_file, off_t delta, TimingLogger* timings) in PatchOat() argument
63 : oat_file_(oat_file), image_(nullptr), bitmap_(nullptr), heap_(nullptr), delta_(delta), in PatchOat()
66 MemMap* heap, off_t delta, TimingLogger* timings) in PatchOat() argument
68 delta_(delta), isa_(isa), timings_(timings) {} in PatchOat()
70 gc::accounting::ContinuousSpaceBitmap* bitmap, MemMap* heap, off_t delta, in PatchOat() argument
73 delta_(delta), isa_(isa), timings_(timings) {} in PatchOat()
Dpatchoat.cc95 bool PatchOat::Patch(const std::string& image_location, off_t delta, in Patch() argument
164 delta, timings); in Patch()
178 bool PatchOat::Patch(File* input_oat, const std::string& image_location, off_t delta, in Patch() argument
286 delta, timings); in Patch()
658 bool PatchOat::Patch(File* input_oat, off_t delta, File* output_oat, TimingLogger* timings, in Patch() argument
689 PatchOat p(elf.release(), delta, timings); in Patch()
874 static bool ReadBaseDelta(const char* name, off_t* delta, std::string* error_msg) { in ReadBaseDelta() argument
876 CHECK(delta != nullptr); in ReadBaseDelta()
898 *delta = hdr.GetPatchDelta(); in ReadBaseDelta()
/art/compiler/dex/quick/mips/
Dassemble_mips.cc677 int delta = offset2 - offset1; in AssembleInstructions() local
678 if ((delta & 0xffff) == delta && ((delta & 0x8000) == 0)) { in AssembleInstructions()
680 lir->operands[1] = delta; in AssembleInstructions()
683 delta); in AssembleInstructions()
712 int delta = offset2 - offset1; in AssembleInstructions() local
713 lir->operands[1] = delta & 0xffff; in AssembleInstructions()
718 int delta = offset2 - offset1; in AssembleInstructions() local
719 lir->operands[1] = (delta >> 16) & 0xffff; in AssembleInstructions()
724 int delta = target - pc; in AssembleInstructions() local
725 if (delta & 0x3) { in AssembleInstructions()
[all …]
/art/tools/dexfuzz/src/dexfuzz/program/mutators/
DBranchShifter.java120 int delta = 0; in generateMutation() local
125 delta = 0; in generateMutation()
126 while (delta == 0) { in generateMutation()
127 delta = (rng.nextInt(5) - 2); in generateMutation()
130 newTargetIdx = oldTargetInsnIdx + delta; in generateMutation()
DSwitchBranchShifter.java121 int delta = 0; in generateMutation() local
126 delta = 0; in generateMutation()
127 while (delta == 0) { in generateMutation()
128 delta = (rng.nextInt(5) - 2); in generateMutation()
131 newTargetIdx = oldTargetInsnIdx + delta; in generateMutation()
DTryBlockShifter.java142 int delta = 0; in generateMutation() local
147 delta = 0; in generateMutation()
148 while (delta == 0) { in generateMutation()
149 delta = (rng.nextInt(5) - 2); in generateMutation()
152 newInsnIdx = oldInsnIdx + delta; in generateMutation()
DInstructionSwapper.java100 int delta = rng.nextInt(5) - 1; in generateMutation() local
102 if (delta == 0) { in generateMutation()
106 swapWithInsnIdx = swapInsnIdx + delta; in generateMutation()
/art/test/082-inline-execute/src/junit/framework/
DAssert.java98 static public void assertEquals(String message, double expected, double actual, double delta) { in assertEquals() argument
101 if (!(Math.abs(expected-actual) <= delta)) in assertEquals()
108 static public void assertEquals(double expected, double actual, double delta) { in assertEquals() argument
109 assertEquals(null, expected, actual, delta); in assertEquals()
116 static public void assertEquals(String message, float expected, float actual, float delta) { in assertEquals() argument
119 if (!(Math.abs(expected - actual) <= delta)) in assertEquals()
126 static public void assertEquals(float expected, float actual, float delta) { in assertEquals() argument
127 assertEquals(null, expected, actual, delta); in assertEquals()
/art/test/021-string2/src/junit/framework/
DAssert.java98 static public void assertEquals(String message, double expected, double actual, double delta) { in assertEquals() argument
101 if (!(Math.abs(expected-actual) <= delta)) in assertEquals()
108 static public void assertEquals(double expected, double actual, double delta) { in assertEquals() argument
109 assertEquals(null, expected, actual, delta); in assertEquals()
116 static public void assertEquals(String message, float expected, float actual, float delta) { in assertEquals() argument
119 if (!(Math.abs(expected - actual) <= delta)) in assertEquals()
126 static public void assertEquals(float expected, float actual, float delta) { in assertEquals() argument
127 assertEquals(null, expected, actual, delta); in assertEquals()
/art/compiler/dex/quick/arm/
Dassemble_arm.cc1293 int32_t delta = target - pc; in AssembleLIR() local
1299 delta &= ~0x3; in AssembleLIR()
1301 DCHECK_EQ((delta & 0x3), 0); in AssembleLIR()
1303 if (kIsDebugBuild && (((lir->opcode == kThumbAddPcRel) && (delta > 1020)) || in AssembleLIR()
1304 ((lir->opcode == kThumbLdrPcRel) && (delta > 1020)))) { in AssembleLIR()
1306 LOG(FATAL) << "Unexpected pc-rel offset " << delta; in AssembleLIR()
1309 if (((lir->opcode == kThumb2LdrPcRel12) && (delta > 4091)) || in AssembleLIR()
1310 ((lir->opcode == kThumb2LdrdPcRel8) && (delta > 1020)) || in AssembleLIR()
1311 ((lir->opcode == kThumb2Vldrs) && (delta > 1020)) || in AssembleLIR()
1312 ((lir->opcode == kThumb2Vldrd) && (delta > 1020))) { in AssembleLIR()
[all …]
/art/runtime/gc/accounting/
Dcard_table.cc82 int delta = kCardDirty - biased_byte; in Create() local
83 offset = delta + (delta < 0 ? 0x100 : 0); in Create()
Dcard_table_test.cc109 const size_t delta = std::min(static_cast<size_t>(HeapLimit() - HeapBegin()), in TEST_F() local
113 …for (uint8_t* cstart = HeapBegin(); cstart < HeapBegin() + delta; cstart += CardTable::kCardSize) { in TEST_F()
116 for (uint8_t* cend = HeapLimit() - delta; cend < HeapLimit(); cend += CardTable::kCardSize) { in TEST_F()
/art/compiler/
Delf_writer_test.cc99 constexpr int32_t delta = 0x11235813; in TEST_F() local
115 *reinterpret_cast<UnalignedAddress*>(expected.data() + location) += delta; in TEST_F()
121 oat_patches.data(), oat_patches.data() + oat_patches.size(), delta, in TEST_F()
/art/compiler/dex/quick/arm64/
Dassemble_arm64.cc911 int32_t delta = target - pc; in AssembleLIR() local
912 DCHECK_EQ(delta & 0x3, 0); in AssembleLIR()
913 if (!IS_SIGNED_IMM26(delta >> 2)) { in AssembleLIR()
916 lir->operands[0] = delta >> 2; in AssembleLIR()
935 int32_t delta = target - pc; in AssembleLIR() local
936 DCHECK_EQ(delta & 0x3, 0); in AssembleLIR()
937 if (!IS_SIGNED_IMM19(delta >> 2)) { in AssembleLIR()
940 lir->operands[1] = delta >> 2; in AssembleLIR()
967 int32_t delta = target - pc; in AssembleLIR() local
968 DCHECK_EQ(delta & 0x3, 0); in AssembleLIR()
[all …]
/art/compiler/utils/arm/
Dassembler_thumb2.h565 void Move(int32_t delta) { in Move() argument
567 CHECK_GT(delta, 0); in Move()
568 location_ += delta; in Move()
569 target_ += delta; in Move()
576 bool Relocate(uint32_t oldlocation, int32_t delta) { in Relocate() argument
578 location_ += delta; in Relocate()
582 target_ += delta; in Relocate()
642 int32_t delta = target_ - location_ - 4; in CalculateSize() local
643 if (delta < 0) { in CalculateSize()
644 delta = -delta; in CalculateSize()
[all …]
/art/compiler/utils/
Dassembler.cc95 ptrdiff_t delta = new_contents - contents_; in ExtendCapacity() local
100 cursor_ += delta; in ExtendCapacity()
/art/runtime/gc/collector/
Dmark_sweep.cc967 uintptr_t delta = (end - begin) / n; in RecursiveMark() local
968 delta = RoundUp(delta, KB); in RecursiveMark()
969 if (delta < 16 * KB) delta = end - begin; in RecursiveMark()
970 begin += delta; in RecursiveMark()
1296 const size_t delta = std::min(static_cast<size_t>(end - it), chunk_size); in ProcessMarkStackParallel() local
1297 thread_pool->AddTask(self, new MarkStackTask<false>(thread_pool, this, delta, it)); in ProcessMarkStackParallel()
1298 it += delta; in ProcessMarkStackParallel()
/art/runtime/base/
Dhash_set_test.cc174 size_t delta = std::abs(static_cast<ssize_t>(target_size) - in TEST_F() local
182 } else if (n % target_size < delta) { in TEST_F()

12