Lines Matching refs:jit_options
85 auto* jit_options = new JitOptions; in CreateFromRuntimeArguments() local
86 jit_options->use_jit_compilation_ = options.GetOrDefault(RuntimeArgumentMap::UseJitCompilation); in CreateFromRuntimeArguments()
88 jit_options->code_cache_initial_capacity_ = in CreateFromRuntimeArguments()
90 jit_options->code_cache_max_capacity_ = in CreateFromRuntimeArguments()
92 jit_options->dump_info_on_shutdown_ = in CreateFromRuntimeArguments()
94 jit_options->profile_saver_options_ = in CreateFromRuntimeArguments()
96 jit_options->thread_pool_pthread_priority_ = in CreateFromRuntimeArguments()
100 jit_options->compile_threshold_ = *options.Get(RuntimeArgumentMap::JITCompileThreshold); in CreateFromRuntimeArguments()
102 jit_options->compile_threshold_ = in CreateFromRuntimeArguments()
109 jit_options->compile_threshold_ = RoundUpThreshold(jit_options->compile_threshold_); in CreateFromRuntimeArguments()
112 jit_options->warmup_threshold_ = *options.Get(RuntimeArgumentMap::JITWarmupThreshold); in CreateFromRuntimeArguments()
114 jit_options->warmup_threshold_ = jit_options->compile_threshold_ / 2; in CreateFromRuntimeArguments()
116 jit_options->warmup_threshold_ = RoundUpThreshold(jit_options->warmup_threshold_); in CreateFromRuntimeArguments()
119 jit_options->osr_threshold_ = *options.Get(RuntimeArgumentMap::JITOsrThreshold); in CreateFromRuntimeArguments()
121 jit_options->osr_threshold_ = jit_options->compile_threshold_ * 2; in CreateFromRuntimeArguments()
122 if (jit_options->osr_threshold_ > std::numeric_limits<uint16_t>::max()) { in CreateFromRuntimeArguments()
123 jit_options->osr_threshold_ = in CreateFromRuntimeArguments()
127 jit_options->osr_threshold_ = RoundUpThreshold(jit_options->osr_threshold_); in CreateFromRuntimeArguments()
130 jit_options->priority_thread_weight_ = in CreateFromRuntimeArguments()
132 if (jit_options->priority_thread_weight_ > jit_options->warmup_threshold_) { in CreateFromRuntimeArguments()
134 } else if (jit_options->priority_thread_weight_ == 0) { in CreateFromRuntimeArguments()
138 jit_options->priority_thread_weight_ = std::max( in CreateFromRuntimeArguments()
139 jit_options->warmup_threshold_ / Jit::kDefaultPriorityThreadWeightRatio, in CreateFromRuntimeArguments()
144 jit_options->invoke_transition_weight_ = in CreateFromRuntimeArguments()
146 if (jit_options->invoke_transition_weight_ > jit_options->warmup_threshold_) { in CreateFromRuntimeArguments()
148 } else if (jit_options->invoke_transition_weight_ == 0) { in CreateFromRuntimeArguments()
152 jit_options->invoke_transition_weight_ = std::max( in CreateFromRuntimeArguments()
153 jit_options->warmup_threshold_ / Jit::kDefaultInvokeTransitionWeightRatio, in CreateFromRuntimeArguments()
157 return jit_options; in CreateFromRuntimeArguments()