From 6f8bb707a9b31864e887d32404d6045d55d37213 Mon Sep 17 00:00:00 2001 From: Daniil Kofanov Date: Mon, 7 Oct 2024 02:43:06 +0300 Subject: [PATCH] [Compiler] Support method signature in '--compiler-regex' Signed-off-by: Daniil Kofanov --- tests/checked/acc_after_deopt.js | 4 ++-- tests/checked/destroy_method.js | 4 ++-- tests/checked/donot_recompile_not_profiled.js | 4 ++-- .../ecma_inline_builtins_instruction_double_with_int.js | 4 ++-- .../ecma_inline_builtins_instruction_int_with_double.js | 4 ++-- .../ecma_inline_builtins_intrinsic_double_with_int.js | 6 +++--- .../ecma_inline_builtins_intrinsic_int_with_double.js | 6 +++--- tests/checked/ecma_inline_builtins_speculation_fail.js | 4 ++-- tests/checked/ecma_inlining_deoptimize.js | 4 ++-- tests/checked/ecma_inlining_megamorphic.js | 4 ++-- tests/checked/ecma_inlining_monomorphic.js | 6 +++--- tests/checked/ecma_inlining_monomorphic_methods.js | 4 ++-- tests/checked/ecma_inlining_polymorphic.js | 4 ++-- tests/checked/ecma_inlining_polymorphic_2.js | 4 ++-- tests/checked/ecma_profiling.js | 4 ++-- tests/checked/ecma_recursive_ctor_inlining.js | 4 ++-- tests/checked/getunmappedargs_test.js | 4 ++-- tests/checked/hclass_check_constructor.js | 4 ++-- tests/checked/hclass_check_elim.js | 6 +++--- tests/checked/hclass_check_non_callable.js | 4 ++-- tests/checked/hclass_check_not_elim.js | 4 ++-- tests/checked/inline_intrinsics.js | 6 +++--- tests/checked/ldlex.js | 4 ++-- tests/checked/load_from_constant_pool.js | 6 +++--- tests/checked/new_obj.js | 6 +++--- tests/checked/new_obj_profiling.js | 4 ++-- tests/checked/obj_by_index.js | 4 ++-- tests/checked/obj_by_name.js | 4 ++-- tests/checked/obj_by_value.js | 4 ++-- tests/checked/poplexenv.js | 4 ++-- tests/checked/recompile_double_with_int.js | 4 ++-- tests/checked/recompile_not_number.js | 4 ++-- tests/checked/recompile_not_smi.js | 4 ++-- tests/checked/recompile_special.js | 4 ++-- tests/checked/recompile_undefined.js | 4 ++-- tests/checked/stlex.js | 4 ++-- tests/checked/string_equals.js | 6 +++--- tests/checked/try_load_global_by_name.js | 4 ++-- tests/checked/typeof.js | 6 +++--- 39 files changed, 87 insertions(+), 87 deletions(-) diff --git a/tests/checked/acc_after_deopt.js b/tests/checked/acc_after_deopt.js index 087d2ffc5..8963a54fb 100644 --- a/tests/checked/acc_after_deopt.js +++ b/tests/checked/acc_after_deopt.js @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021-2022 Huawei Device Co., Ltd. + * Copyright (c) 2021-2024 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -14,7 +14,7 @@ */ //! CHECKER Test accumulator value after deoptimization -//! RUN options: "--interpreter-type=irtoc --compiler-profiling-threshold=100001 --compiler-regex='_GLOBAL::test_acc'", entry: "_GLOBAL::func_main_0" +//! RUN options: "--interpreter-type=irtoc --compiler-profiling-threshold=100001 --compiler-regex:qname='_GLOBAL::test_acc'", entry: "_GLOBAL::func_main_0" //! EVENT /Compilation,_GLOBAL::test_acc/ //! EVENT /Deoptimization,_GLOBAL::func_test_acc_1/ diff --git a/tests/checked/destroy_method.js b/tests/checked/destroy_method.js index 5e1e39ba1..2c661f27e 100644 --- a/tests/checked/destroy_method.js +++ b/tests/checked/destroy_method.js @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021-2022 Huawei Device Co., Ltd. + * Copyright (c) 2021-2024 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -14,7 +14,7 @@ */ //! CHECKER Test check store and load by index -//! RUN options: "--no-async-jit --compiler-hotness-threshold=0 --compiler-regex _GLOBAL::destoy_method.*", entry: "_GLOBAL::func_main_0" +//! RUN options: "--no-async-jit --compiler-hotness-threshold=0 --compiler-regex:qname=_GLOBAL::destoy_method.*", entry: "_GLOBAL::func_main_0" //! METHOD "destoy_method" //! PASS_AFTER "Codegen" //! INST "AnyTypeCheck ECMASCRIPT_INT_TYPE" diff --git a/tests/checked/donot_recompile_not_profiled.js b/tests/checked/donot_recompile_not_profiled.js index ff7a03cc4..899c52d44 100644 --- a/tests/checked/donot_recompile_not_profiled.js +++ b/tests/checked/donot_recompile_not_profiled.js @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Huawei Device Co., Ltd. + * Copyright (c) 2022-2024 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -14,7 +14,7 @@ */ //! CHECKER Test deoptimization does not cause recompilation for method which was not profiled -//! RUN options: "--compiler-regex='_GLOBAL::func__1' --no-async-jit=true --compiler-hotness-threshold=2", entry: "_GLOBAL::func_main_0" +//! RUN options: "--compiler-regex:qname='_GLOBAL::func__1' --no-async-jit=true --compiler-hotness-threshold=2", entry: "_GLOBAL::func_main_0" //! EVENT /Compilation,_GLOBAL::func__1/ //! EVENT_NEXT_NOT /Compilation,_GLOBAL::func__1/ //! EVENT_NEXT /Deoptimization,_GLOBAL::func__1/ diff --git a/tests/checked/ecma_inline_builtins_instruction_double_with_int.js b/tests/checked/ecma_inline_builtins_instruction_double_with_int.js index cc6b1c8cf..1723712d1 100644 --- a/tests/checked/ecma_inline_builtins_instruction_double_with_int.js +++ b/tests/checked/ecma_inline_builtins_instruction_double_with_int.js @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021-2022 Huawei Device Co., Ltd. + * Copyright (c) 2021-2024 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -14,7 +14,7 @@ */ //! CHECKER Ecma builtins inlining. Speculations should be the following: (DOUBLE + Instruction) --deopt--> (DOUBLE/INT + Instruction). -//! RUN options: "--compiler-regex=_GLOBAL::profiling_abs", entry: "_GLOBAL::func_main_0" +//! RUN options: "--compiler-regex:qname=_GLOBAL::profiling_abs", entry: "_GLOBAL::func_main_0" //! METHOD "profiling_abs" //! EVENT /Compilation,.*profiling_abs.*COMPILED/ //! PASS_AFTER "InlineIntrinsics" diff --git a/tests/checked/ecma_inline_builtins_instruction_int_with_double.js b/tests/checked/ecma_inline_builtins_instruction_int_with_double.js index 3bb93757a..883303af3 100644 --- a/tests/checked/ecma_inline_builtins_instruction_int_with_double.js +++ b/tests/checked/ecma_inline_builtins_instruction_int_with_double.js @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021-2022 Huawei Device Co., Ltd. + * Copyright (c) 2021-2024 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -14,7 +14,7 @@ */ //! CHECKER Ecma builtins inlining. Speculations should be the following: (INT + Instruction) --deopt--> (DOUBLE/INT + Instruction). -//! RUN options: "--compiler-regex=_GLOBAL::profiling_abs", entry: "_GLOBAL::func_main_0" +//! RUN options: "--compiler-regex:qname=_GLOBAL::profiling_abs", entry: "_GLOBAL::func_main_0" //! METHOD "profiling_abs" //! EVENT /Compilation,.*profiling_abs.*COMPILED/ //! PASS_AFTER "InlineIntrinsics" diff --git a/tests/checked/ecma_inline_builtins_intrinsic_double_with_int.js b/tests/checked/ecma_inline_builtins_intrinsic_double_with_int.js index ee25072c0..f545a3181 100644 --- a/tests/checked/ecma_inline_builtins_intrinsic_double_with_int.js +++ b/tests/checked/ecma_inline_builtins_intrinsic_double_with_int.js @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021-2022 Huawei Device Co., Ltd. + * Copyright (c) 2021-2024 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -14,7 +14,7 @@ */ //! CHECKER Ecma builtins inlining. Speculations should be the following: (DOUBLE + Intrinsic) --deopt--> (DOUBLE/INT + Intrinsic). -//! RUN options: "--compiler-regex=\"_GLOBAL::profiling_(clz32|sin)\"", entry: "_GLOBAL::func_main_0" +//! RUN options: "--compiler-regex:qname=\"_GLOBAL::profiling_(clz32|sin)\"", entry: "_GLOBAL::func_main_0" //! METHOD "profiling_sin" //! EVENT /Compilation.*profiling_sin.*COMPILED/ //! PASS_AFTER "InlineIntrinsics" @@ -41,7 +41,7 @@ //! EVENT_NEXT_NOT /Compilation.*profiling_sin/ //! CHECKER Ecma builtins inlining. Check for intrinsics that accepts only ECMASCRIPT_INT_TYPE. Speculations should be the following: (CallDynamic) --deopt--> (CallDynamic). -//! RUN options: "--compiler-regex=\"_GLOBAL::profiling_(clz32|sin)\"", entry: "_GLOBAL::func_main_0" +//! RUN options: "--compiler-regex:qname=\"_GLOBAL::profiling_(clz32|sin)\"", entry: "_GLOBAL::func_main_0" //! METHOD "profiling_clz32" //! EVENT /Compilation.*profiling_clz32.*COMPILED/ //! PASS_AFTER "InlineIntrinsics" diff --git a/tests/checked/ecma_inline_builtins_intrinsic_int_with_double.js b/tests/checked/ecma_inline_builtins_intrinsic_int_with_double.js index b63339592..aaac4ce74 100644 --- a/tests/checked/ecma_inline_builtins_intrinsic_int_with_double.js +++ b/tests/checked/ecma_inline_builtins_intrinsic_int_with_double.js @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021-2022 Huawei Device Co., Ltd. + * Copyright (c) 2021-2024 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -14,7 +14,7 @@ */ //! CHECKER Ecma builtins inlining. Speculations should be the following: (INTEGER + Intrinsic) --deopt--> (DOUBLE/INT + Intrinsic). -//! RUN options: "--compiler-regex=\"_GLOBAL::profiling_(clz32|sin)\"", entry: "_GLOBAL::func_main_0" +//! RUN options: "--compiler-regex:qname=\"_GLOBAL::profiling_(clz32|sin)\"", entry: "_GLOBAL::func_main_0" //! METHOD "profiling_sin" //! EVENT /Compilation.*profiling_sin.*COMPILED/ //! PASS_AFTER "InlineIntrinsics" @@ -42,7 +42,7 @@ //! EVENT_NEXT_NOT /Compilation.*profiling_sin/ //! CHECKER Ecma builtins inlining. Check for intrinsics that accepts only ECMASCRIPT_INT_TYPE. Speculations should be the following: (INTEGER + Intrinsic) --deopt--> (CallDynamic). -//! RUN options: "--compiler-regex=\"_GLOBAL::profiling_(clz32|sin)\"", entry: "_GLOBAL::func_main_0" +//! RUN options: "--compiler-regex:qname=\"_GLOBAL::profiling_(clz32|sin)\"", entry: "_GLOBAL::func_main_0" //! METHOD "profiling_clz32" //! EVENT /Compilation.*profiling_clz32.*COMPILED/ //! PASS_AFTER "InlineIntrinsics" diff --git a/tests/checked/ecma_inline_builtins_speculation_fail.js b/tests/checked/ecma_inline_builtins_speculation_fail.js index ee60925ba..17444ed32 100644 --- a/tests/checked/ecma_inline_builtins_speculation_fail.js +++ b/tests/checked/ecma_inline_builtins_speculation_fail.js @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021-2022 Huawei Device Co., Ltd. + * Copyright (c) 2021-2024 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -14,7 +14,7 @@ */ //! CHECKER Ecma builtins inlining. Must deoptimize if actual was function changed. -//! RUN options: "--compiler-regex=_GLOBAL::profiling_sin", entry: "_GLOBAL::func_main_0" +//! RUN options: "--compiler-regex:qname=_GLOBAL::profiling_sin", entry: "_GLOBAL::func_main_0" //! METHOD "profiling_sin" //! EVENT /Compilation.*profiling_sin.*COMPILED/ //! PASS_AFTER "InlineIntrinsics" diff --git a/tests/checked/ecma_inlining_deoptimize.js b/tests/checked/ecma_inlining_deoptimize.js index d959d8637..83ff4d08e 100644 --- a/tests/checked/ecma_inlining_deoptimize.js +++ b/tests/checked/ecma_inlining_deoptimize.js @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021-2022 Huawei Device Co., Ltd. + * Copyright (c) 2021-2024 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -15,7 +15,7 @@ //! CHECKER Ecma Inlining. Must deoptimize. -//! RUN options: "--no-async-jit --compiler-hotness-threshold=10 --compiler-regex _GLOBAL::test ", entry: "_GLOBAL::func_main_0" +//! RUN options: "--no-async-jit --compiler-hotness-threshold=10 --compiler-regex:qname=_GLOBAL::test ", entry: "_GLOBAL::func_main_0" //! EVENT /Inline,_GLOBAL::test,_GLOBAL::one,.*DYNAMIC_MONOMORPHIC,SUCCESS/ //! EVENT /Compilation,_GLOBAL::test,.*,COMPILED/ //! EVENT /Deoptimization,_GLOBAL::.*tes.*,.*,IFRAME/ diff --git a/tests/checked/ecma_inlining_megamorphic.js b/tests/checked/ecma_inlining_megamorphic.js index 07d0839a1..d9f434c7e 100644 --- a/tests/checked/ecma_inlining_megamorphic.js +++ b/tests/checked/ecma_inlining_megamorphic.js @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021-2022 Huawei Device Co., Ltd. + * Copyright (c) 2021-2024 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -50,7 +50,7 @@ function test_inlining(N, except_res) { } //! CHECKER Ecma Inlining. Do not inline, megamorphic call. -//! RUN options: "--no-async-jit --compiler-hotness-threshold=10 --compiler-regex _GLOBAL::test ", entry: "_GLOBAL::func_main_0" +//! RUN options: "--no-async-jit --compiler-hotness-threshold=10 --compiler-regex:qname=_GLOBAL::test ", entry: "_GLOBAL::func_main_0" //! EVENT /Inline,_GLOBAL::test,-,.*,DYNAMIC_POLYMORPHIC,FAIL_MEGAMORPHIC/ //! EVENT /Compilation,_GLOBAL::test,.*,COMPILED/ test_inlining(5, 60) \ No newline at end of file diff --git a/tests/checked/ecma_inlining_monomorphic.js b/tests/checked/ecma_inlining_monomorphic.js index 0afae69a5..9d5abff93 100644 --- a/tests/checked/ecma_inlining_monomorphic.js +++ b/tests/checked/ecma_inlining_monomorphic.js @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021-2022 Huawei Device Co., Ltd. + * Copyright (c) 2021-2024 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -14,13 +14,13 @@ */ //! CHECKER Ecma Inlining. Must inline, monomorphic call. -//! RUN options: "--no-async-jit --compiler-hotness-threshold=10 --compiler-regex _GLOBAL::test", entry: "_GLOBAL::func_main_0" +//! RUN options: "--no-async-jit --compiler-hotness-threshold=10 --compiler-regex:qname=_GLOBAL::test", entry: "_GLOBAL::func_main_0" //! EVENT /Inline,_GLOBAL::test,_GLOBAL::one,.*DYNAMIC_MONOMORPHIC,SUCCESS/ //! EVENT /Compilation,_GLOBAL::test,.*,COMPILED/ //! EVENT_NOT /Deoptimization,_GLOBAL::.*test.*,.*,IFRAME/ //! CHECKER Remove HclassCheck for inlined ecma method -//! RUN options: "--no-async-jit --compiler-hotness-threshold=10 --compiler-regex _GLOBAL::test", entry: "_GLOBAL::func_main_0" +//! RUN options: "--no-async-jit --compiler-hotness-threshold=10 --compiler-regex:qname=_GLOBAL::test", entry: "_GLOBAL::func_main_0" //! EVENT /Inline,_GLOBAL::test,_GLOBAL::one,.*DYNAMIC_MONOMORPHIC,SUCCESS/ //! METHOD "test" //! PASS_AFTER "IrBuilder" diff --git a/tests/checked/ecma_inlining_monomorphic_methods.js b/tests/checked/ecma_inlining_monomorphic_methods.js index aba3af0c2..7fa0dc4fb 100644 --- a/tests/checked/ecma_inlining_monomorphic_methods.js +++ b/tests/checked/ecma_inlining_monomorphic_methods.js @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021-2022 Huawei Device Co., Ltd. + * Copyright (c) 2021-2024 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -14,7 +14,7 @@ */ //! CHECKER Ecma Inlining. Must inline, monomorphic call by methods. -//! RUN options: "--no-async-jit --compiler-hotness-threshold=5 --compiler-regex _GLOBAL::test", entry: "_GLOBAL::func_main_0" +//! RUN options: "--no-async-jit --compiler-hotness-threshold=5 --compiler-regex:qname=_GLOBAL::test", entry: "_GLOBAL::func_main_0" //! EVENT /Inline,_GLOBAL::test,_GLOBAL::func,.*DYNAMIC_MONOMORPHIC,SUCCESS/ //! EVENT /Compilation,_GLOBAL::test,.*,COMPILED/ //! EVENT_NOT /Deoptimization,_GLOBAL::.*test.*,.*,IFRAME/ diff --git a/tests/checked/ecma_inlining_polymorphic.js b/tests/checked/ecma_inlining_polymorphic.js index e879e4223..cd5b0b9ee 100644 --- a/tests/checked/ecma_inlining_polymorphic.js +++ b/tests/checked/ecma_inlining_polymorphic.js @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021-2022 Huawei Device Co., Ltd. + * Copyright (c) 2021-2024 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -50,7 +50,7 @@ function test_inlining(N, except_res) { } //! CHECKER Ecma Inlining. Must inline, polymorphic call. -//! RUN options: "--no-async-jit --compiler-hotness-threshold=10 --compiler-regex _GLOBAL::test ", entry: "_GLOBAL::func_main_0" +//! RUN options: "--no-async-jit --compiler-hotness-threshold=10 --compiler-regex:qname=_GLOBAL::test ", entry: "_GLOBAL::func_main_0" //! EVENT /Inline,_GLOBAL::test,_GLOBAL::one,.*DYNAMIC_POLYMORPHIC,SUCCESS/ //! EVENT /Inline,_GLOBAL::test,_GLOBAL::two,.*DYNAMIC_POLYMORPHIC,SUCCESS/ //! EVENT /Inline,_GLOBAL::test,_GLOBAL::three,.*DYNAMIC_POLYMORPHIC,SUCCESS/ diff --git a/tests/checked/ecma_inlining_polymorphic_2.js b/tests/checked/ecma_inlining_polymorphic_2.js index 69878c525..e0b691d77 100644 --- a/tests/checked/ecma_inlining_polymorphic_2.js +++ b/tests/checked/ecma_inlining_polymorphic_2.js @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021-2022 Huawei Device Co., Ltd. + * Copyright (c) 2021-2024 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -54,7 +54,7 @@ function test_inlining(N, except_res) { } //! CHECKER Ecma Inlining. Must inline, polymorphic call. -//! RUN options: "--no-async-jit --compiler-hotness-threshold=10 --compiler-regex _GLOBAL::test ", entry: "_GLOBAL::func_main_0" +//! RUN options: "--no-async-jit --compiler-hotness-threshold=10 --compiler-regex:qname=_GLOBAL::test ", entry: "_GLOBAL::func_main_0" //! EVENT /Inline,_GLOBAL::test,_GLOBAL::one,.*DYNAMIC_POLYMORPHIC,SUCCESS/ //! EVENT /Inline,_GLOBAL::test,_GLOBAL::two,.*DYNAMIC_POLYMORPHIC,SUCCESS/ //! EVENT /Inline,_GLOBAL::test,_GLOBAL::three,.*DYNAMIC_POLYMORPHIC,SUCCESS/ diff --git a/tests/checked/ecma_profiling.js b/tests/checked/ecma_profiling.js index 30ca63a1a..ccd22f991 100644 --- a/tests/checked/ecma_profiling.js +++ b/tests/checked/ecma_profiling.js @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021-2022 Huawei Device Co., Ltd. + * Copyright (c) 2021-2024 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -14,7 +14,7 @@ */ //! CHECKER Common JIT profiling -//! RUN options: "--no-async-jit --compiler-hotness-threshold=10 --compiler-regex _GLOBAL::test_.*", entry: "_GLOBAL::func_main_0" +//! RUN options: "--no-async-jit --compiler-hotness-threshold=10 --compiler-regex:qname=_GLOBAL::test_.*", entry: "_GLOBAL::func_main_0" //! EVENT_NOT /Deoptimization.*/ //! //! METHOD "test_profile" diff --git a/tests/checked/ecma_recursive_ctor_inlining.js b/tests/checked/ecma_recursive_ctor_inlining.js index 9b21ffedc..26cc88c30 100644 --- a/tests/checked/ecma_recursive_ctor_inlining.js +++ b/tests/checked/ecma_recursive_ctor_inlining.js @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021-2022 Huawei Device Co., Ltd. + * Copyright (c) 2021-2024 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -14,7 +14,7 @@ */ //! CHECKER Inlined constructors from expanded intrinsics recursively -//! RUN options: "--no-async-jit --compiler-hotness-threshold=10 --compiler-regex _GLOBAL::test", entry: "_GLOBAL::func_main_0" +//! RUN options: "--no-async-jit --compiler-hotness-threshold=10 --compiler-regex:qname=_GLOBAL::test", entry: "_GLOBAL::func_main_0" //! EVENT /Inline,_GLOBAL::outer_ctor,_GLOBAL::inner_ctor,.*DYNAMIC_MONOMORPHIC,SUCCESS/ //! EVENT /Inline,_GLOBAL::test,_GLOBAL::outer_ctor,.*DYNAMIC_MONOMORPHIC,SUCCESS/ //! EVENT /Compilation,_GLOBAL::test,.*,COMPILED/ diff --git a/tests/checked/getunmappedargs_test.js b/tests/checked/getunmappedargs_test.js index 474386e40..6c0a7a4c3 100644 --- a/tests/checked/getunmappedargs_test.js +++ b/tests/checked/getunmappedargs_test.js @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021-2022 Huawei Device Co., Ltd. + * Copyright (c) 2021-2024 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -14,7 +14,7 @@ */ //! CHECKER Chech GetUnmappedArgs intrinsic -//! RUN force_jit: true, options: " --compiler-regex _GLOBAL::foo", entry: "_GLOBAL::func_main_0" +//! RUN force_jit: true, options: " --compiler-regex:qname=_GLOBAL::foo", entry: "_GLOBAL::func_main_0" //! METHOD "foo" //! PASS_AFTER "IrBuilder" //! INST /Intrinsic.GetUnmappedArgs.*/ diff --git a/tests/checked/hclass_check_constructor.js b/tests/checked/hclass_check_constructor.js index a1f4bb4d0..ce0acb87b 100644 --- a/tests/checked/hclass_check_constructor.js +++ b/tests/checked/hclass_check_constructor.js @@ -1,5 +1,5 @@ /* - * Copyright (c) 2023 Huawei Device Co., Ltd. + * Copyright (c) 2023-2024 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -14,7 +14,7 @@ */ //! CHECKER Test hclass check with constructor -//! RUN options: "--compiler-regex='_GLOBAL::main' --compiler-enable-jit=true --no-async-jit=true --compiler-hotness-threshold=0", entry: "_GLOBAL::func_main_0", result: 1 +//! RUN options: "--compiler-regex:qname='_GLOBAL::main' --compiler-enable-jit=true --no-async-jit=true --compiler-hotness-threshold=0", entry: "_GLOBAL::func_main_0", result: 1 //! EVENT /Compilation,_GLOBAL::main,.*,COMPILED/ //! EVENT /DeoptimizationReason,_GLOBAL::func_main_0,ANY_TYPE_CHECK/ diff --git a/tests/checked/hclass_check_elim.js b/tests/checked/hclass_check_elim.js index d98c09359..250284379 100644 --- a/tests/checked/hclass_check_elim.js +++ b/tests/checked/hclass_check_elim.js @@ -1,5 +1,5 @@ /* - * Copyright (c) 2023 Huawei Device Co., Ltd. + * Copyright (c) 2023-2024 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -14,7 +14,7 @@ */ //! CHECKER Test HclassCheck eliminated and updated in inlined case -//! RUN options: "--compiler-regex='_GLOBAL::main' --compiler-enable-jit=true --no-async-jit=true --compiler-hotness-threshold=1", entry: "_GLOBAL::func_main_0" +//! RUN options: "--compiler-regex:qname='_GLOBAL::main' --compiler-enable-jit=true --no-async-jit=true --compiler-hotness-threshold=1", entry: "_GLOBAL::func_main_0" //! EVENT /Compilation,_GLOBAL::main,.*,COMPILED/ //! METHOD "main" //! PASS_BEFORE "ChecksElimination" @@ -31,7 +31,7 @@ //! CHECKER Test HclassCheck eliminated in case with calls -//! RUN options: "--compiler-regex='_GLOBAL::main' --compiler-enable-jit=true --no-async-jit=true --compiler-hotness-threshold=1 --compiler-inlining=false", entry: "_GLOBAL::func_main_0" +//! RUN options: "--compiler-regex:qname='_GLOBAL::main' --compiler-enable-jit=true --no-async-jit=true --compiler-hotness-threshold=1 --compiler-inlining=false", entry: "_GLOBAL::func_main_0" //! EVENT /Compilation,_GLOBAL::main,.*,COMPILED/ //! METHOD "main" //! PASS_BEFORE "ChecksElimination" diff --git a/tests/checked/hclass_check_non_callable.js b/tests/checked/hclass_check_non_callable.js index 40fa65b9b..3c8dd32b4 100644 --- a/tests/checked/hclass_check_non_callable.js +++ b/tests/checked/hclass_check_non_callable.js @@ -1,5 +1,5 @@ /* - * Copyright (c) 2023 Huawei Device Co., Ltd. + * Copyright (c) 2023-2024 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -14,7 +14,7 @@ */ //! CHECKER Test hclass check non callable function -//! RUN options: "--compiler-regex='_GLOBAL::main' --compiler-enable-jit=true --compiler-inlining=true --no-async-jit=true --compiler-hotness-threshold=0", entry: "_GLOBAL::func_main_0", result: 1 +//! RUN options: "--compiler-regex:qname='_GLOBAL::main' --compiler-enable-jit=true --compiler-inlining=true --no-async-jit=true --compiler-hotness-threshold=0", entry: "_GLOBAL::func_main_0", result: 1 //! EVENT /Compilation,_GLOBAL::main,.*,COMPILED/ //! EVENT /DeoptimizationReason,_GLOBAL::func_main_0,ANY_TYPE_CHECK/ //! METHOD "main" diff --git a/tests/checked/hclass_check_not_elim.js b/tests/checked/hclass_check_not_elim.js index c7da937c0..d9c22c7e5 100644 --- a/tests/checked/hclass_check_not_elim.js +++ b/tests/checked/hclass_check_not_elim.js @@ -1,5 +1,5 @@ /* - * Copyright (c) 2023 Huawei Device Co., Ltd. + * Copyright (c) 2023-2024 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -14,7 +14,7 @@ */ //! CHECKER Test HclassCheck didn't eliminate and update in inlined case -//! RUN options: "--compiler-regex='_GLOBAL::main' --compiler-enable-jit=true --no-async-jit=true --compiler-hotness-threshold=1", entry: "_GLOBAL::func_main_0" +//! RUN options: "--compiler-regex:qname='_GLOBAL::main' --compiler-enable-jit=true --no-async-jit=true --compiler-hotness-threshold=1", entry: "_GLOBAL::func_main_0" //! EVENT /Compilation,_GLOBAL::main,.*,COMPILED/ //! METHOD "main" //! PASS_BEFORE "ChecksElimination" diff --git a/tests/checked/inline_intrinsics.js b/tests/checked/inline_intrinsics.js index 702d8414d..021b5f51e 100644 --- a/tests/checked/inline_intrinsics.js +++ b/tests/checked/inline_intrinsics.js @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021-2022 Huawei Device Co., Ltd. + * Copyright (c) 2021-2024 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -14,7 +14,7 @@ */ //! CHECKER Test arithmetic aot -//! RUN_PAOC options: "--compiler-regex '_GLOBAL::test_(\\w+_[if](_[if]|)|toboolean|ld.*|string|.*compare.*)'" +//! RUN_PAOC options: "--compiler-regex:qname='_GLOBAL::test_(\\w+_[if](_[if]|)|toboolean|ld.*|string|.*compare.*)'" //! check_aot = lambda do |op, intrinsic, form, inst| //! METHOD "test_#{op.downcase}_#{form}" //! PASS_BEFORE "InlineIntrinsics" @@ -155,7 +155,7 @@ //! EVENT_NOT /AotEntrypointFound.*/ //! CHECKER Test mod instruction -//! RUN options: "--no-async-jit --compiler-hotness-threshold=1 --compiler-regex _GLOBAL::test_mod_with_.*_int", entry: "_GLOBAL::func_main_0" +//! RUN options: "--no-async-jit --compiler-hotness-threshold=1 --compiler-regex:qname=_GLOBAL::test_mod_with_.*_int", entry: "_GLOBAL::func_main_0" //! EVENT_NOT /AotEntrypointFound.*/ //! METHOD "test_mod_with_neg_int" //! PASS_BEFORE "InlineIntrinsics" diff --git a/tests/checked/ldlex.js b/tests/checked/ldlex.js index 1214343e9..2556f0866 100644 --- a/tests/checked/ldlex.js +++ b/tests/checked/ldlex.js @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021-2022 Huawei Device Co., Ltd. + * Copyright (c) 2021-2024 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -60,7 +60,7 @@ function get_level3() { } //! CHECKER Inline LdLexDyn/LdLexVarDyn intrinsics -//! RUN options: "--compiler-hotness-threshold=0 --no-async-jit=true --compiler-regex='_GLOBAL::compile_.*'", entry: "_GLOBAL::func_main_0" +//! RUN options: "--compiler-hotness-threshold=0 --no-async-jit=true --compiler-regex:qname='_GLOBAL::compile_.*'", entry: "_GLOBAL::func_main_0" //! METHOD "compile_level0" //! PASS_AFTER "IrBuilder" //! INST /Intrinsic.LdLexDyn.*/ diff --git a/tests/checked/load_from_constant_pool.js b/tests/checked/load_from_constant_pool.js index f946d3976..3e0a8530e 100644 --- a/tests/checked/load_from_constant_pool.js +++ b/tests/checked/load_from_constant_pool.js @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021-2022 Huawei Device Co., Ltd. + * Copyright (c) 2021-2024 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -14,7 +14,7 @@ */ //! CHECKER Replace LoadFromConstantPool by LoadObjFromConst, JIT mode -//! RUN options: "--compiler-hotness-threshold=1 --no-async-jit=true --compiler-regex='_GLOBAL::.*define_.'", entry: "_GLOBAL::func_main_0" +//! RUN options: "--compiler-hotness-threshold=1 --no-async-jit=true --compiler-regex:qname='_GLOBAL::.*define_.'", entry: "_GLOBAL::func_main_0" //! METHOD "define_f" //! PASS_AFTER "IrBuilder" //! INST "LoadConstantPool" @@ -57,7 +57,7 @@ //! INST_NEXT "Intrinsic.DefineNCFuncDyn" //! CHECKER Replace LoadFromConstantPool by LoadArrayI, AOT mode -//! RUN_PAOC options: "--compiler-regex='_GLOBAL::define_f'" +//! RUN_PAOC options: "--compiler-regex:qname='_GLOBAL::define_f'" //! METHOD "define_f" //! PASS_AFTER "IrBuilder" //! INST "LoadConstantPool" diff --git a/tests/checked/new_obj.js b/tests/checked/new_obj.js index b4a439afd..718f9d1c8 100644 --- a/tests/checked/new_obj.js +++ b/tests/checked/new_obj.js @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021-2022 Huawei Device Co., Ltd. + * Copyright (c) 2021-2024 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -117,7 +117,7 @@ function alloc_8() { } //! CHECKER Expand new object dyn range -//! RUN options: "--compiler-hotness-threshold=0 --compiler-ecma-newobj-profiling=false --compiler-regex _GLOBAL::alloc_.*", entry: "_GLOBAL::func_main_0" +//! RUN options: "--compiler-hotness-threshold=0 --compiler-ecma-newobj-profiling=false --compiler-regex:qname=_GLOBAL::alloc_.*", entry: "_GLOBAL::func_main_0" //! METHOD "alloc_1" //! PASS_AFTER "IrBuilder" //! INST_NOT /Intrinsic.AllocDynObject.*/ @@ -160,7 +160,7 @@ function alloc_8() { //! INST /Intrinsic.AllocDynObject.*/ //! CHECKER Expand new object dyn range in AOT mode -//! RUN_PAOC options: " --compiler-ecma-newobj-profiling=false --compiler-regex '_GLOBAL::alloc_.*'" +//! RUN_PAOC options: " --compiler-ecma-newobj-profiling=false --compiler-regex:qname='_GLOBAL::alloc_.*'" //! METHOD "alloc_1" //! PASS_AFTER "IrBuilder" //! INST_NOT /Intrinsic.AllocDynObject.*/ diff --git a/tests/checked/new_obj_profiling.js b/tests/checked/new_obj_profiling.js index 80a6d2ba4..1eb72b8ee 100644 --- a/tests/checked/new_obj_profiling.js +++ b/tests/checked/new_obj_profiling.js @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021-2022 Huawei Device Co., Ltd. + * Copyright (c) 2021-2024 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -49,7 +49,7 @@ function monomorphic_call_site_derived_ctor() { } //! CHECKER Expand new object dyn range using profiling info -//! RUN options: "--compiler-hotness-threshold=10 --compiler-ecma-newobj-profiling=true --compiler-regex _GLOBAL::.*_call_site.*", entry: "_GLOBAL::func_main_0" +//! RUN options: "--compiler-hotness-threshold=10 --compiler-ecma-newobj-profiling=true --compiler-regex:qname=_GLOBAL::.*_call_site.*", entry: "_GLOBAL::func_main_0" //! METHOD "bimorphic_call_site" //! PASS_AFTER "Codegen" //! INST /Intrinsic.AllocDynObject.*/ diff --git a/tests/checked/obj_by_index.js b/tests/checked/obj_by_index.js index 023772990..871af8f85 100644 --- a/tests/checked/obj_by_index.js +++ b/tests/checked/obj_by_index.js @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021-2022 Huawei Device Co., Ltd. + * Copyright (c) 2021-2024 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -14,7 +14,7 @@ */ //! CHECKER Test check store and load by index -//! RUN options: "--no-async-jit --compiler-hotness-threshold=10 --compiler-regex _GLOBAL::test_load_store_by_index", entry: "_GLOBAL::func_main_0" +//! RUN options: "--no-async-jit --compiler-hotness-threshold=10 --compiler-regex:qname=_GLOBAL::test_load_store_by_index", entry: "_GLOBAL::func_main_0" //! METHOD "test_load_store_by_index" //! PASS_AFTER "IrBuilder" //! INST_COUNT "LoadObject", 2 diff --git a/tests/checked/obj_by_name.js b/tests/checked/obj_by_name.js index 9de9288fa..7b7870d49 100644 --- a/tests/checked/obj_by_name.js +++ b/tests/checked/obj_by_name.js @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021-2022 Huawei Device Co., Ltd. + * Copyright (c) 2021-2024 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -14,7 +14,7 @@ */ //! CHECKER Test check store and load by name -//! RUN options: "--no-async-jit --compiler-hotness-threshold=10 --compiler-regex _GLOBAL::test_load_store_by_name.*", entry: "_GLOBAL::func_main_0" +//! RUN options: "--no-async-jit --compiler-hotness-threshold=10 --compiler-regex:qname=_GLOBAL::test_load_store_by_name.*", entry: "_GLOBAL::func_main_0" //! METHOD "test_load_store_by_name_single_field_inlined" //! PASS_AFTER "InlineIntrinsics" //! INST "AnyTypeCheck ECMASCRIPT_HEAP_OBJECT_TYPE" diff --git a/tests/checked/obj_by_value.js b/tests/checked/obj_by_value.js index e9837bd03..aaf81a8ac 100644 --- a/tests/checked/obj_by_value.js +++ b/tests/checked/obj_by_value.js @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021-2022 Huawei Device Co., Ltd. + * Copyright (c) 2021-2024 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -14,7 +14,7 @@ */ //! CHECKER Test check store and load by value -//! RUN options: "--no-async-jit --compiler-hotness-threshold=10 --compiler-regex _GLOBAL::test_value.*", entry: "_GLOBAL::func_main_0" +//! RUN options: "--no-async-jit --compiler-hotness-threshold=10 --compiler-regex:qname=_GLOBAL::test_value.*", entry: "_GLOBAL::func_main_0" //! METHOD "test_value_store_single_class" //! PASS_BEFORE "Lowering" //! INST "AnyTypeCheck ECMASCRIPT_HEAP_OBJECT_TYPE" diff --git a/tests/checked/poplexenv.js b/tests/checked/poplexenv.js index 77935fd40..8417ef909 100644 --- a/tests/checked/poplexenv.js +++ b/tests/checked/poplexenv.js @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021-2022 Huawei Device Co., Ltd. + * Copyright (c) 2021-2024 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -14,7 +14,7 @@ */ //! CHECKER Inline PopLexenvDyn intrinsic -//! RUN options: "--compiler-hotness-threshold=0 --no-async-jit=true --compiler-enable-osr=false --compiler-regex='_GLOBAL::level1'", entry: "_GLOBAL::func_main_0" +//! RUN options: "--compiler-hotness-threshold=0 --no-async-jit=true --compiler-enable-osr=false --compiler-regex:qname='_GLOBAL::level1'", entry: "_GLOBAL::func_main_0" //! METHOD "level1" //! PASS_AFTER "IrBuilder" //! INST "Intrinsic.PopLexenvDyn" diff --git a/tests/checked/recompile_double_with_int.js b/tests/checked/recompile_double_with_int.js index 5c8801843..1e4540794 100644 --- a/tests/checked/recompile_double_with_int.js +++ b/tests/checked/recompile_double_with_int.js @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Huawei Device Co., Ltd. + * Copyright (c) 2022-2024 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -14,7 +14,7 @@ */ //! CHECKER Test deoptimization/recompilation starting with double_with_int deoptimization -//! RUN options: "--compiler-regex='_GLOBAL::sum' --no-async-jit=true --compiler-hotness-threshold=2", entry: "_GLOBAL::func_main_0" +//! RUN options: "--compiler-regex:qname='_GLOBAL::sum' --no-async-jit=true --compiler-hotness-threshold=2", entry: "_GLOBAL::func_main_0" //! EVENT /Compilation,_GLOBAL::sum/ //! EVENT_NEXT /Deoptimization,_GLOBAL::func_sum_1/ //! EVENT_NEXT /Compilation,_GLOBAL::sum/ diff --git a/tests/checked/recompile_not_number.js b/tests/checked/recompile_not_number.js index 5a3a4f264..16e1fa836 100644 --- a/tests/checked/recompile_not_number.js +++ b/tests/checked/recompile_not_number.js @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Huawei Device Co., Ltd. + * Copyright (c) 2022-2024 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -14,7 +14,7 @@ */ //! CHECKER Test deoptimization/recompilation starting with not_smi deoptimization after not_number argument -//! RUN options: "--compiler-regex='_GLOBAL::sum' --no-async-jit=true --compiler-hotness-threshold=2", entry: "_GLOBAL::func_main_0" +//! RUN options: "--compiler-regex:qname='_GLOBAL::sum' --no-async-jit=true --compiler-hotness-threshold=2", entry: "_GLOBAL::func_main_0" //! EVENT /Compilation,_GLOBAL::sum/ //! EVENT_NEXT /Deoptimization,_GLOBAL::func_sum_1/ //! EVENT_NEXT /Compilation,_GLOBAL::sum/ diff --git a/tests/checked/recompile_not_smi.js b/tests/checked/recompile_not_smi.js index 6974dec86..942e45d20 100644 --- a/tests/checked/recompile_not_smi.js +++ b/tests/checked/recompile_not_smi.js @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Huawei Device Co., Ltd. + * Copyright (c) 2022-2024 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -14,7 +14,7 @@ */ //! CHECKER Test deoptimization/recompilation starting with not_smi deoptimization -//! RUN options: "--compiler-regex='_GLOBAL::sum' --no-async-jit=true --compiler-hotness-threshold=2", entry: "_GLOBAL::func_main_0" +//! RUN options: "--compiler-regex:qname='_GLOBAL::sum' --no-async-jit=true --compiler-hotness-threshold=2", entry: "_GLOBAL::func_main_0" //! EVENT /Compilation,_GLOBAL::sum/ //! EVENT_NEXT /Deoptimization,_GLOBAL::func_sum_1/ //! EVENT_NEXT /Compilation,_GLOBAL::sum/ diff --git a/tests/checked/recompile_special.js b/tests/checked/recompile_special.js index 33ba5d485..8ce698ccc 100644 --- a/tests/checked/recompile_special.js +++ b/tests/checked/recompile_special.js @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Huawei Device Co., Ltd. + * Copyright (c) 2022-2024 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -14,7 +14,7 @@ */ //! CHECKER Test deoptimization/recompilation for special values -//! RUN options: "--compiler-regex='_GLOBAL::sum' --no-async-jit=true --compiler-hotness-threshold=2", entry: "_GLOBAL::func_main_0" +//! RUN options: "--compiler-regex:qname='_GLOBAL::sum' --no-async-jit=true --compiler-hotness-threshold=2", entry: "_GLOBAL::func_main_0" //! EVENT /Compilation,_GLOBAL::sum/ //! EVENT_NEXT /DeoptimizationReason,_GLOBAL::func_sum_1,NOT_SMALL_INT/ //! EVENT_NEXT /Deoptimization,_GLOBAL::func_sum_1/ diff --git a/tests/checked/recompile_undefined.js b/tests/checked/recompile_undefined.js index e2bef8bfe..c80338f92 100644 --- a/tests/checked/recompile_undefined.js +++ b/tests/checked/recompile_undefined.js @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Huawei Device Co., Ltd. + * Copyright (c) 2022-2024 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -14,7 +14,7 @@ */ //! CHECKER Test deoptimization/recompilation which is caused due to incomplete profiling -//! RUN options: "--compiler-enable-osr=false --compiler-regex='_GLOBAL::test' --no-async-jit=true --compiler-hotness-threshold=2", entry: "_GLOBAL::func_main_0" +//! RUN options: "--compiler-enable-osr=false --compiler-regex:qname='_GLOBAL::test' --no-async-jit=true --compiler-hotness-threshold=2", entry: "_GLOBAL::func_main_0" //! EVENT /Compilation,_GLOBAL::test/ //! EVENT_NEXT /Deoptimization,_GLOBAL::func_test_1/ //! EVENT_NEXT /Compilation,_GLOBAL::test/ diff --git a/tests/checked/stlex.js b/tests/checked/stlex.js index eaa6f79ac..eeb68f1f5 100644 --- a/tests/checked/stlex.js +++ b/tests/checked/stlex.js @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021-2023 Huawei Device Co., Ltd. + * Copyright (c) 2021-2024 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -56,7 +56,7 @@ function testfn_level0(x) { } //! CHECKER Inline StLexDyn/StLexVarDyn intrinsics -//! RUN options: "--compiler-hotness-threshold=0 --no-async-jit=true --compiler-regex='_GLOBAL::testfn.*'", entry: "_GLOBAL::func_main_0" +//! RUN options: "--compiler-hotness-threshold=0 --no-async-jit=true --compiler-regex:qname='_GLOBAL::testfn.*'", entry: "_GLOBAL::func_main_0" //! METHOD "testfn" //! PASS_AFTER "IrBuilder" //! INST /Intrinsic.StLexVarDyn.*/ diff --git a/tests/checked/string_equals.js b/tests/checked/string_equals.js index 479ac8fa4..20ae8d746 100644 --- a/tests/checked/string_equals.js +++ b/tests/checked/string_equals.js @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021-2022 Huawei Device Co., Ltd. + * Copyright (c) 2021-2024 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -14,7 +14,7 @@ */ //! CHECKER String equals with profiled type - call fastpath EcmaStringEquals -//! RUN options: "--no-async-jit --compiler-hotness-threshold=1 --compiler-ecma-replace-intrinsics-to-deopt=false --compiler-regex _GLOBAL::test_.*", entry: "_GLOBAL::func_main_0" +//! RUN options: "--no-async-jit --compiler-hotness-threshold=1 --compiler-ecma-replace-intrinsics-to-deopt=false --compiler-regex:qname=_GLOBAL::test_.*", entry: "_GLOBAL::func_main_0" //! EVENT_NOT /Deoptimization.*/ //! METHOD "test_eq" //! PASS_BEFORE "InlineIntrinsics" @@ -29,7 +29,7 @@ //! INST_COUNT "Intrinsic.EcmaStringEquals", 1 //! CHECKER String equals without profiled type - call fastpath StrictEq/StrictNotEq -//! RUN options: "--no-async-jit --compiler-hotness-threshold=0 --compiler-ecma-replace-intrinsics-to-deopt=false --compiler-regex _GLOBAL::test_.*", entry: "_GLOBAL::func_main_0" +//! RUN options: "--no-async-jit --compiler-hotness-threshold=0 --compiler-ecma-replace-intrinsics-to-deopt=false --compiler-regex:qname=_GLOBAL::test_.*", entry: "_GLOBAL::func_main_0" //! METHOD "test_eq" //! PASS_AFTER "Codegen" //! INST_NOT "Intrinsic.EcmaStringEquals" diff --git a/tests/checked/try_load_global_by_name.js b/tests/checked/try_load_global_by_name.js index 3e538ac86..b525a7506 100644 --- a/tests/checked/try_load_global_by_name.js +++ b/tests/checked/try_load_global_by_name.js @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021-2022 Huawei Device Co., Ltd. + * Copyright (c) 2021-2024 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -15,7 +15,7 @@ //! CHECKER Inline global property based on IC, deoptimize if it is deleted or becomes accessor -//! RUN options: "--no-async-jit --compiler-hotness-threshold=10 --compiler-regex _GLOBAL::get_.*", entry: "_GLOBAL::func_main_0" +//! RUN options: "--no-async-jit --compiler-hotness-threshold=10 --compiler-regex:qname=_GLOBAL::get_.*", entry: "_GLOBAL::func_main_0" //! EVENT /Deoptimization,_GLOBAL::func_get_x/ //! EVENT /Deoptimization,_GLOBAL::func_get_y/ //! EVENT /Deoptimization,_GLOBAL::func_get_may_throw/ diff --git a/tests/checked/typeof.js b/tests/checked/typeof.js index 8bc5d1d57..01c1f43f6 100644 --- a/tests/checked/typeof.js +++ b/tests/checked/typeof.js @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021-2022 Huawei Device Co., Ltd. + * Copyright (c) 2021-2024 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -14,7 +14,7 @@ */ //! CHECKER Test check TypeOfDyn -//! RUN options: "--no-async-jit=true --compiler-hotness-threshold=10 --compiler-regex _GLOBAL::test_type.*", entry: "_GLOBAL::func_main_0" +//! RUN options: "--no-async-jit=true --compiler-hotness-threshold=10 --compiler-regex:qname=_GLOBAL::test_type.*", entry: "_GLOBAL::func_main_0" //! METHOD "test_type_undefined" //! PASS_BEFORE "Scheduler" //! INST "AnyTypeCheck ECMASCRIPT_UNDEFINED_TYPE" @@ -62,7 +62,7 @@ //! INST_NOT "GetAnyTypeName" //! CHECKER Test check AOT TypeOfDyn -//! RUN_PAOC options: "--compiler-regex _GLOBAL::test_type.*" +//! RUN_PAOC options: "--compiler-regex:qname=_GLOBAL::test_type.*" //! RUN options: "--compiler-enable-jit=false", entry: "_GLOBAL::func_main_0" function test_type_undefined(a) -- Gitee