Bugfix: fix ap type error

Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I839WI
Signed-off-by: linxiang8 <linxiang8@huawei.com>
Change-Id: Id8e68959f417d3a909af2163194628bda1063838
This commit is contained in:
linxiang8 2023-09-21 15:37:26 +08:00
parent cea62dfb64
commit 4f631b522f
6 changed files with 67 additions and 1 deletions

View File

@ -432,7 +432,7 @@ GateRef OperationsStubBuilder::Greater(GateRef glue, GateRef left, GateRef right
Bind(&rightIsInt1);
{
GateRef type = Int32(PGOSampleType::IntType());
callback.ProfileOpType(type);
COMBINE_TYPE_CALL_BACK(curType, type);
doubleRight = ChangeInt32ToFloat64(TaggedGetInt(right));
Jump(&exit2);
}

View File

@ -156,6 +156,7 @@ group("ark_aot_ts_test") {
"newobjspread",
"not",
"numberspeculativeretype",
"operations_stub_test",
"optimization",
"optimized_call",
"or",

View File

@ -0,0 +1,19 @@
# Copyright (c) 2023 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import("//arkcompiler/ets_runtime/test/test_helper.gni")
host_aot_test_action("operations_stub_test") {
deps = []
is_enable_pgo = true
}

View File

@ -0,0 +1,14 @@
# Copyright (c) 2023 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
true

View File

@ -0,0 +1,18 @@
/*
* Copyright (c) 2023 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
const CLICK_TIME : number = 500
let nowTime = 1695261311458
print(nowTime - CLICK_TIME > 500)

View File

@ -0,0 +1,14 @@
# Copyright (c) 2023 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
true