Home
last modified time | relevance | path

Searched refs:ctx (Results 1 – 21 of 21) sorted by relevance

/art/build/
Dart.go31 func globalFlags(ctx android.LoadHookContext) ([]string, []string) {
35 opt := ctx.Config().GetenvWithDefault("ART_NDEBUG_OPT_FLAG", "-O3")
40 gcType := ctx.Config().GetenvWithDefault("ART_DEFAULT_GC_TYPE", "CMS")
42 if ctx.Config().IsEnvTrue("ART_TEST_DEBUG_GC") {
52 imtSize := ctx.Config().GetenvWithDefault("ART_IMT_SIZE", "43")
55 if ctx.Config().IsEnvTrue("ART_HEAP_POISONING") {
59 if ctx.Config().IsEnvTrue("ART_USE_CXX_INTERPRETER") {
63 if !ctx.Config().IsEnvFalse("ART_USE_READ_BARRIER") && ctx.Config().ArtUseReadBarrier() {
66 barrierType := ctx.Config().GetenvWithDefault("ART_READ_BARRIER_TYPE", "BAKER")
75 if !ctx.Config().IsEnvFalse("ART_USE_GENERATIONAL_CC") {
[all …]
Dmakevars.go32 func makeVarsProvider(ctx android.MakeVarsContext) {
33 ctx.Strict("LIBART_IMG_HOST_BASE_ADDRESS", ctx.Config().LibartImgHostBaseAddress())
34 ctx.Strict("LIBART_IMG_TARGET_BASE_ADDRESS", ctx.Config().LibartImgDeviceBaseAddress())
36 testMap := testMap(ctx.Config())
45 ctx.Strict("ART_TEST_LIST_"+name, strings.Join(testMap[name], " "))
Dcodegen.go41 func codegen(ctx android.LoadHookContext, c *codegenProperties, t moduleType) {
44 e := ctx.Config().Getenv("ART_HOST_CODEGEN_ARCHS")
51 e = ctx.Config().Getenv("ART_TARGET_CODEGEN_ARCHS")
53 deviceArches = defaultDeviceCodegenArches(ctx)
70 ctx.ModuleErrorf("Unknown codegen architecture %q", archName)
94 ctx.AppendProperties(sp)
134 ctx.AppendProperties(cp)
137 ctx.AppendProperties(staticLP)
140 ctx.AppendProperties(sharedLP)
195 func defaultDeviceCodegenArches(ctx android.LoadHookContext) []string {
[all …]
/art/runtime/
Dmonitor_android.cc38 android_log_event_list ctx(EVENT_LOG_TAG_dvm_lock_sample); in LogContentionEvent() local
51 ctx << procName; in LogContentionEvent()
58 ctx << (Thread::IsSensitiveThread() ? kIsSensitive : kIsNotSensitive); in LogContentionEvent()
64 ctx << thread_name; in LogContentionEvent()
68 ctx << wait_ms; in LogContentionEvent()
78 ctx << filename; in LogContentionEvent()
81 ctx << line_number; in LogContentionEvent()
84 ctx << ArtMethod::PrettyMethod(m); in LogContentionEvent()
94 ctx << owner_filename; in LogContentionEvent()
97 ctx << owner_line_number; in LogContentionEvent()
[all …]
Dthread_list.h143 ForEach([](Thread* t, void* ctx) REQUIRES(Locks::thread_list_lock_) { in ForEach()
144 (*reinterpret_cast<CallBack*>(ctx))(t); in ForEach()
/art/runtime/interpreter/
Dinterpreter_switch_impl.h49 void ExecuteSwitchImplCpp(SwitchImplContext* ctx)
54 extern "C" void ExecuteSwitchImplAsm(SwitchImplContext* ctx, void* impl, const uint16_t* dexpc)
63 SwitchImplContext ctx { in ExecuteSwitchImpl()
72 const uint16_t* dex_pc = ctx.accessor.Insns(); in ExecuteSwitchImpl()
73 ExecuteSwitchImplAsm(&ctx, impl, dex_pc); in ExecuteSwitchImpl()
74 return ctx.result; in ExecuteSwitchImpl()
Dinterpreter_switch_impl3.cc27 void ExecuteSwitchImplCpp<true, true>(SwitchImplContext* ctx);
Dinterpreter_switch_impl1.cc27 void ExecuteSwitchImplCpp<false, true>(SwitchImplContext* ctx);
Dinterpreter_switch_impl2.cc27 void ExecuteSwitchImplCpp<true, false>(SwitchImplContext* ctx);
Dinterpreter_switch_impl0.cc27 void ExecuteSwitchImplCpp<false, false>(SwitchImplContext* ctx);
Dinterpreter_switch_impl-inl.h61 ctx->result, in CheckForceReturn()
82 ctx->result = JValue(); /* Handled in caller. */ in HandlePendingException()
135 JValue* save_ref = is_move_result_object ? &ctx->result_register : nullptr; in Preamble()
164 ctx->result = result; in BranchInstrumentation()
251 ctx->result = result; in HandleReturn()
530 ctx->result = result; in RETURN_OBJECT()
1843 ALWAYS_INLINE InstructionHandler(SwitchImplContext* ctx, in InstructionHandler() argument
1852 : ctx(ctx), in InstructionHandler()
1868 const CodeItemDataAccessor& Accessor() { return ctx->accessor; } in Accessor()
1869 const uint16_t* Insns() { return ctx->accessor.Insns(); } in Insns()
[all …]
/art/libelffile/elf/
Dxz_utils.cc60 auto* ctx = static_cast<XzCallbacks*>(const_cast<ISeqInStream*>(p)); in XzCompress() local
61 *size = std::min(*size, ctx->src_.size() - ctx->src_pos_); in XzCompress()
62 memcpy(buf, ctx->src_.data() + ctx->src_pos_, *size); in XzCompress()
63 ctx->src_pos_ += *size; in XzCompress()
67 auto* ctx = static_cast<const XzCallbacks*>(p); in XzCompress() local
69 ctx->dst_->insert(ctx->dst_->end(), buffer, buffer + size); in XzCompress()
/art/test/1945-proxy-method-arguments/
Dget_args.cc32 GetProxyQuickFrameVisitor(art::Thread* target, art::Context* ctx, size_t frame_depth) in GetProxyQuickFrameVisitor() argument
34 : art::StackVisitor(target, ctx, art::StackVisitor::StackWalkKind::kIncludeInlinedFrames), in GetProxyQuickFrameVisitor()
/art/libdexfile/external/
Ddex_file_supp.cc112 void DexFile::AddMethodInfoCallback(const ExtDexFileMethodInfo* ext_method_info, void* ctx) { in AddMethodInfoCallback() argument
113 auto vect = static_cast<MethodInfoVector*>(ctx); in AddMethodInfoCallback()
/art/openjdkjvmti/
Dti_stack.h95 FindFrameAtDepthVisitor(art::Thread* target, art::Context* ctx, jint depth) in FindFrameAtDepthVisitor()
97 : art::StackVisitor(target, ctx, art::StackVisitor::StackWalkKind::kIncludeInlinedFrames), in FindFrameAtDepthVisitor()
Ddeopt_manager.cc158 auto func = [](art::Thread* thread, void* ctx) { in DumpDeoptInfo() argument
159 reinterpret_cast<DumpThreadDeoptCount*>(ctx)->Run(thread); in DumpDeoptInfo()
Dti_thread.cc678 static void RemoveTLSData(art::Thread* target, void* ctx) REQUIRES(art::Locks::thread_list_lock_) { in RemoveTLSData() argument
679 jvmtiEnv* env = reinterpret_cast<jvmtiEnv*>(ctx); in RemoveTLSData()
Dti_redefine.cc838 CallbackCtx ctx(&map, linker->GetAllocatorForClassLoader(art_klass->GetClassLoader())); in FindAndAllocateObsoleteMethods() local
853 ctx.obsolete_methods.insert(&m); in FindAndAllocateObsoleteMethods()
858 list->ForEach(DoAllocateObsoleteMethodsCallback, static_cast<void*>(&ctx)); in FindAndAllocateObsoleteMethods()
863 for (const ObsoleteMap::ObsoleteMethodPair& it : *ctx.obsolete_map) { in FindAndAllocateObsoleteMethods()
/art/perfetto_hprof/
Dperfetto_hprof.cc286 Writer(pid_t parent_pid, JavaHprofDataSource::TraceContext* ctx, uint64_t timestamp) in Writer() argument
287 : parent_pid_(parent_pid), ctx_(ctx), timestamp_(timestamp), in Writer()
437 void DumpSmaps(JavaHprofDataSource::TraceContext* ctx) { in DumpSmaps() argument
440 auto trace_packet = ctx->NewTracePacket(); in DumpSmaps()
518 [parent_pid, timestamp](JavaHprofDataSource::TraceContext ctx) in DumpPerfetto()
522 auto ds = ctx.GetDataSourceLocked(); in DumpPerfetto()
531 DumpSmaps(&ctx); in DumpPerfetto()
533 Writer writer(parent_pid, &ctx, timestamp); in DumpPerfetto()
648 ctx.Flush([] { in DumpPerfetto()
/art/dex2oat/linker/
Delf_writer_quick.cc305 SHA_CTX ctx; in ComputeFileBuildId() local
306 SHA1_Init(&ctx); in ComputeFileBuildId()
314 SHA1_Update(&ctx, buffer.data(), bytes_read); in ComputeFileBuildId()
317 SHA1_Final(*build_id, &ctx); in ComputeFileBuildId()
/art/dex2oat/
DAndroid.bp290 // Soong for setting ctx.Config().BuildOSTarget (used in
341 // Soong for setting ctx.Config().BuildOSTarget (used in