Home
last modified time | relevance | path

Searched refs:length_ (Results 1 – 12 of 12) sorted by relevance

/art/runtime/base/
Dstringpiece.cc28 CHECK_LT(i, length_); in operator []()
34 target->assign(ptr_, length_); in CopyToString()
38 size_type ret = std::min(length_ - pos, n); in copy()
44 if (length_ == 0 || pos > static_cast<size_type>(length_)) { in find()
47 const char* result = std::search(ptr_ + pos, ptr_ + length_, s.ptr_, s.ptr_ + s.length_); in find()
49 return xpos + s.length_ <= length_ ? xpos : npos; in find()
53 int r = memcmp(ptr_, x.ptr_, std::min(length_, x.length_)); in compare()
55 if (length_ < x.length_) r = -1; in compare()
56 else if (length_ > x.length_) r = +1; in compare()
62 if (length_ == 0 || pos >= length_) { in find()
[all …]
Dstringpiece.h50 StringPiece() : ptr_(nullptr), length_(0) { } in StringPiece()
52 : ptr_(str), length_((str == nullptr) ? 0 : strlen(str)) { } in StringPiece()
54 : ptr_(str.data()), length_(str.size()) { } in StringPiece()
55 StringPiece(const char* offset, size_t len) : ptr_(offset), length_(len) { } in StringPiece()
62 size_type size() const { return length_; } in size()
63 size_type length() const { return length_; } in length()
64 bool empty() const { return length_ == 0; } in empty()
68 length_ = 0; in clear()
72 length_ = len; in set()
77 length_ = strlen(str); in set()
[all …]
/art/runtime/hprof/
Dhprof.cc150 EndianOutput() : length_(0), sum_length_(0), max_length_(0), started_(false) {} in EndianOutput()
154 if (length_ > 0) { in StartNewRecord()
157 DCHECK_EQ(length_, 0U); in StartNewRecord()
168 length_ - sizeof(uint8_t) - 2 * sizeof(uint32_t)); in EndRecord()
173 sum_length_ += length_; in EndRecord()
174 max_length_ = std::max(max_length_, length_); in EndRecord()
175 length_ = 0; in EndRecord()
216 length_ += count; in AddU1List()
220 length_ += count * sizeof(uint16_t); in AddU2List()
224 length_ += count * sizeof(uint32_t); in AddU4List()
[all …]
/art/compiler/utils/x86/
Dassembler_x86.h71 CHECK_GE(length_, 2); in disp8()
72 return static_cast<int8_t>(encoding_[length_ - 1]); in disp8()
76 CHECK_GE(length_, 5); in disp32()
78 memcpy(&value, &encoding_[length_ - 4], sizeof(value)); in disp32()
89 Operand() : length_(0) { } in Operand()
94 length_ = 1; in SetModRM()
98 CHECK_EQ(length_, 1); in SetSIB()
101 length_ = 2; in SetSIB()
105 CHECK(length_ == 1 || length_ == 2); in SetDisp8()
106 encoding_[length_++] = static_cast<uint8_t>(disp); in SetDisp8()
[all …]
Dassembler_x86.cc145 EmitLabel(lbl, dst.length_ + 5); in movl()
1622 const int length = operand.length_; in EmitOperand()
/art/compiler/utils/x86_64/
Dassembler_x86_64.h84 CHECK_GE(length_, 2); in disp8()
85 return static_cast<int8_t>(encoding_[length_ - 1]); in disp8()
89 CHECK_GE(length_, 5); in disp32()
91 memcpy(&value, &encoding_[length_ - 4], sizeof(value)); in disp32()
107 Operand() : rex_(0), length_(0), fixup_(nullptr) { } in Operand()
115 length_ = 1; in SetModRM()
119 CHECK_EQ(length_, 1); in SetSIB()
129 length_ = 2; in SetSIB()
133 CHECK(length_ == 1 || length_ == 2); in SetDisp8()
134 encoding_[length_++] = static_cast<uint8_t>(disp); in SetDisp8()
[all …]
Dassembler_x86_64.cc2111 const int length = operand.length_; in EmitOperand()
/art/runtime/mirror/
Darray.h53 return GetField32<kVerifyFlags>(OFFSET_OF_OBJECT_MEMBER(Array, length_)); in GetLength()
60 SetField32<false, false, kVerifyNone>(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); in SetLength()
64 return OFFSET_OF_OBJECT_MEMBER(Array, length_); in LengthOffset()
97 int32_t length_; variable
Darray-inl.h100 explicit SetLengthVisitor(int32_t length) : length_(length) { in SetLengthVisitor()
109 array->SetLength(length_); in operator()
113 const int32_t length_;
/art/compiler/dex/quick/
Dgen_common.cc220 index_(index_in), length_(length_in) { in GenArrayBoundsCheck()
227 m2l_->CallRuntimeHelperRegReg(kQuickThrowArrayBounds, index_, length_, true); in GenArrayBoundsCheck()
232 const RegStorage length_; in GenArrayBoundsCheck() member in art::Mir2Lir::GenArrayBoundsCheck::ArrayBoundsCheckSlowPath
244 index_(index_in), length_(length_in) { in GenArrayBoundsCheck()
255 m2l_->OpRegCopy(arg1_32, length_); in GenArrayBoundsCheck()
262 const RegStorage length_; in GenArrayBoundsCheck() member in art::Mir2Lir::GenArrayBoundsCheck::ArrayBoundsCheckSlowPath
/art/compiler/
Dimage_writer.h317 size_t length_; member
Dimage_writer.cc457 object_size = it->second.length_; in AssignImageBinSlot()