mirror of
https://gitee.com/openharmony/arkcompiler_ets_runtime
synced 2024-11-23 10:09:54 +00:00
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:
parent
cea62dfb64
commit
4f631b522f
@ -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);
|
||||
}
|
||||
|
@ -156,6 +156,7 @@ group("ark_aot_ts_test") {
|
||||
"newobjspread",
|
||||
"not",
|
||||
"numberspeculativeretype",
|
||||
"operations_stub_test",
|
||||
"optimization",
|
||||
"optimized_call",
|
||||
"or",
|
||||
|
19
test/aottest/operations_stub_test/BUILD.gn
Normal file
19
test/aottest/operations_stub_test/BUILD.gn
Normal 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
|
||||
}
|
14
test/aottest/operations_stub_test/expect_output.txt
Normal file
14
test/aottest/operations_stub_test/expect_output.txt
Normal 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
|
18
test/aottest/operations_stub_test/operations_stub_test.ts
Normal file
18
test/aottest/operations_stub_test/operations_stub_test.ts
Normal 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)
|
14
test/aottest/operations_stub_test/pgo_expect_output.txt
Normal file
14
test/aottest/operations_stub_test/pgo_expect_output.txt
Normal 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
|
Loading…
Reference in New Issue
Block a user