Lines Matching full:compiler
20 #include "ecmascript/compiler/aot_file/an_file_data_manager.h"
21 #include "ecmascript/compiler/ecma_opcode_des.h"
47 "--compiler-log: Log Option For aot compiler and stub compiler,\n"
59 …"--compiler-log-methods: Specific method list for compiler log, only used when compi…
61 …"--compiler-type-threshold: enable to skip methods whose type is no more than threshold…
62 "--compiler-log-snapshot: Enable to print snapshot information. Default: 'false'\n"
63 "--compiler-log-time: Enable to print pass compiler time. Default: 'false'\n"
67 …"--compiler-trace-bc: Enable tracing bytecode for aot runtime. Default: 'false'\n"
68 "--compiler-trace-deopt: Enable tracing deopt for aot runtime. Default: 'false'\n"
69 …"--compiler-trace-inline: Enable tracing inline function for aot runtime. Default: 'f…
70 …"--compiler-trace-builtins: Enable tracing builtins function for aot runtime. Default: …
71 …"--compiler-trace-value-numbering: Enable tracing value numbering for aot runtime. Default: 'f…
72 …"--compiler-max-inline-bytecodes Set max bytecodes count which aot function can be inlined. …
73 …"--compiler-deopt-threshold: Set max count which aot function can occur deoptimization. …
74 "--compiler-stress-deopt: Enable stress deopt for aot compiler. Default: 'false'\n"
75 …"--compiler-opt-code-profiler: Enable opt code Bytecode Statistics for aot runtime. Defaul…
76 "--compiler-opt-bc-range: Range list for EcmaOpCode range Example '1:2,5:8'\n"
77 … "--compiler-opt-bc-range-help: Range list for EcmaOpCode range help. Default: 'false''\n"
82 … "--compiler-opt-array-bounds-check-elimination: Enable Index Check elimination. Default: 'true'\n"
83 "--compiler-opt-constant-folding: Enable constant folding. Default: 'true'\n"
84 …"--compiler-opt-type-lowering: Enable all type optimization pass for aot compiler. Default…
85 …"--compiler-opt-early-elimination: Enable EarlyElimination for aot compiler. Default: 'true'\n"
86 …"--compiler-opt-later-elimination: Enable LaterElimination for aot compiler. Default: 'true'\n"
87 …"--compiler-opt-string: Enable string optimization pass for aot compiler. Default: …
88 … "--compiler-opt-value-numbering: Enable ValueNumbering for aot compiler. Default: 'true'\n"
89 …"--compiler-opt-inlining: Enable inlining function for aot compiler: Default: 'true'\…
90 "--compiler-opt-pgotype: Enable pgo type for aot compiler: Default: 'true'\n"
91 "--compiler-opt-track-field: Enable track field for aot compiler: Default: 'false'\n"
103 …" 'debugger', 'compiler', 'builtins', 'trace', 'jit', 'baseli…
106 …" 'interpreter', 'debugger', 'compiler', 'builtins', 'trace',…
109 …" 'interpreter', 'debugger', 'compiler', 'builtins', 'trace',…
112 …" 'interpreter', 'debugger', 'compiler', 'builtins', 'trace',…
115 …" 'interpreter', 'debugger', 'compiler', 'builtins', 'trace',…
118 … " 'interpreter', 'debugger', 'compiler', 'trace', 'jit', \n"
120 …"--compiler-opt-max-method: Enable aot compiler to skip method larger than limit (KB). …
121 …"--compiler-module-methods: The number of max compiled methods in a module. Default: '1…
124 …"--compiler-opt-level: Optimization level configuration of aot compiler. Default: …
125 "--options: Print compiler and runtime options\n"
129 …: Path of file includes common stubs module compiled by stub compiler. \n"
135 …"--compiler-pgo-hotness-threshold: Set hotness threshold for pgo in aot compiler. Default: '2'…
136 …"--compiler-pgo-profiler-path: The pgo file output dir or the pgo file dir of AOT compiler…
137 …"--compiler-pgo-save-min-interval: Set the minimum time interval for automatically saving prof…
139 "--compiler-baseline-pgo: Enable compile the baseline Ap file. \n"
141 "--compiler-target-triple: CPU triple for aot compiler or stub compiler. \n"
145 … "--compiler-verify-vtable: Verify vtable result for aot compiler. Default: 'false'\n"
146 …"--compiler-select-methods Compiler selected methods for aot. Only work in full compil…
148 …"--compiler-skip-methods Compiler skpped methods for aot. Only work in full compilin…
150 …"--target-compiler-mode The compilation mode at the device side, including partial,…
155 "--compiler-fast-compile Disable some time-consuming pass. Default: 'true'\n"
156 … "--compiler-no-check Enable remove checks for aot compiler. Default: 'false'\n"
157 "--compiler-pipeline-host-aot Enable pipeline host aot compiler. Default: 'false'\n"
158 "--compiler-opt-loop-peeling: Enable loop peeling for aot compiler: Default: 'true'\n"
159 "--compiler-pkg-info Specify the package json info for ark aot compiler\n"
160 …"--compiler-external-pkg-info Specify the external package json info for ark aot compiler…
161 …"--compiler-enable-external-pkg Enable compile with external package for ark aot compiler\n"
162 …"--compiler-enable-lexenv-specialization: Enable replace ldlexvar with specific values: Default: '…
163 "--compiler-enable-native-inline: Enable inline native function: Default: 'false'\n"
164 "--compiler-enable-lowering-builtin: Enable lowering global object: Default: 'false'\n"
165 …"--compiler-opt-array-onheap-check: Enable TypedArray on heap check for aot compiler: Default: …
166 "--compiler-enable-litecg: Enable LiteCG: Default: 'false'\n"
167 "--compiler-enable-jit: Enable jit: Default: 'false'\n"
168 "--compiler-enable-osr: Enable osr: Default: 'false'\n"
169 "--compiler-enable-framework-aot: Enable frame aot: Default: 'true'\n"
170 "--compiler-enable-pgo-space: Enable pgo space used for compiler. Default: 'true'\n"
171 "--compiler-jit-hotness-threshold: Set hotness threshold for jit. Default: '2'\n"
172 "--compiler-jit-call-threshold: Set call threshold for jit. Default: '0'\n"
173 "--compiler-osr-hotness-threshold: Set hotness threshold for osr. Default: '2'\n"
174 "--compiler-force-jit-compile-main: Enable jit compile main function: Default: 'false'\n"
175 "--compiler-trace-jit: Enable trace jit: Default: 'false'\n"
176 "--compiler-enable-jit-pgo: Enable jit pgo: Default: 'true'\n"
177 …"--compiler-typed-op-profiler: Enable Typed Opcode Statistics for aot runtime. Default: 'f…
178 …"--compiler-opt-branch-profiling: Enable branch profiling for aot compiler. Default: 'true'\n"
180 "--compiler-methods-range: Enable aot compiler to compile only in-range methods.\n"
182 "--compiler-codegen-options: Compile options passed to codegen. Default: ''\n"
183 … "--compiler-opt-escape-analysis: Enable escape analysis for aot compiler. Default: 'true'\n"
184 …"--compiler-trace-escape-analysis: Enable tracing escape analysis for aot compiler. Default: '…
185 …"--compiler-opt-induction-variable: Enable induciton variable analysis for aot compiler. Defaul…
186 …"--compiler-trace-induction-variable: Enable tracing induction variable for aot compiler. Default…
187 … "--compiler-memory-analysis: Enable memory analysis for aot compiler. Default: 'true'\n"
188 "--compiler-enable-jit-fast-compile: Enable jit fast compile. Default: 'false'\n"
189 "--compiler-enable-jitfort: Enable jit fort memory space. Default: 'false'\n"
190 "--compiler-codesign-disable: Disable codesign for jit fort. Default: 'true'\n"
191 …"--compiler-enable-async-copytofort: Enable jit fort allocation and code copy in Jit thread. Def…
192 "--compiler-pgo-force-dump: Enable pgo dump not interrupted by GC. Default: 'true'\n"
195 "--compiler-enable-store-barrier: Enable store barrier optimization. Default: 'true'\n"
196 …"--compiler-enable-concurrent: Enable concurrent compile(only support in ark_stub_compiler…
199 "--compiler-opt-frame-state-elimination: Enable frame state elimination. Default: 'true'\n"
201 …"--compiler-enable-aot-code-comment Enable generate aot_code_comment.txt file during compilatio…
203 "--compiler-an-file-max-size: Max size of compiler .an file in MB. '0' means Default\n"
217 {"compiler-log", required_argument, nullptr, OPTION_COMPILER_LOG_OPT}, in ParseCommand()
218 {"compiler-log-methods", required_argument, nullptr, OPTION_COMPILER_LOG_METHODS}, in ParseCommand()
219 {"compiler-log-snapshot", required_argument, nullptr, OPTION_COMPILER_LOG_SNAPSHOT}, in ParseCommand()
220 {"compiler-log-time", required_argument, nullptr, OPTION_COMPILER_LOG_TIME}, in ParseCommand()
221 {"compiler-type-threshold", required_argument, nullptr, OPTION_COMPILER_TYPE_THRESHOLD}, in ParseCommand()
225 {"compiler-trace-bc", required_argument, nullptr, OPTION_COMPILER_TRACE_BC}, in ParseCommand()
226 {"compiler-trace-deopt", required_argument, nullptr, OPTION_COMPILER_TRACE_DEOPT}, in ParseCommand()
227 {"compiler-trace-inline", required_argument, nullptr, OPTION_COMPILER_TRACE_INLINE}, in ParseCommand()
228 …{"compiler-trace-value-numbering", required_argument, nullptr, OPTION_COMPILER_TRACE_VALUE_NUMBERI… in ParseCommand()
229 …{"compiler-trace-instruction-combine", required_argument, nullptr, OPTION_COMPILER_TRACE_INSTRUCTI… in ParseCommand()
230 …{"compiler-max-inline-bytecodes", required_argument, nullptr, OPTION_COMPILER_MAX_INLINE_BYTECODES… in ParseCommand()
231 {"compiler-deopt-threshold", required_argument, nullptr, OPTION_COMPILER_DEOPT_THRESHOLD}, in ParseCommand()
232 {"compiler-device-state", required_argument, nullptr, OPTION_COMPILER_DEVICE_STATE}, in ParseCommand()
233 {"compiler-thermal-level", required_argument, nullptr, OPTION_COMPILER_THERMAL_LEVEL}, in ParseCommand()
234 {"compiler-stress-deopt", required_argument, nullptr, OPTION_COMPILER_STRESS_DEOPT}, in ParseCommand()
235 … {"compiler-opt-code-profiler", required_argument, nullptr, OPTION_COMPILER_OPT_CODE_PROFILER}, in ParseCommand()
236 {"compiler-opt-bc-range", required_argument, nullptr, OPTION_COMPILER_OPT_BC_RANGE}, in ParseCommand()
237 … {"compiler-opt-bc-range-help", required_argument, nullptr, OPTION_COMPILER_OPT_BC_RANGE_HELP}, in ParseCommand()
241 …{"compiler-opt-constant-folding", required_argument, nullptr, OPTION_COMPILER_OPT_CONSTANT_FOLDING… in ParseCommand()
242 {"compiler-opt-array-bounds-check-elimination", required_argument, nullptr, in ParseCommand()
244 … {"compiler-opt-type-lowering", required_argument, nullptr, OPTION_COMPILER_OPT_TYPE_LOWERING}, in ParseCommand()
245 …{"compiler-opt-early-elimination", required_argument, nullptr, OPTION_COMPILER_OPT_EARLY_ELIMINATI… in ParseCommand()
246 …{"compiler-opt-later-elimination", required_argument, nullptr, OPTION_COMPILER_OPT_LATER_ELIMINATI… in ParseCommand()
247 …{"compiler-opt-instr-combine", required_argument, nullptr, OPTION_COMPILER_OPT_INSTRUCTIONE_COMBIN… in ParseCommand()
248 {"compiler-opt-string", required_argument, nullptr, OPTION_COMPILER_OPT_STRING}, in ParseCommand()
249 … {"compiler-opt-value-numbering", required_argument, nullptr, OPTION_COMPILER_OPT_VALUE_NUMBERING}, in ParseCommand()
250 …{"compiler-opt-new-value-numbering", required_argument, nullptr, OPTION_COMPILER_OPT_NEW_VALUE_NUM… in ParseCommand()
251 {"compiler-opt-inlining", required_argument, nullptr, OPTION_COMPILER_OPT_INLINING}, in ParseCommand()
252 {"compiler-opt-pgotype", required_argument, nullptr, OPTION_COMPILER_OPT_PGOTYPE}, in ParseCommand()
253 {"compiler-opt-track-field", required_argument, nullptr, OPTION_COMPILER_OPT_TRACK_FIELD}, in ParseCommand()
271 {"compiler-opt-max-method", required_argument, nullptr, OPTION_COMPILER_OPT_MAX_METHOD}, in ParseCommand()
272 {"compiler-module-methods", required_argument, nullptr, OPTION_COMPILER_MODULE_METHODS}, in ParseCommand()
276 {"compiler-opt-level", required_argument, nullptr, OPTION_ASM_OPT_LEVEL}, in ParseCommand()
281 {"compiler-target-triple", required_argument, nullptr, OPTION_COMPILER_TARGET_TRIPLE}, in ParseCommand()
286 … {"compiler-pgo-profiler-path", required_argument, nullptr, OPTION_COMPILER_PGO_PROFILER_PATH}, in ParseCommand()
287 …{"compiler-pgo-hotness-threshold", required_argument, nullptr, OPTION_COMPILER_PGO_HOTNESS_THRESHO… in ParseCommand()
288 …{"compiler-pgo-save-min-interval", required_argument, nullptr, OPTION_COMPILER_PGO_SAVE_MIN_INTERV… in ParseCommand()
289 {"compiler-baseline-pgo", required_argument, nullptr, OPTION_COMPILER_BASELINE_PGO}, in ParseCommand()
290 {"compiler-verify-vtable", required_argument, nullptr, OPTION_COMPILER_VERIFY_VTABLE}, in ParseCommand()
291 {"compiler-select-methods", required_argument, nullptr, OPTION_COMPILER_SELECT_METHODS}, in ParseCommand()
292 {"compiler-skip-methods", required_argument, nullptr, OPTION_COMPILER_SKIP_METHODS}, in ParseCommand()
293 {"target-compiler-mode", required_argument, nullptr, OPTION_TARGET_COMPILER_MODE}, in ParseCommand()
297 {"compiler-no-check", required_argument, nullptr, OPTION_COMPILER_NOCHECK}, in ParseCommand()
298 … {"compiler-pipeline-host-aot", required_argument, nullptr, OPTION_COMPILER_PIPELINE_HOST_AOT}, in ParseCommand()
299 {"compiler-fast-compile", required_argument, nullptr, OPTION_FAST_AOT_COMPILE_MODE}, in ParseCommand()
300 {"compiler-opt-loop-peeling", required_argument, nullptr, OPTION_COMPILER_OPT_LOOP_PEELING}, in ParseCommand()
301 …{"compiler-opt-array-onheap-check", required_argument, nullptr, OPTION_COMPILER_OPT_ON_HEAP_CHECK}, in ParseCommand()
302 {"compiler-pkg-info", required_argument, nullptr, OPTION_COMPILER_PKG_INFO}, in ParseCommand()
303 … {"compiler-external-pkg-info", required_argument, nullptr, OPTION_COMPILER_EXTERNAL_PKG_INFO}, in ParseCommand()
304 … {"compiler-enable-external-pkg", required_argument, nullptr, OPTION_COMPILER_ENABLE_EXTERNAL_PKG}, in ParseCommand()
305 … {"compiler-framework-abc-path", required_argument, nullptr, OPTION_COMPILER_FRAMEWORK_ABC_PATH}, in ParseCommand()
306 {"compiler-enable-lexenv-specialization", required_argument, nullptr, in ParseCommand()
308 …{"compiler-enable-native-inline", required_argument, nullptr, OPTION_COMPILER_ENABLE_NATIVE_INLINE… in ParseCommand()
309 …{"compiler-enable-lowering-builtin", required_argument, nullptr, OPTION_COMPILER_ENABLE_LOWERING_B… in ParseCommand()
310 {"compiler-enable-litecg", required_argument, nullptr, OPTION_COMPILER_ENABLE_LITECG}, in ParseCommand()
311 {"compiler-enable-jit", required_argument, nullptr, OPTION_COMPILER_ENABLE_JIT}, in ParseCommand()
312 …{"compiler-enable-dfx-hisys-event", required_argument, nullptr, OPTION_COMPILER_ENABLE_DFX_HISYS_E… in ParseCommand()
313 {"compiler-enable-osr", required_argument, nullptr, OPTION_COMPILER_ENABLE_OSR}, in ParseCommand()
314 {"compiler-trace-jit", required_argument, nullptr, OPTION_COMPILER_TRACE_JIT}, in ParseCommand()
315 …{"compiler-jit-hotness-threshold", required_argument, nullptr, OPTION_COMPILER_JIT_HOTNESS_THRESHO… in ParseCommand()
316 … {"compiler-jit-call-threshold", required_argument, nullptr, OPTION_COMPILER_JIT_CALL_THRESHOLD}, in ParseCommand()
317 …{"compiler-osr-hotness-threshold", required_argument, nullptr, OPTION_COMPILER_OSR_HOTNESS_THRESHO… in ParseCommand()
318 …{"compiler-force-jit-compile-main", required_argument, nullptr, OPTION_COMPILER_FORCE_JIT_COMPILE_… in ParseCommand()
319 {"compiler-enable-jit-pgo", required_argument, nullptr, OPTION_COMPILER_ENABLE_JIT_PGO}, in ParseCommand()
320 {"compiler-enable-aot-pgo", required_argument, nullptr, OPTION_COMPILER_ENABLE_AOT_PGO}, in ParseCommand()
321 …{"compiler-enable-framework-aot", required_argument, nullptr, OPTION_COMPILER_ENABLE_FRAMEWORK_AOT… in ParseCommand()
322 …{"compiler-enable-profile-dump", required_argument, nullptr, OPTION_COMPILER_ENABLE_PROPFILE_DUMP}, in ParseCommand()
323 … {"compiler-typed-op-profiler", required_argument, nullptr, OPTION_COMPILER_TYPED_OP_PROFILER}, in ParseCommand()
324 …{"compiler-opt-branch-profiling", required_argument, nullptr, OPTION_COMPILER_OPT_BRANCH_PROFILING… in ParseCommand()
326 {"compiler-methods-range", required_argument, nullptr, OPTION_COMPILER_METHODS_RANGE}, in ParseCommand()
327 {"compiler-codegen-options", required_argument, nullptr, OPTION_COMPILER_CODEGEN_OPT}, in ParseCommand()
328 … {"compiler-opt-escape-analysis", required_argument, nullptr, OPTION_COMPILER_OPT_ESCAPE_ANALYSIS}, in ParseCommand()
329 …{"compiler-trace-escape-analysis", required_argument, nullptr, OPTION_COMPILER_TRACE_ESCAPE_ANALYS… in ParseCommand()
330 …{"compiler-opt-induction-variable", required_argument, nullptr, OPTION_COMPILER_OPT_INDUCTION_VARI… in ParseCommand()
331 …{"compiler-trace-induction-variable", required_argument, nullptr, OPTION_COMPILER_TRACE_INDUCTION_… in ParseCommand()
332 {"compiler-memory-analysis", required_argument, nullptr, OPTION_COMPILER_MEMORY_ANALYSIS}, in ParseCommand()
333 … {"compiler-check-pgo-version", required_argument, nullptr, OPTION_COMPILER_CHECK_PGO_VERSION}, in ParseCommand()
334 {"compiler-enable-mega-ic", required_argument, nullptr, OPTION_COMPILER_ENABLE_MEGA_IC}, in ParseCommand()
335 … {"compiler-enable-baselinejit", required_argument, nullptr, OPTION_COMPILER_ENABLE_BASELINEJIT}, in ParseCommand()
336 …{"compiler-baselinejit-hotness-threshold", required_argument, nullptr, OPTION_COMPILER_BASELINEJIT… in ParseCommand()
337 …{"compiler-force-baselinejit-compile-main", required_argument, nullptr, OPTION_COMPILER_FORCE_BASE… in ParseCommand()
338 …{"compiler-enable-jit-fast-compile", required_argument, nullptr, OPTION_COMPILER_ENABLE_JIT_FAST_C… in ParseCommand()
339 {"compiler-enable-jitfort", required_argument, nullptr, OPTION_ENABLE_JITFORT}, in ParseCommand()
340 {"compiler-codesign-disable", required_argument, nullptr, OPTION_CODESIGN_DISABLE}, in ParseCommand()
341 … {"compiler-enable-async-copytofort", required_argument, nullptr, OPTION_ENABLE_ASYNC_COPYTOFORT}, in ParseCommand()
342 {"compiler-pgo-force-dump", required_argument, nullptr, OPTION_COMPILER_PGO_FORCE_DUMP}, in ParseCommand()
343 {"compiler-enable-pgo-space", required_argument, nullptr, OPTION_COMPILER_ENABLE_PGO_SPACE}, in ParseCommand()
346 …{"compiler-enable-store-barrier", required_argument, nullptr, OPTION_COMPILER_ENABLE_STORE_BARRIER… in ParseCommand()
347 … {"compiler-enable-concurrent", required_argument, nullptr, OPTION_COMPILER_ENABLE_CONCURRENT}, in ParseCommand()
348 {"compiler-opt-frame-state-elimination", required_argument, nullptr, in ParseCommand()
351 …{"compiler-enable-aot-code-comment", required_argument, nullptr, OPTION_COMPILER_ENABLE_AOT_CODE_C… in ParseCommand()
353 {"compiler-an-file-max-size", required_argument, nullptr, OPTION_COMPILER_AN_FILE_MAX_SIZE}, in ParseCommand()
354 {"compiler-trace-builtins", required_argument, nullptr, OPTION_COMPILER_TRACE_BUILTINS}, in ParseCommand()
546 ret = ParseIntParam("compiler-thermal-level", &argInt); in ParseCommand()
693 ret = ParseUint32Param("compiler-opt-max-method", &argUint32); in ParseCommand()
701 ret = ParseUint32Param("compiler-module-methods", &argUint32); in ParseCommand()
708 ret = ParseDoubleParam("compiler-type-threshold", &argDouble); in ParseCommand()
727 ret = ParseUint32Param("compiler-opt-level", &argUint32); in ParseCommand()
781 ret = ParseUint32Param("compiler-pgo-save-min-interval", &argUint32); in ParseCommand()
1094 ret = ParseUint32Param("compiler-jit-hotness-threshold", &argUint32); in ParseCommand()
1104 ret = ParseUint32Param("compiler-jit-call-threshold", &argUint32); in ParseCommand()
1114 ret = ParseUint32Param("compiler-osr-hotness-threshold", &argUint32); in ParseCommand()
1244 ret = ParseUint32Param("compiler-baselinejit-hotness-threshold", &argUint32); in ParseCommand()
1398 ret = ParseUint64Param("compiler-an-file-max-size", &argUInt64); in ParseCommand()