Home
last modified time | relevance | path

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

123

/art/runtime/
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 …]
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.h108 case DexRegisterLocation::Kind::kNone: in CheckOptimizedMethod()
112 case DexRegisterLocation::Kind::kInStack: in CheckOptimizedMethod()
117 case DexRegisterLocation::Kind::kInRegister: in CheckOptimizedMethod()
118 case DexRegisterLocation::Kind::kInRegisterHigh: in CheckOptimizedMethod()
121 case DexRegisterLocation::Kind::kInFpuRegister: in CheckOptimizedMethod()
122 case DexRegisterLocation::Kind::kInFpuRegisterHigh: in CheckOptimizedMethod()
126 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.cc143 return sm.GetPackedNativePc() < packed_pc && sm.GetKind() != StackMap::Kind::Catch; in GetStackMapForNativePcOffset()
147 StackMap::Kind kind = static_cast<StackMap::Kind>((*it).GetKind()); in GetStackMapForNativePcOffset()
148 if (kind == StackMap::Kind::Default || kind == StackMap::Kind::OSR) { in GetStackMapForNativePcOffset()
197 if (regs[reg + bit].GetKind() == DexRegisterLocation::Kind::kInvalid) { in DecodeDexRegisterMap()
211 if (regs[r].GetKind() == DexRegisterLocation::Kind::kInvalid) { in DecodeDexRegisterMap()
324 switch (static_cast<Kind>(GetKind())) { in Dump()
325 case Kind::Default: break; in Dump()
326 case Kind::Catch: vios->Stream() << ", Catch"; break; in Dump()
327 case Kind::OSR: vios->Stream() << ", OSR"; break; in Dump()
328 case Kind::Debug: vios->Stream() << ", Debug"; break; in Dump()
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()
409 if (stack_map.GetDexPc() == dex_pc && stack_map.GetKind() != StackMap::Kind::Debug) { in GetStackMapForDexPc()
420 if (stack_map.GetDexPc() == dex_pc && stack_map.GetKind() == StackMap::Kind::Catch) { in GetCatchStackMapForDexPc()
[all …]
Dstack.cc288 DexRegisterLocation::Kind location_kind = dex_register_map[vreg].GetKind(); in GetVRegFromOptimizedCode()
290 case DexRegisterLocation::Kind::kInStack: { in GetVRegFromOptimizedCode()
300 case DexRegisterLocation::Kind::kInRegister: { in GetVRegFromOptimizedCode()
308 case DexRegisterLocation::Kind::kInRegisterHigh: in GetVRegFromOptimizedCode()
309 case DexRegisterLocation::Kind::kInFpuRegister: in GetVRegFromOptimizedCode()
310 case DexRegisterLocation::Kind::kInFpuRegisterHigh: { in GetVRegFromOptimizedCode()
317 case DexRegisterLocation::Kind::kConstant: { in GetVRegFromOptimizedCode()
325 case DexRegisterLocation::Kind::kNone: in GetVRegFromOptimizedCode()
335 case DexRegisterLocation::Kind::kInvalid: in GetVRegFromOptimizedCode()
337 case DexRegisterLocation::Kind::kInStack: { in GetVRegFromOptimizedCode()
[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 …]
/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.cc1263 StackMap::Kind kind = native_debug_info in RecordPcInfo()
1264 ? StackMap::Kind::Debug in RecordPcInfo()
1265 : (osr ? StackMap::Kind::OSR : StackMap::Kind::Default); in RecordPcInfo()
1338 StackMap::Kind::Catch); in RecordCatchBlockInfo()
1351 stack_map_stream->AddDexRegisterEntry(DexRegisterLocation::Kind::kNone, 0); in RecordCatchBlockInfo()
1357 DexRegisterLocation::Kind::kInStack, location.GetStackIndex()); in RecordCatchBlockInfo()
1362 DexRegisterLocation::Kind::kInStack, location.GetStackIndex()); in RecordCatchBlockInfo()
1364 DexRegisterLocation::Kind::kInStack, location.GetHighStackIndex(kVRegSize)); in RecordCatchBlockInfo()
1393 stack_map_stream->AddDexRegisterEntry(DexRegisterLocation::Kind::kNone, 0); in EmitVRegInfo()
1397 using Kind = DexRegisterLocation::Kind; in EmitVRegInfo() typedef
[all …]
Dlocations.h52 enum Kind { enum
309 Kind GetKind() const { in GetKind()
421 Location(Kind kind, uintptr_t payload) in Location()
428 typedef BitField<Kind, 0, kBitsForKind> KindField;
443 std::ostream& operator<<(std::ostream& os, Location::Kind rhs);
484 case Location::Kind::kRegister: in OverlapsRegisters()
486 case Location::Kind::kFpuRegister: in OverlapsRegisters()
488 case Location::Kind::kRegisterPair: in OverlapsRegisters()
490 case Location::Kind::kFpuRegisterPair: in OverlapsRegisters()
Dstack_map_stream.h72 StackMap::Kind kind = StackMap::Kind::Default,
76 void AddDexRegisterEntry(DexRegisterLocation::Kind kind, int32_t value) { in AddDexRegisterEntry()
Dstack_map_stream.cc100 StackMap::Kind kind, in BeginStackMapEntry()
114 if (stack_maps_.back()[StackMap::kKind] == StackMap::Kind::Catch) { in BeginStackMapEntry()
115 DCHECK(current_stack_map_[StackMap::kKind] == StackMap::Kind::Catch); in BeginStackMapEntry()
116 } else if (current_stack_map_[StackMap::kKind] != StackMap::Kind::Catch) { in BeginStackMapEntry()
141 if (kind == StackMap::Kind::Default || kind == StackMap::Kind::OSR) { in BeginStackMapEntry()
145 } else if (kind == StackMap::Kind::Catch) { in BeginStackMapEntry()
Dgraph_checker.cc826 if (DataType::Kind(input->GetType()) != DataType::Kind(phi->GetType())) { in VisitPhi()
968 } else if (DataType::Kind(input->GetType()) != DataType::Type::kInt32) { in HandleBooleanInput()
1021 if (DataType::Kind(lhs->GetType()) != DataType::Kind(rhs->GetType())) { in VisitCondition()
1045 if (result_type != DataType::Kind(input_type)) { in VisitNeg()
1062 if (DataType::Kind(rhs_type) != DataType::Type::kInt32) { in VisitBinaryOperation()
1070 if (DataType::Kind(lhs_type) != DataType::Kind(rhs_type)) { in VisitBinaryOperation()
1088 if (result_type != DataType::Kind(lhs_type)) { in VisitBinaryOperation()
1096 if (DataType::Kind(result_type) != DataType::Kind(lhs_type)) { in VisitBinaryOperation()
1103 if (DataType::Kind(result_type) != DataType::Kind(rhs_type)) { in VisitBinaryOperation()
Dparallel_move_resolver.h150 virtual Location AllocateScratchLocationFor(Location::Kind kind) = 0;
161 Location GetScratchLocation(Location::Kind kind);
/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()
/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.h46 enum Kind { enum
66 Kind GetHandleKind() REQUIRES_SHARED(Locks::mutator_lock_) { in GetHandleKind()
69 handle_kind <= static_cast<int32_t>(Kind::kLastValidKind)); in GetHandleKind()
70 return static_cast<Kind>(handle_kind); in GetHandleKind()
96 void Initialize(uintptr_t art_field_or_method, Kind kind, Handle<MethodType> method_type)
134 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.h66 Compiler::Kind GetCompilerKind() const;
67 void SetCompilerKind(Compiler::Kind compiler_kind);
90 Compiler::Kind compiler_kind_ = Compiler::kOptimizing;
Dcompiler.h50 enum Kind { enum
57 Kind kind);
/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
61 #define ART_METRIC(name, Kind, ...) \ argument
71 #define ART_METRIC(name, Kind, ...) name()->Report(backend); in ReportAllMetrics() argument

123