Home
last modified time | relevance | path

Searched refs:Kind (Results 1 – 25 of 50) sorted by relevance

12

/art/runtime/
Ddex_register_location.h32 enum class Kind : int32_t { enum
43 DexRegisterLocation(Kind kind, int32_t value) : kind_(kind), value_(value) {} in DexRegisterLocation()
45 static DexRegisterLocation None() { return DexRegisterLocation(Kind::kNone, 0); } in None()
46 static DexRegisterLocation Invalid() { return DexRegisterLocation(Kind::kInvalid, 0); } in Invalid()
48 bool IsLive() const { return kind_ != Kind::kNone; } in IsLive()
50 Kind GetKind() const { return kind_; } in GetKind()
63 DCHECK(kind_ == Kind::kInStack); in GetStackOffsetInBytes()
68 DCHECK(kind_ == Kind::kConstant); in GetConstant()
73 DCHECK(kind_ == Kind::kInRegister || in GetMachineRegister()
74 kind_ == Kind::kInRegisterHigh || in GetMachineRegister()
[all …]
Ddex_register_location.cc21 std::ostream& operator<<(std::ostream& stream, DexRegisterLocation::Kind kind) { in operator <<()
26 using Kind = DexRegisterLocation::Kind; in operator <<() typedef
28 case Kind::kInvalid: in operator <<()
30 case Kind::kNone: in operator <<()
32 case Kind::kInStack: in operator <<()
34 case Kind::kInRegister: in operator <<()
36 case Kind::kInRegisterHigh: in operator <<()
38 case Kind::kInFpuRegister: in operator <<()
40 case Kind::kInFpuRegisterHigh: in operator <<()
42 case Kind::kConstant: in operator <<()
Dcheck_reference_map_visitor.h109 case DexRegisterLocation::Kind::kNone: in CheckOptimizedMethod()
113 case DexRegisterLocation::Kind::kInStack: in CheckOptimizedMethod()
118 case DexRegisterLocation::Kind::kInRegister: in CheckOptimizedMethod()
119 case DexRegisterLocation::Kind::kInRegisterHigh: in CheckOptimizedMethod()
122 case DexRegisterLocation::Kind::kInFpuRegister: in CheckOptimizedMethod()
123 case DexRegisterLocation::Kind::kInFpuRegisterHigh: in CheckOptimizedMethod()
127 case DexRegisterLocation::Kind::kConstant: in CheckOptimizedMethod()
Dquick_exception_handler.cc261 static VRegKind ToVRegKind(DexRegisterLocation::Kind kind) { in ToVRegKind()
266 case DexRegisterLocation::Kind::kConstant: in ToVRegKind()
267 case DexRegisterLocation::Kind::kInStack: in ToVRegKind()
271 case DexRegisterLocation::Kind::kInRegister: in ToVRegKind()
275 case DexRegisterLocation::Kind::kInRegisterHigh: in ToVRegKind()
279 case DexRegisterLocation::Kind::kInFpuRegister: in ToVRegKind()
283 case DexRegisterLocation::Kind::kInFpuRegisterHigh: in ToVRegKind()
336 DexRegisterLocation::Kind catch_location_kind = catch_vreg_map[vreg].GetKind(); in SetCatchEnvironmentForOptimizedHandler()
337 DCHECK(catch_location_kind == DexRegisterLocation::Kind::kNone || in SetCatchEnvironmentForOptimizedHandler()
338 catch_location_kind == DexRegisterLocation::Kind::kConstant || in SetCatchEnvironmentForOptimizedHandler()
[all …]
Dstack.cc322 DexRegisterLocation::Kind location_kind = dex_register_map[vreg].GetKind(); in GetVRegFromOptimizedCode()
324 case DexRegisterLocation::Kind::kInStack: { in GetVRegFromOptimizedCode()
334 case DexRegisterLocation::Kind::kInRegister: { in GetVRegFromOptimizedCode()
342 case DexRegisterLocation::Kind::kInRegisterHigh: in GetVRegFromOptimizedCode()
343 case DexRegisterLocation::Kind::kInFpuRegister: in GetVRegFromOptimizedCode()
344 case DexRegisterLocation::Kind::kInFpuRegisterHigh: { in GetVRegFromOptimizedCode()
351 case DexRegisterLocation::Kind::kConstant: { in GetVRegFromOptimizedCode()
359 case DexRegisterLocation::Kind::kNone: in GetVRegFromOptimizedCode()
369 case DexRegisterLocation::Kind::kInvalid: in GetVRegFromOptimizedCode()
371 case DexRegisterLocation::Kind::kInStack: { in GetVRegFromOptimizedCode()
[all …]
Dmethod_handles.cc445 const mirror::MethodHandle::Kind& handle_kind, in RefineTargetMethod()
449 if (handle_kind == mirror::MethodHandle::Kind::kInvokeVirtual || in RefineTargetMethod()
450 handle_kind == mirror::MethodHandle::Kind::kInvokeInterface) { in RefineTargetMethod()
465 } else if (handle_kind == mirror::MethodHandle::Kind::kInvokeDirect) { in RefineTargetMethod()
472 } else if (handle_kind == mirror::MethodHandle::Kind::kInvokeSuper) { in RefineTargetMethod()
626 const mirror::MethodHandle::Kind handle_kind = method_handle->GetHandleKind(); in MethodHandleFieldAccess()
731 if (method_handle->GetHandleKind() == mirror::MethodHandle::Kind::kInvokeVarHandleExact) { in DoVarHandleInvokeTranslation()
815 case mirror::MethodHandle::Kind::kInvokeDirect: in MethodHandleInvokeExactInternal()
816 case mirror::MethodHandle::Kind::kInvokeInterface: in MethodHandleInvokeExactInternal()
817 case mirror::MethodHandle::Kind::kInvokeStatic: in MethodHandleInvokeExactInternal()
[all …]
/art/compiler/optimizing/
Dstack_map_test.cc47 using Kind = DexRegisterLocation::Kind; typedef
66 stream.AddDexRegisterEntry(Kind::kInStack, 0); // Short location. in TEST()
67 stream.AddDexRegisterEntry(Kind::kConstant, -2); // Short location. in TEST()
95 ASSERT_EQ(Kind::kInStack, dex_register_map[0].GetKind()); in TEST()
96 ASSERT_EQ(Kind::kConstant, dex_register_map[1].GetKind()); in TEST()
102 ASSERT_EQ(Kind::kInStack, location0.GetKind()); in TEST()
103 ASSERT_EQ(Kind::kConstant, location1.GetKind()); in TEST()
129 stream.AddDexRegisterEntry(Kind::kInStack, 0); // Short location. in TEST()
130 stream.AddDexRegisterEntry(Kind::kConstant, -2); // Large location. in TEST()
141 stream.AddDexRegisterEntry(Kind::kInRegister, 18); // Short location. in TEST()
[all …]
Dcode_generator.cc1208 StackMap::Kind kind = native_debug_info in RecordPcInfo()
1209 ? StackMap::Kind::Debug in RecordPcInfo()
1210 : (osr ? StackMap::Kind::OSR : StackMap::Kind::Default); in RecordPcInfo()
1304 StackMap::Kind::Catch, in RecordCatchBlockInfo()
1330 stack_map_stream->AddDexRegisterEntry(DexRegisterLocation::Kind::kNone, 0); in EmitVRegInfo()
1334 using Kind = DexRegisterLocation::Kind; in EmitVRegInfo() typedef
1341 stack_map_stream->AddDexRegisterEntry(Kind::kConstant, Low32Bits(value)); in EmitVRegInfo()
1342 stack_map_stream->AddDexRegisterEntry(Kind::kConstant, High32Bits(value)); in EmitVRegInfo()
1347 stack_map_stream->AddDexRegisterEntry(Kind::kConstant, Low32Bits(value)); in EmitVRegInfo()
1348 stack_map_stream->AddDexRegisterEntry(Kind::kConstant, High32Bits(value)); in EmitVRegInfo()
[all …]
Dlocations.h53 enum Kind { enum
314 Kind GetKind() const { in GetKind()
426 constexpr Location(Kind kind, uintptr_t payload) in Location()
435 using KindField = BitField<Kind, 0, kBitsForKind>;
450 std::ostream& operator<<(std::ostream& os, Location::Kind rhs);
491 case Location::Kind::kRegister: in OverlapsRegisters()
493 case Location::Kind::kFpuRegister: in OverlapsRegisters()
495 case Location::Kind::kRegisterPair: in OverlapsRegisters()
497 case Location::Kind::kFpuRegisterPair: in OverlapsRegisters()
Dstack_map_stream.h78 StackMap::Kind kind = StackMap::Kind::Default,
84 void AddDexRegisterEntry(DexRegisterLocation::Kind kind, int32_t value) { in AddDexRegisterEntry()
Dstack_map_stream.cc112 StackMap::Kind kind, in BeginStackMapEntry()
119 DCHECK_IMPLIES(!dex_pc_list_for_catch_verification.empty(), kind == StackMap::Kind::Catch); in BeginStackMapEntry()
130 if (stack_maps_.back()[StackMap::kKind] == StackMap::Kind::Catch) { in BeginStackMapEntry()
131 DCHECK(current_stack_map_[StackMap::kKind] == StackMap::Kind::Catch); in BeginStackMapEntry()
132 } else if (current_stack_map_[StackMap::kKind] != StackMap::Kind::Catch) { in BeginStackMapEntry()
159 if (kind == StackMap::Kind::Default || kind == StackMap::Kind::OSR) { in BeginStackMapEntry()
163 } else if (kind == StackMap::Kind::Catch) { in BeginStackMapEntry()
Dparallel_move_resolver.h151 virtual Location AllocateScratchLocationFor(Location::Kind kind) = 0;
162 Location GetScratchLocation(Location::Kind kind);
Dgraph_checker.cc1062 if (DataType::Kind(input->GetType()) != DataType::Kind(phi->GetType())) { in VisitPhi()
1203 } else if (DataType::Kind(input->GetType()) != DataType::Type::kInt32) { in HandleBooleanInput()
1256 if (DataType::Kind(lhs->GetType()) != DataType::Kind(rhs->GetType())) { in VisitCondition()
1280 if (result_type != DataType::Kind(input_type)) { in VisitNeg()
1406 if (DataType::Kind(rhs_type) != DataType::Type::kInt32) { in VisitBinaryOperation()
1414 if (DataType::Kind(lhs_type) != DataType::Kind(rhs_type)) { in VisitBinaryOperation()
1432 if (result_type != DataType::Kind(lhs_type)) { in VisitBinaryOperation()
1440 if (DataType::Kind(result_type) != DataType::Kind(lhs_type)) { in VisitBinaryOperation()
1447 if (DataType::Kind(result_type) != DataType::Kind(rhs_type)) { in VisitBinaryOperation()
/art/libartbase/base/
Dhiddenapi_stubs.h28 enum class Kind { enum
35 static const std::string_view ToString(Kind api) { in ToString()
37 case Kind::kPublicApi: in ToString()
39 case Kind::kSystemApi: in ToString()
41 case Kind::kTestApi: in ToString()
43 case Kind::kCorePlatformApi: in ToString()
Darena_bit_vector.cc35 ArenaAllocKind Kind() { return kArenaAllocGrowableBitMap; } in Kind() function in art::ArenaBitVectorAllocatorKindImpl
44 ArenaAllocKind Kind() { return kind_; } in Kind() function in art::ArenaBitVectorAllocatorKindImpl
67 return allocator_->Alloc(size, this->Kind()); in Alloc()
/art/dex2oat/linker/
Dcode_info_table_deduper_test.cc32 using Kind = DexRegisterLocation::Kind; in TEST() typedef
46 stream.AddDexRegisterEntry(Kind::kInStack, 0); in TEST()
47 stream.AddDexRegisterEntry(Kind::kConstant, -2); in TEST()
71 ASSERT_EQ(Kind::kInStack, dex_register_map[0].GetKind()); in TEST()
72 ASSERT_EQ(Kind::kConstant, dex_register_map[1].GetKind()); in TEST()
/art/runtime/entrypoints/quick/
Dquick_field_entrypoints.cc109 #define ART_GET_FIELD_FROM_CODE(Kind, RetType, SetType, PrimitiveOrObject, \ argument
111 extern "C" RetType artGet ## Kind ## StaticFromCode(uint32_t field_idx, \
119 return field->Get ## Kind (field->GetDeclaringClass())Ptr; /* NOLINT */ \
124 return field->Get ## Kind (field->GetDeclaringClass())Ptr; /* NOLINT */ \
130 extern "C" RetType artGet ## Kind ## InstanceFromCode(uint32_t field_idx, \
139 return field->Get ## Kind (obj)Ptr; /* NOLINT */ \
144 return field->Get ## Kind (obj)Ptr; /* NOLINT */ \
150 extern "C" int artSet ## Kind ## StaticFromCode(uint32_t field_idx, \
180 field->Set ## Kind <false>(field->GetDeclaringClass(), new_value); \
184 extern "C" int artSet ## Kind ## InstanceFromCode(uint32_t field_idx, \
[all …]
/art/compiler/debug/
Delf_debug_loc_writer.h182 using Kind = DexRegisterLocation::Kind; in WriteDebugLocEntry() local
211 const Kind kind = reg_loc.GetKind(); in WriteDebugLocEntry()
213 if (kind == Kind::kInStack) { in WriteDebugLocEntry()
216 if (piece == 0 && reg_hi.GetKind() == Kind::kInStack && in WriteDebugLocEntry()
220 } else if (kind == Kind::kInRegister) { in WriteDebugLocEntry()
222 if (piece == 0 && reg_hi.GetKind() == Kind::kInRegisterHigh && in WriteDebugLocEntry()
226 } else if (kind == Kind::kInFpuRegister) { in WriteDebugLocEntry()
228 piece == 0 && reg_hi.GetKind() == Kind::kInFpuRegister && in WriteDebugLocEntry()
235 if (piece == 0 && reg_hi.GetKind() == Kind::kInFpuRegisterHigh && in WriteDebugLocEntry()
239 } else if (kind == Kind::kConstant) { in WriteDebugLocEntry()
[all …]
/art/runtime/oat/
Dstack_map.cc90 return sm.GetPackedNativePc() < packed_pc && sm.GetKind() != StackMap::Kind::Catch; in GetStackMapForNativePcOffset()
94 StackMap::Kind kind = static_cast<StackMap::Kind>((*it).GetKind()); in GetStackMapForNativePcOffset()
95 if (kind == StackMap::Kind::Default || kind == StackMap::Kind::OSR) { in GetStackMapForNativePcOffset()
144 if (regs[reg + bit].GetKind() == DexRegisterLocation::Kind::kInvalid) { in DecodeDexRegisterMap()
158 if (regs[r].GetKind() == DexRegisterLocation::Kind::kInvalid) { in DecodeDexRegisterMap()
271 switch (static_cast<Kind>(GetKind())) { in Dump()
272 case Kind::Default: break; in Dump()
273 case Kind::Catch: vios->Stream() << ", Catch"; break; in Dump()
274 case Kind::OSR: vios->Stream() << ", OSR"; break; in Dump()
275 case Kind::Debug: vios->Stream() << ", Debug"; break; in Dump()
Dstack_map.h131 enum Kind { enum
138 BIT_TABLE_COLUMN(0, Kind)
230 BIT_TABLE_COLUMN(0, Kind) in BIT_TABLE_HEADER()
234 DexRegisterLocation::Kind kind = static_cast<DexRegisterLocation::Kind>(GetKind()); in BIT_TABLE_HEADER()
238 static uint32_t PackValue(DexRegisterLocation::Kind kind, uint32_t value) { in PackValue()
240 if (kind == DexRegisterLocation::Kind::kInStack) { in PackValue()
247 static uint32_t UnpackValue(DexRegisterLocation::Kind kind, uint32_t packed_value) { in UnpackValue()
249 if (kind == DexRegisterLocation::Kind::kInStack) { in UnpackValue()
417 if (stack_map.GetDexPc() == dex_pc && stack_map.GetKind() != StackMap::Kind::Debug) { in GetStackMapForDexPc()
428 if (UNLIKELY(stack_map.GetKind() != StackMap::Kind::Catch)) { in GetCatchStackMapForDexPc()
[all …]
/art/runtime/mirror/
Dmethod_handle_impl-inl.h28 inline MethodHandle::Kind MethodHandle::GetHandleKind() REQUIRES_SHARED(Locks::mutator_lock_) { in GetHandleKind()
30 DCHECK(handle_kind >= 0 && handle_kind <= static_cast<int32_t>(Kind::kLastValidKind)); in GetHandleKind()
31 return static_cast<Kind>(handle_kind); in GetHandleKind()
Dmethod_handle_impl.h47 enum Kind { enum
66 Kind GetHandleKind() REQUIRES_SHARED(Locks::mutator_lock_);
85 void Initialize(uintptr_t art_field_or_method, Kind kind, Handle<MethodType> method_type)
123 MethodHandle::Kind kind,
Dmethod_handle_impl.cc34 Kind kind, in Initialize()
47 MethodHandle::Kind kind, in Create()
/art/test/1985-structural-redefine-stack-scope/
Dstack_scope.cc71 (rf->IsStatic() ? mirror::MethodHandle::Kind::kStaticGet in Java_Main_NativeFieldScopeCheck()
72 : mirror::MethodHandle::Kind::kInstanceGet), in Java_Main_NativeFieldScopeCheck()
/art/libartbase/base/metrics/
Dmetrics_common.cc33 #define ART_METRIC(name, Kind, ...) \ in DatumName() argument
63 #define ART_METRIC(name, Kind, ...) \ argument
77 #define REPORT_METRIC(name, Kind, ...) name()->Report(backends); in ReportAllMetricsAndResetValueMetrics() argument
84 #define REPORT_METRIC(name, Kind, ...) name()->ReportAndReset(backends); in ReportAllMetricsAndResetValueMetrics() argument

12