Home
last modified time | relevance | path

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

123

/art/runtime/
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 <<()
Ddex_register_location.h31 enum class Kind : int32_t { enum
42 DexRegisterLocation(Kind kind, int32_t value) : kind_(kind), value_(value) {} in DexRegisterLocation()
44 static DexRegisterLocation None() { return DexRegisterLocation(Kind::kNone, 0); } in None()
45 static DexRegisterLocation Invalid() { return DexRegisterLocation(Kind::kInvalid, 0); } in Invalid()
47 bool IsLive() const { return kind_ != Kind::kNone; } in IsLive()
49 Kind GetKind() const { return kind_; } in GetKind()
62 DCHECK(kind_ == Kind::kInStack); in GetStackOffsetInBytes()
67 DCHECK(kind_ == Kind::kConstant); in GetConstant()
72 DCHECK(kind_ == Kind::kInRegister || in GetMachineRegister()
73 kind_ == Kind::kInRegisterHigh || in GetMachineRegister()
[all …]
Dcheck_reference_map_visitor.h91 case DexRegisterLocation::Kind::kNone: in CheckOptimizedMethod()
95 case DexRegisterLocation::Kind::kInStack: in CheckOptimizedMethod()
99 case DexRegisterLocation::Kind::kInRegister: in CheckOptimizedMethod()
100 case DexRegisterLocation::Kind::kInRegisterHigh: in CheckOptimizedMethod()
103 case DexRegisterLocation::Kind::kInFpuRegister: in CheckOptimizedMethod()
104 case DexRegisterLocation::Kind::kInFpuRegisterHigh: in CheckOptimizedMethod()
108 case DexRegisterLocation::Kind::kConstant: in CheckOptimizedMethod()
Dquick_exception_handler.cc207 static VRegKind ToVRegKind(DexRegisterLocation::Kind kind) { in ToVRegKind()
212 case DexRegisterLocation::Kind::kConstant: in ToVRegKind()
213 case DexRegisterLocation::Kind::kInStack: in ToVRegKind()
217 case DexRegisterLocation::Kind::kInRegister: in ToVRegKind()
221 case DexRegisterLocation::Kind::kInRegisterHigh: in ToVRegKind()
225 case DexRegisterLocation::Kind::kInFpuRegister: in ToVRegKind()
229 case DexRegisterLocation::Kind::kInFpuRegisterHigh: in ToVRegKind()
271 DexRegisterLocation::Kind catch_location = catch_vreg_map[vreg].GetKind(); in SetCatchEnvironmentForOptimizedHandler()
272 if (catch_location == DexRegisterLocation::Kind::kNone) { in SetCatchEnvironmentForOptimizedHandler()
275 DCHECK(catch_location == DexRegisterLocation::Kind::kInStack); in SetCatchEnvironmentForOptimizedHandler()
[all …]
Dstack_map.h125 enum Kind { enum
132 BIT_TABLE_COLUMN(0, Kind)
224 BIT_TABLE_COLUMN(0, Kind) in BIT_TABLE_HEADER()
228 DexRegisterLocation::Kind kind = static_cast<DexRegisterLocation::Kind>(GetKind()); in BIT_TABLE_HEADER()
232 static uint32_t PackValue(DexRegisterLocation::Kind kind, uint32_t value) { in PackValue()
234 if (kind == DexRegisterLocation::Kind::kInStack) { in PackValue()
241 static uint32_t UnpackValue(DexRegisterLocation::Kind kind, uint32_t packed_value) { in UnpackValue()
243 if (kind == DexRegisterLocation::Kind::kInStack) { in UnpackValue()
389 if (stack_map.GetDexPc() == dex_pc && stack_map.GetKind() != StackMap::Kind::Debug) { in GetStackMapForDexPc()
400 if (stack_map.GetDexPc() == dex_pc && stack_map.GetKind() == StackMap::Kind::Catch) { in GetCatchStackMapForDexPc()
[all …]
Dmethod_handles.cc363 inline bool IsInvoke(const mirror::MethodHandle::Kind handle_kind) { in IsInvoke()
364 return handle_kind <= mirror::MethodHandle::Kind::kLastInvokeKind; in IsInvoke()
367 inline bool IsInvokeTransform(const mirror::MethodHandle::Kind handle_kind) { in IsInvokeTransform()
368 return (handle_kind == mirror::MethodHandle::Kind::kInvokeTransform in IsInvokeTransform()
369 || handle_kind == mirror::MethodHandle::Kind::kInvokeCallSiteTransform); in IsInvokeTransform()
372 inline bool IsInvokeVarHandle(const mirror::MethodHandle::Kind handle_kind) { in IsInvokeVarHandle()
373 return (handle_kind == mirror::MethodHandle::Kind::kInvokeVarHandle || in IsInvokeVarHandle()
374 handle_kind == mirror::MethodHandle::Kind::kInvokeVarHandleExact); in IsInvokeVarHandle()
377 inline bool IsFieldAccess(mirror::MethodHandle::Kind handle_kind) { in IsFieldAccess()
378 return (handle_kind >= mirror::MethodHandle::Kind::kFirstAccessorKind in IsFieldAccess()
[all …]
Dstack.cc294 DexRegisterLocation::Kind location_kind = dex_register_map[vreg].GetKind(); in GetVRegFromOptimizedCode()
296 case DexRegisterLocation::Kind::kInStack: { in GetVRegFromOptimizedCode()
306 case DexRegisterLocation::Kind::kInRegister: { in GetVRegFromOptimizedCode()
314 case DexRegisterLocation::Kind::kInRegisterHigh: in GetVRegFromOptimizedCode()
315 case DexRegisterLocation::Kind::kInFpuRegister: in GetVRegFromOptimizedCode()
316 case DexRegisterLocation::Kind::kInFpuRegisterHigh: { in GetVRegFromOptimizedCode()
323 case DexRegisterLocation::Kind::kConstant: { in GetVRegFromOptimizedCode()
331 case DexRegisterLocation::Kind::kNone: in GetVRegFromOptimizedCode()
343 case DexRegisterLocation::Kind::kInvalid: in GetVRegFromOptimizedCode()
345 case DexRegisterLocation::Kind::kInStack: { in GetVRegFromOptimizedCode()
[all …]
Dstack_map.cc150 return sm.GetPackedNativePc() < packed_pc && sm.GetKind() != StackMap::Kind::Catch; in GetStackMapForNativePcOffset()
154 StackMap::Kind kind = static_cast<StackMap::Kind>((*it).GetKind()); in GetStackMapForNativePcOffset()
155 if (kind == StackMap::Kind::Default || kind == StackMap::Kind::OSR) { in GetStackMapForNativePcOffset()
204 if (regs[reg + bit].GetKind() == DexRegisterLocation::Kind::kInvalid) { in DecodeDexRegisterMap()
218 if (regs[r].GetKind() == DexRegisterLocation::Kind::kInvalid) { in DecodeDexRegisterMap()
/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.cc34 ArenaAllocKind Kind() { return kArenaAllocGrowableBitMap; } in Kind() function in art::ArenaBitVectorAllocatorKindImpl
43 ArenaAllocKind Kind() { return kind_; } in Kind() function in art::ArenaBitVectorAllocatorKindImpl
66 return allocator_->Alloc(size, this->Kind()); in Alloc()
Darena_containers.h111 ArenaAllocKind Kind() { return kArenaAllocSTL; } in Kind() function
120 ArenaAllocKind Kind() { return kind_; } in Kind() function
200 return allocator_->AllocArray<T>(n, ArenaAllocatorAdapterKind::Kind());
/art/compiler/optimizing/
Dstack_map_test.cc46 using Kind = DexRegisterLocation::Kind; typedef
60 stream.AddDexRegisterEntry(Kind::kInStack, 0); // Short location. in TEST()
61 stream.AddDexRegisterEntry(Kind::kConstant, -2); // Short location. in TEST()
89 ASSERT_EQ(Kind::kInStack, dex_register_map[0].GetKind()); in TEST()
90 ASSERT_EQ(Kind::kConstant, dex_register_map[1].GetKind()); in TEST()
96 ASSERT_EQ(Kind::kInStack, location0.GetKind()); in TEST()
97 ASSERT_EQ(Kind::kConstant, location1.GetKind()); in TEST()
118 stream.AddDexRegisterEntry(Kind::kInStack, 0); // Short location. in TEST()
119 stream.AddDexRegisterEntry(Kind::kConstant, -2); // Large location. in TEST()
130 stream.AddDexRegisterEntry(Kind::kInRegister, 18); // Short location. in TEST()
[all …]
Dcode_generator.cc1241 StackMap::Kind kind = native_debug_info in RecordPcInfo()
1242 ? StackMap::Kind::Debug in RecordPcInfo()
1243 : (osr ? StackMap::Kind::OSR : StackMap::Kind::Default); in RecordPcInfo()
1316 StackMap::Kind::Catch); in RecordCatchBlockInfo()
1329 stack_map_stream->AddDexRegisterEntry(DexRegisterLocation::Kind::kNone, 0); in RecordCatchBlockInfo()
1335 DexRegisterLocation::Kind::kInStack, location.GetStackIndex()); in RecordCatchBlockInfo()
1340 DexRegisterLocation::Kind::kInStack, location.GetStackIndex()); in RecordCatchBlockInfo()
1342 DexRegisterLocation::Kind::kInStack, location.GetHighStackIndex(kVRegSize)); in RecordCatchBlockInfo()
1371 stack_map_stream->AddDexRegisterEntry(DexRegisterLocation::Kind::kNone, 0); in EmitVRegInfo()
1375 using Kind = DexRegisterLocation::Kind; in EmitVRegInfo() typedef
[all …]
Dstack_map_stream.h72 StackMap::Kind kind = StackMap::Kind::Default,
76 void AddDexRegisterEntry(DexRegisterLocation::Kind kind, int32_t value) { in AddDexRegisterEntry()
Dstack_map_stream.cc86 StackMap::Kind kind, in BeginStackMapEntry()
100 if (stack_maps_.back()[StackMap::kKind] == StackMap::Kind::Catch) { in BeginStackMapEntry()
101 DCHECK(current_stack_map_[StackMap::kKind] == StackMap::Kind::Catch); in BeginStackMapEntry()
102 } else if (current_stack_map_[StackMap::kKind] != StackMap::Kind::Catch) { in BeginStackMapEntry()
127 if (kind == StackMap::Kind::Default || kind == StackMap::Kind::OSR) { in BeginStackMapEntry()
131 } else if (kind == StackMap::Kind::Catch) { in BeginStackMapEntry()
Dparallel_move_resolver.h150 virtual Location AllocateScratchLocationFor(Location::Kind kind) = 0;
161 Location GetScratchLocation(Location::Kind kind);
Dgraph_checker.cc821 if (DataType::Kind(input->GetType()) != DataType::Kind(phi->GetType())) { in VisitPhi()
963 } else if (DataType::Kind(input->GetType()) != DataType::Type::kInt32) { in HandleBooleanInput()
1016 if (DataType::Kind(lhs->GetType()) != DataType::Kind(rhs->GetType())) { in VisitCondition()
1040 if (result_type != DataType::Kind(input_type)) { in VisitNeg()
1057 if (DataType::Kind(rhs_type) != DataType::Type::kInt32) { in VisitBinaryOperation()
1065 if (DataType::Kind(lhs_type) != DataType::Kind(rhs_type)) { in VisitBinaryOperation()
1083 if (result_type != DataType::Kind(lhs_type)) { in VisitBinaryOperation()
1091 if (DataType::Kind(result_type) != DataType::Kind(lhs_type)) { in VisitBinaryOperation()
1098 if (DataType::Kind(result_type) != DataType::Kind(rhs_type)) { in VisitBinaryOperation()
/art/runtime/entrypoints/quick/
Dquick_field_entrypoints.cc69 #define ART_GET_FIELD_FROM_CODE(Kind, PrimitiveType, RetType, SetType, \ argument
71 extern "C" RetType artGet ## Kind ## StaticFromCode(uint32_t field_idx, \
80 return field->Get ## Kind (field->GetDeclaringClass())Ptr; /* NOLINT */ \
85 return field->Get ## Kind (field->GetDeclaringClass())Ptr; /* NOLINT */ \
91 extern "C" RetType artGet ## Kind ## InstanceFromCode(uint32_t field_idx, \
101 return field->Get ## Kind (obj)Ptr; /* NOLINT */ \
106 return field->Get ## Kind (obj)Ptr; /* NOLINT */ \
112 extern "C" int artSet ## Kind ## StaticFromCode(uint32_t field_idx, \
145 field->Set ## Kind <false>(field->GetDeclaringClass(), new_value); \
149 extern "C" int artSet ## Kind ## InstanceFromCode(uint32_t field_idx, \
[all …]
/art/runtime/mirror/
Dmethod_handle_impl.h44 enum Kind { enum
64 Kind GetHandleKind() REQUIRES_SHARED(Locks::mutator_lock_) { in GetHandleKind()
67 handle_kind <= static_cast<int32_t>(Kind::kLastValidKind)); in GetHandleKind()
68 return static_cast<Kind>(handle_kind); in GetHandleKind()
94 void Initialize(uintptr_t art_field_or_method, Kind kind, Handle<MethodType> method_type)
130 MethodHandle::Kind kind,
Dmethod_handle_impl.cc34 Kind kind, in Initialize()
47 MethodHandle::Kind kind, in Create()
/art/compiler/debug/
Delf_debug_loc_writer.h178 using Kind = DexRegisterLocation::Kind; in WriteDebugLocEntry() local
207 const Kind kind = reg_loc.GetKind(); in WriteDebugLocEntry()
209 if (kind == Kind::kInStack) { in WriteDebugLocEntry()
212 if (piece == 0 && reg_hi.GetKind() == Kind::kInStack && in WriteDebugLocEntry()
216 } else if (kind == Kind::kInRegister) { in WriteDebugLocEntry()
218 if (piece == 0 && reg_hi.GetKind() == Kind::kInRegisterHigh && in WriteDebugLocEntry()
222 } else if (kind == Kind::kInFpuRegister) { in WriteDebugLocEntry()
224 piece == 0 && reg_hi.GetKind() == Kind::kInFpuRegister && in WriteDebugLocEntry()
231 if (piece == 0 && reg_hi.GetKind() == Kind::kInFpuRegisterHigh && in WriteDebugLocEntry()
235 } else if (kind == Kind::kConstant) { in WriteDebugLocEntry()
[all …]
/art/compiler/
Dcommon_compiler_test.h63 Compiler::Kind GetCompilerKind() const;
64 void SetCompilerKind(Compiler::Kind compiler_kind);
87 Compiler::Kind compiler_kind_ = Compiler::kOptimizing;
Dcompiler.h50 enum Kind { enum
57 Kind kind);
Dcompiler.cc32 Compiler::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()

123