From fcf33e7ea2ab5c51f419c551cea40bc1fa3cfb7f Mon Sep 17 00:00:00 2001 From: "Sergey V. Ignatov" Date: Mon, 17 Jun 2024 13:01:29 +0300 Subject: [PATCH] [Compiler] Fixed add more SafePoints Issue: https://gitee.com/openharmony/arkcompiler_runtime_core/issues/IA657W Signed-off-by: Sergey V. Ignatov --- tests/checked/ecma_inlining_monomorphic.js | 8 ++++---- tests/checked/getunmappedargs_test.js | 6 +++--- tests/checked/hclass_check_elim.js | 6 +++--- tests/checked/hclass_check_not_elim.js | 4 ++-- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/tests/checked/ecma_inlining_monomorphic.js b/tests/checked/ecma_inlining_monomorphic.js index 0afae69a5..882b75087 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-enforce-safepoint-placement=false --compiler-regex _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-enforce-safepoint-placement=false --compiler-regex _GLOBAL::test", entry: "_GLOBAL::func_main_0" //! EVENT /Inline,_GLOBAL::test,_GLOBAL::one,.*DYNAMIC_MONOMORPHIC,SUCCESS/ //! METHOD "test" //! PASS_AFTER "IrBuilder" @@ -48,4 +48,4 @@ for (var i = 0; i < 20; i++) { } if (sum != 20) { throw "Wrong result: " + sum; -} \ No newline at end of file +} diff --git a/tests/checked/getunmappedargs_test.js b/tests/checked/getunmappedargs_test.js index 474386e40..0fb8c11b1 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-enforce-safepoint-placement=false --compiler-regex _GLOBAL::foo", entry: "_GLOBAL::func_main_0" //! METHOD "foo" //! PASS_AFTER "IrBuilder" //! INST /Intrinsic.GetUnmappedArgs.*/ @@ -25,4 +25,4 @@ function foo() { if (foo(1, 2, 3, 4, 5) != 3) { throw "wrong value"; -} \ No newline at end of file +} diff --git a/tests/checked/hclass_check_elim.js b/tests/checked/hclass_check_elim.js index d98c09359..c66b74f08 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='_GLOBAL::main' --compiler-enforce-safepoint-placement=false --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='_GLOBAL::main' --compiler-enforce-safepoint-placement=false --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_not_elim.js b/tests/checked/hclass_check_not_elim.js index c7da937c0..ecb071f70 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='_GLOBAL::main' --compiler-enforce-safepoint-placement=false --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" -- Gitee