Searched refs:length (Results 1 - 25 of 116) sorted by path

12345

/art/compiler/dex/
H A Dmir_graph.cc138 * Parse an instruction, return the length of the instruction
1337 int length = str.length() + 1; local
1338 ret = static_cast<char*>(arena_->Alloc(length, kArenaAllocDFInfo));
1339 strncpy(ret, str.c_str(), length);
/art/compiler/dex/quick/
H A Dgen_common.cc84 void Mir2Lir::GenArrayBoundsCheck(RegStorage index, RegStorage length) { argument
87 ArrayBoundsCheckSlowPath(Mir2Lir* m2l, LIR* branch, RegStorage index, RegStorage length) argument
89 index_(index), length_(length) {
104 LIR* branch = OpCmpBranch(kCondUge, index, length, nullptr);
105 AddSlowPath(new (arena_) ArrayBoundsCheckSlowPath(this, branch, index, length));
108 void Mir2Lir::GenArrayBoundsCheck(int index, RegStorage length) { argument
111 ArrayBoundsCheckSlowPath(Mir2Lir* m2l, LIR* branch, int index, RegStorage length) argument
113 index_(index), length_(length) {
134 LIR* branch = OpCmpImmBranch(kCondLs, length, index, nullptr);
135 AddSlowPath(new (arena_) ArrayBoundsCheckSlowPath(this, branch, index, length));
[all...]
H A Dmir_to_lir.h831 void GenArrayBoundsCheck(RegStorage index, RegStorage length);
832 void GenArrayBoundsCheck(int32_t index, RegStorage length);
/art/compiler/dex/quick/x86/
H A Dtarget_x86.cc1125 // If the length of the copy is > 128 characters (256 bytes) or negative then go slow path.
1372 // The length of the string should be greater than the start index.
1523 // Augmentation length: 1.
1556 // Set the length of the CIE inside the generated bytes.
1557 uint32_t length = cfi_info->size() - 4; local
1558 (*cfi_info)[0] = length;
1559 (*cfi_info)[1] = length >> 8;
1560 (*cfi_info)[2] = length >> 16;
1561 (*cfi_info)[3] = length >> 24;
1605 // Augmentation length
1676 uint32_t length = cfi_info->size() - 4; local
[all...]
/art/compiler/
H A Dimage_writer.cc232 size_t length = RoundUp(Runtime::Current()->GetHeap()->GetTotalMemory(), kPageSize); local
234 image_.reset(MemMap::MapAnonymous("image writer image", NULL, length, PROT_READ | PROT_WRITE,
243 length));
512 int32_t length = h_obj->AsObjectArray<mirror::Object>()->GetLength(); local
513 for (int32_t i = 0; i < length; i++) {
/art/compiler/jni/
H A Djni_compiler_test.cc868 void my_arraycopy(JNIEnv* env, jclass klass, jobject src, jint src_pos, jobject dst, jint dst_pos, jint length) { argument
874 EXPECT_EQ(9876, length);
/art/compiler/llvm/
H A Dgbc_expander.cc755 // Load array length
921 if (callee_method_name == "int java.lang.String.length()") {
2336 // Get the array length and store it to the register
2343 llvm::Value* length = call_inst.getArgOperand(1); local
2345 return EmitAllocNewArray(dex_pc, length, type_idx, false);
2351 uint32_t length = call_inst.getNumArgOperands() - 3; local
2354 EmitAllocNewArray(dex_pc, irb_.getInt32(length), type_idx, true);
2356 if (length > 0) {
2393 for (uint32_t i = 0; i < length; ++i) {
/art/compiler/optimizing/
H A Dbuilder.cc438 // We need one temporary for the null check, one for the index, and one for the length.
446 HInstruction* length = new (arena_) HArrayLength(object); local
447 current_block_->AddInstruction(length);
448 temps.Add(length);
450 index = new (arena_) HBoundsCheck(index, length, dex_offset);
H A Dcode_generator_arm.cc1469 Register length = locations->InAt(1).AsArm().AsCoreRegister(); local
1471 __ cmp(index, ShifterOperand(length));
H A Dcode_generator_x86.cc1464 Register length = locations->InAt(1).AsX86().AsCpuRegister(); local
1466 __ cmpl(index, length);
H A Dcode_generator_x86_64.cc1296 CpuRegister length = locations->InAt(1).AsX86_64().AsCpuRegister(); local
1298 __ cmpl(index, length);
H A Dnodes.h763 intptr_t length() const { return 0; } function in class:art::EmbeddedArray
1429 HBoundsCheck(HInstruction* index, HInstruction* length, uint32_t dex_pc) argument
1433 SetRawInputAt(1, length);
/art/compiler/utils/
H A Darena_allocator.h181 template <typename T> T* AllocArray(size_t length) { argument
182 return static_cast<T*>(Alloc(length * sizeof(T), kArenaAllocMisc));
H A Dassembler_test.h194 if (disassembler.length() != 0) {
243 if (resolved_assembler_cmd_.length() != 0) {
248 if (line.length() == 0) {
270 if (resolved_objdump_cmd_.length() != 0) {
275 if (line.length() == 0) {
296 if (resolved_disassemble_cmd_.length() != 0) {
301 if (line.length() == 0) {
343 EXPECT_NE(assembly_text.length(), 0U) << "Empty assembly";
370 LOG(INFO) << "GCC chose a different encoding than ours, but the overall length is the "
387 uintptr_t length; member in struct:art::AssemblerTest::NativeAssemblerResult
[all...]
/art/compiler/utils/x86/
H A Dassembler_x86.cc1327 const int length = operand.length_; local
1328 CHECK_GT(length, 0);
1333 for (int i = 1; i < length; i++) {
/art/compiler/utils/x86_64/
H A Dassembler_x86_64.cc1523 const int length = operand.length_; local
1524 CHECK_GT(length, 0);
1529 for (int i = 1; i < length; i++) {
/art/disassembler/
H A Ddisassembler_x86.cc34 size_t length = 0; local
35 for (const uint8_t* cur = begin; cur < end; cur += length) {
36 length = DumpInstruction(os, cur);
/art/oatdump/
H A Doatdump.cc296 // We don't know the length of the code for each method, but we need to know where to stop
298 // region, so if we keep a sorted sequence of the start of each region, we can infer the length
1245 os << StringPrintf("%p: %s length:%d\n", obj, PrettyDescriptor(obj_class).c_str(),
1268 int32_t length = obj_array->GetLength(); local
1269 for (int32_t i = 0; i < length; i++) {
1272 for (int32_t j = i + 1; j < length; j++) {
/art/runtime/arch/
H A Dstub_test.cc1082 size_t length = 128 * KB / 4; local
1083 while (length > 10) {
1085 mirror::ObjectArray<mirror::Object>::Alloc(soa.Self(), ca.Get(), length / 4)));
1089 // Try a smaller length
1090 length = length / 8;
1093 if (length * 8 > mem) {
1094 length = mem / 8;
1246 int32_t length = s[i]->GetLength(); local
1247 if (length >
[all...]
/art/runtime/base/
H A Dstringpiece.h61 int length() const { return length_; } function in class:art::StringPiece
181 // this observation to fold the odd-length case into the even-length case.
H A Dstringprintf.cc50 int length = result+1; local
51 char* buf = new char[length];
55 result = vsnprintf(buf, length, format, backup_ap);
58 if (result >= 0 && result < length) {
/art/runtime/
H A Dcheck_jni.cc695 void CheckLengthPositive(jsize length) { argument
696 if (length < 0) {
697 JniAbortF(function_name_, "negative jsize: %d", length);
1070 // Underlying length of a user allocation of 'length' bytes.
1071 static size_t ActualLength(size_t length) { argument
1072 return (length + kGuardLen + 1) & ~0x01;
1552 static jobjectArray NewObjectArray(JNIEnv* env, jsize length, jclass elementClass, jobject initialElement) { argument
1553 CHECK_JNI_ENTRY(kFlag_Default, "EzcL", env, length, elementClass, initialElement);
1554 return CHECK_JNI_EXIT("a", baseEnv(env)->NewObjectArray(env, length, elementClas
[all...]
H A Dclass_linker-inl.h159 inline mirror::ObjectArray<T>* ClassLinker::AllocObjectArray(Thread* self, size_t length) { argument
160 return mirror::ObjectArray<T>::Alloc(self, GetClassRoot(kObjectArrayClass), length);
164 size_t length) {
165 return mirror::ObjectArray<mirror::Class>::Alloc(self, GetClassRoot(kClassArrayClass), length);
169 size_t length) {
171 length);
175 size_t length) {
177 GetClassRoot(kJavaLangReflectArtMethodArrayClass), length);
187 size_t length) {
193 self, GetClassRoot(kJavaLangReflectArtFieldArrayClass), length,
163 AllocClassArray(Thread* self, size_t length) argument
168 AllocStringArray(Thread* self, size_t length) argument
174 AllocArtMethodArray(Thread* self, size_t length) argument
186 AllocArtFieldArray(Thread* self, size_t length) argument
[all...]
H A Dclass_linker.cc1926 Thread* self, size_t length) {
1928 self, GetClassRoot(kJavaLangStackTraceElementArrayClass), length);
5448 uint32_t* length) {
5453 return dex_file.GetMethodShorty(method_id, length);
1925 AllocStackTraceElementArray( Thread* self, size_t length) argument
5447 MethodShorty(uint32_t method_idx, mirror::ArtMethod* referrer, uint32_t* length) argument
H A Dclass_linker.h216 const char* MethodShorty(uint32_t method_idx, mirror::ArtMethod* referrer, uint32_t* length)
299 mirror::ObjectArray<T>* AllocObjectArray(Thread* self, size_t length)
302 mirror::ObjectArray<mirror::Class>* AllocClassArray(Thread* self, size_t length)
305 mirror::ObjectArray<mirror::String>* AllocStringArray(Thread* self, size_t length)
308 mirror::ObjectArray<mirror::ArtMethod>* AllocArtMethodArray(Thread* self, size_t length)
314 mirror::ObjectArray<mirror::ArtField>* AllocArtFieldArray(Thread* self, size_t length)
318 size_t length)

Completed in 7684 milliseconds

12345