Searched refs:depth (Results 1 - 25 of 29) sorted by relevance

12

/art/test/067-preemptive-unpark/src/
H A DMain.java67 private static void clearStack(int depth) { argument
79 if (depth > 0) {
80 clearStack(depth - 1);
/art/runtime/
H A Dthread_pool_test.cc103 TreeTask(ThreadPool* const thread_pool, AtomicInteger* count, int depth) argument
106 depth_(depth) {}
132 static const int depth = 8; local
133 thread_pool.AddTask(self, new TreeTask(&thread_pool, &count, depth));
136 EXPECT_EQ((1 << depth) - 1, count.LoadSequentiallyConsistent());
H A Dstack_map.h944 size_t depth = 0; local
945 while (!GetRegionAtDepth(encoding, depth++).LoadBit(0)) { } // Check is_last bit.
946 return depth;
949 ALWAYS_INLINE void SetDepth(const InlineInfoEncoding& encoding, uint32_t depth) { argument
950 DCHECK_GT(depth, 0u);
951 for (size_t d = 0; d < depth; ++d) {
952 GetRegionAtDepth(encoding, d).StoreBit(0, d == depth - 1); // Set is_last bit.
957 uint32_t depth) const {
958 return encoding.GetMethodIndexEncoding().Load(GetRegionAtDepth(encoding, depth));
962 uint32_t depth,
961 SetMethodIndexAtDepth(const InlineInfoEncoding& encoding, uint32_t depth, uint32_t index) argument
972 SetDexPcAtDepth(const InlineInfoEncoding& encoding, uint32_t depth, uint32_t dex_pc) argument
983 SetInvokeTypeAtDepth(const InlineInfoEncoding& encoding, uint32_t depth, uint32_t invoke_type) argument
994 SetDexRegisterMapOffsetAtDepth(const InlineInfoEncoding& encoding, uint32_t depth, uint32_t offset) argument
1154 GetDexRegisterMapAtDepth(uint8_t depth, InlineInfo inline_info, const CodeInfoEncoding& encoding, uint32_t number_of_dex_registers) const argument
[all...]
H A Dstack.cc612 uint32_t depth) {
613 CHECK_LT(depth, thread->GetInstrumentationStack()->size());
614 return thread->GetInstrumentationStack()->at(depth);
611 GetInstrumentationStackFrame(Thread* thread, uint32_t depth) argument
H A Dthread.cc2025 bool Init(int depth) SHARED_REQUIRES(Locks::mutator_lock_) ACQUIRE(Roles::uninterruptible_) {
2036 mirror::ObjectArray<mirror::Object>::Alloc(hs.Self(), array_class, depth + 1)));
2043 mirror::PointerArray* methods_and_pcs = class_linker->AllocPointerArray(self_, depth * 2);
2113 // Compute depth of stack
2116 int32_t depth = count_visitor.GetDepth(); local
2123 if (!build_trace_visitor.Init(depth)) {
2155 // Decode the internal stack trace into the depth, method trace and PC trace.
2157 int32_t depth = soa.Decode<mirror::Array*>(internal)->GetLength() - 1; local
2158 DCHECK_GE(depth, 0);
2170 depth
[all...]
/art/runtime/verifier/
H A Dregister_line.h365 bool IsSetLockDepth(size_t reg, size_t depth) { argument
368 return (it->second & (1 << depth)) != 0;
374 bool SetRegToLockDepth(size_t reg, size_t depth) { argument
375 CHECK_LT(depth, 32u);
376 if (IsSetLockDepth(reg, depth)) {
381 reg_to_lock_depths_.Put(reg, 1 << depth);
383 it->second |= (1 << depth);
388 void ClearRegToLockDepth(size_t reg, size_t depth) { argument
389 CHECK_LT(depth, 32u);
390 DCHECK(IsSetLockDepth(reg, depth));
[all...]
/art/runtime/mirror/
H A Dthrowable.cc97 // Decode the internal stack trace into the depth and method trace
105 const auto depth = array_len / 2; local
106 if (depth == 0) {
110 for (int32_t i = 0; i < depth; ++i) {
112 uintptr_t dex_pc = method_trace->GetElementPtrSize<uintptr_t>(i + depth, ptr_size);
H A Dclass.cc1040 uint32_t depth = 0; local
1042 depth++;
1044 return depth;
/art/tools/ahat/src/
H A DObjectsHandler.java37 int depth = query.getInt("depth", 0);
40 Site site = mSnapshot.getSite(stackId, depth);
H A DSiteHandler.java39 int depth = query.getInt("depth", -1);
40 Site site = mSnapshot.getSite(stackId, depth);
70 DocString.formattedUri("site?stack=%d&depth=%d",
100 DocString.formattedUri("objects?stack=%d&depth=%d&heap=%s&class=%s",
H A DAhatSnapshot.java250 // Get the site associated with the given stack id and depth.
252 // depth of -1 means the full stack.
253 public Site getSite(int stackId, int depth) { argument
260 if (depth >= 0) {
261 path = path.subList(0, depth);
/art/test/074-gc-thrash/src/
H A DMain.java267 private String dive(int depth, int iteration) { argument
305 weak[depth] = new WeakReference(funStr);
306 strong[depth] = funStr;
307 if (depth+1 < MAX_DEPTH)
308 dive(depth+1, iteration+1);
/art/runtime/native/
H A Ddalvik_system_VMStack.cc65 int32_t depth; local
66 Thread::InternalStackTraceToStackTraceElementArray(soa, trace, javaSteArray, &depth);
67 return depth;
/art/runtime/jdwp/
H A Djdwp_event.h78 int depth; /* JdwpStepDepth */ member in struct:art::JDWP::JdwpEventMod::__anon109
H A Djdwp_event.cc211 JdwpStepDepth depth = static_cast<JdwpStepDepth>(pMod->step.depth); local
212 JdwpError status = Dbg::ConfigureStep(pMod->step.threadId, size, depth);
/art/compiler/optimizing/
H A Dstack_map_stream.cc352 for (size_t depth = 0; depth < entry.inlining_depth; ++depth) {
353 InlineInfoEntry inline_entry = inline_infos_[depth + entry.inline_infos_start_index];
354 inline_info.SetMethodIndexAtDepth(inline_info_encoding_, depth, inline_entry.method_index);
355 inline_info.SetDexPcAtDepth(inline_info_encoding_, depth, inline_entry.dex_pc);
356 inline_info.SetInvokeTypeAtDepth(inline_info_encoding_, depth, inline_entry.invoke_type);
360 depth,
372 depth, register_region.start() - dex_register_locations_region.start());
H A Dinliner.h44 size_t depth)
52 depth_(depth),
35 HInliner(HGraph* outer_graph, HGraph* outermost_graph, CodeGenerator* codegen, const DexCompilationUnit& outer_compilation_unit, const DexCompilationUnit& caller_compilation_unit, CompilerDriver* compiler_driver, StackHandleScopeCollection* handles, OptimizingCompilerStats* stats, size_t total_number_of_dex_registers, size_t depth) argument
H A Dinduction_var_analysis.h46 explicit NodeInfo(uint32_t d) : depth(d), done(false) {}
47 uint32_t depth; member in struct:art::HInductionVarAnalysis::NodeInfo
H A Dinduction_var_analysis.cc161 map_.find(instruction)->second.depth = low;
203 return map_.find(instruction)->second.depth;
206 return it->second.done ? global_depth_ : it->second.depth;
/art/compiler/utils/arm/
H A Dassembler_arm32_test.cc283 static const char* GetRegTokenFromDepth(int depth) { argument
284 switch (depth) {
326 void TemplateHelper(std::function<void(arm::Register)> f, int depth ATTRIBUTE_UNUSED,
336 const char* reg_token = GetRegTokenFromDepth(depth);
353 void TemplateHelper(std::function<void(const arm::ShifterOperand&)> f, int depth ATTRIBUTE_UNUSED,
377 void TemplateHelper(std::function<void(arm::Condition)> f, int depth ATTRIBUTE_UNUSED,
401 void TemplateHelper(std::function<void(arm::SetCc)> f, int depth ATTRIBUTE_UNUSED,
426 void TemplateHelper(std::function<void(arm::Register, Args...)> f, int depth, bool without_pc, argument
435 const char* reg_token = GetRegTokenFromDepth(depth);
449 TemplateHelper(std::function<void(Args...)>(lambda), depth local
455 TemplateHelper(std::function<void(const arm::ShifterOperand&, Args...)> f, int depth, bool without_pc, std::string fmt, std::string filter, std::ostringstream& oss) argument
476 TemplateHelper(std::function<void(Args...)>(lambda), depth, without_pc, local
482 TemplateHelper(std::function<void(arm::Condition, Args...)> f, int depth, bool without_pc, std::string fmt, std::string filter, std::ostringstream& oss) argument
502 TemplateHelper(std::function<void(Args...)>(lambda), depth, without_pc, local
508 TemplateHelper(std::function<void(arm::SetCc, Args...)> f, int depth, bool without_pc, std::string fmt, std::string filter, std::ostringstream& oss) argument
528 TemplateHelper(std::function<void(Args...)>(lambda), depth, without_pc, local
[all...]
/art/runtime/gc/
H A Dallocation_record.h131 size_t depth = r.GetDepth(); local
132 size_t result = r.GetTid() * AllocRecordStackTrace::kHashMultiplier + depth;
133 for (size_t i = 0; i < depth; ++i) {
H A Dallocation_record.cc74 // Check whether there's a system property overriding the max depth of stack trace.
112 for (size_t i = 0, depth = record.GetDepth(); i < depth; ++i) {
/art/compiler/debug/
H A Delf_debug_info_writer.h625 size_t depth = 0; local
626 for (const char* end; (end = strchr(desc, '/')) != nullptr; desc = end + 1, ++depth) {
627 // Check whether the name at this depth is already what we need.
628 if (depth < current_namespace_.size()) {
629 const std::string& name = current_namespace_[depth];
634 // Otherwise we need to open a new namespace tag at this depth.
635 CloseNamespacesAboveDepth(depth);
641 CloseNamespacesAboveDepth(depth);
645 // Close namespace tags to reach the given nesting depth.
646 void CloseNamespacesAboveDepth(size_t depth) { argument
[all...]
/art/runtime/hprof/
H A Dhprof.cc674 size_t depth = trace->GetDepth(); local
677 for (size_t i = 0; i < depth; ++i) {
714 __ AddU4(depth);
715 for (size_t i = 0; i < depth; ++i) {
844 for (size_t i = 0, depth = trace->GetDepth(); i < depth; ++i) {
/art/tools/
H A Dcpplint.py1064 def FindEndOfExpressionInLine(line, startpos, depth, startchar, endchar):
1070 depth: nesting level at startpos.
1079 depth += 1
1081 depth -= 1
1082 if depth == 0:
1446 depth = 0
1449 depth += line.count('{') - line.count('}')
1450 if not depth:

Completed in 511 milliseconds

12