Lines Matching refs:jit_options

91   auto* jit_options = new JitOptions;  in CreateFromRuntimeArguments()  local
92 jit_options->use_jit_compilation_ = options.GetOrDefault(RuntimeArgumentMap::UseJitCompilation); in CreateFromRuntimeArguments()
93 jit_options->use_tiered_jit_compilation_ = in CreateFromRuntimeArguments()
96 jit_options->code_cache_initial_capacity_ = in CreateFromRuntimeArguments()
98 jit_options->code_cache_max_capacity_ = in CreateFromRuntimeArguments()
100 jit_options->dump_info_on_shutdown_ = in CreateFromRuntimeArguments()
102 jit_options->profile_saver_options_ = in CreateFromRuntimeArguments()
104 jit_options->thread_pool_pthread_priority_ = in CreateFromRuntimeArguments()
108 jit_options->compile_threshold_ = in CreateFromRuntimeArguments()
119 jit_options->warmup_threshold_ = in CreateFromRuntimeArguments()
127 DCHECK_LT(jit_options->warmup_threshold_, jit_options->compile_threshold_); in CreateFromRuntimeArguments()
128 DCHECK_EQ(RoundUp(jit_options->warmup_threshold_, kJitThresholdStep), in CreateFromRuntimeArguments()
129 jit_options->warmup_threshold_); in CreateFromRuntimeArguments()
132 jit_options->compile_threshold_ = *options.Get(RuntimeArgumentMap::JITCompileThreshold); in CreateFromRuntimeArguments()
134 jit_options->compile_threshold_ = RoundUp(jit_options->compile_threshold_, kJitThresholdStep); in CreateFromRuntimeArguments()
137 jit_options->warmup_threshold_ = *options.Get(RuntimeArgumentMap::JITWarmupThreshold); in CreateFromRuntimeArguments()
139 jit_options->warmup_threshold_ = RoundUp(jit_options->warmup_threshold_, kJitThresholdStep); in CreateFromRuntimeArguments()
142 jit_options->osr_threshold_ = *options.Get(RuntimeArgumentMap::JITOsrThreshold); in CreateFromRuntimeArguments()
144 jit_options->osr_threshold_ = jit_options->compile_threshold_ * 2; in CreateFromRuntimeArguments()
145 if (jit_options->osr_threshold_ > kJitMaxThreshold) { in CreateFromRuntimeArguments()
146 jit_options->osr_threshold_ = in CreateFromRuntimeArguments()
150 jit_options->osr_threshold_ = RoundUp(jit_options->osr_threshold_, kJitThresholdStep); in CreateFromRuntimeArguments()
154 if (jit_options->compile_threshold_ != 0) { in CreateFromRuntimeArguments()
156 jit_options->osr_threshold_ = std::clamp(jit_options->osr_threshold_, in CreateFromRuntimeArguments()
159 jit_options->compile_threshold_ = std::clamp(jit_options->compile_threshold_, in CreateFromRuntimeArguments()
161 jit_options->osr_threshold_ - kJitThresholdStep); in CreateFromRuntimeArguments()
162 jit_options->warmup_threshold_ = in CreateFromRuntimeArguments()
163 std::clamp(jit_options->warmup_threshold_, in CreateFromRuntimeArguments()
165 jit_options->compile_threshold_ - kJitThresholdStep); in CreateFromRuntimeArguments()
169 jit_options->priority_thread_weight_ = in CreateFromRuntimeArguments()
171 if (jit_options->priority_thread_weight_ > jit_options->warmup_threshold_) { in CreateFromRuntimeArguments()
173 } else if (jit_options->priority_thread_weight_ == 0) { in CreateFromRuntimeArguments()
177 jit_options->priority_thread_weight_ = std::max( in CreateFromRuntimeArguments()
178 jit_options->warmup_threshold_ / Jit::kDefaultPriorityThreadWeightRatio, in CreateFromRuntimeArguments()
183 jit_options->invoke_transition_weight_ = in CreateFromRuntimeArguments()
185 if (jit_options->invoke_transition_weight_ > jit_options->warmup_threshold_) { in CreateFromRuntimeArguments()
187 } else if (jit_options->invoke_transition_weight_ == 0) { in CreateFromRuntimeArguments()
191 jit_options->invoke_transition_weight_ = std::max( in CreateFromRuntimeArguments()
192 jit_options->warmup_threshold_ / Jit::kDefaultInvokeTransitionWeightRatio, in CreateFromRuntimeArguments()
196 return jit_options; in CreateFromRuntimeArguments()