• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# plugin interpreter_main_loop
2# Copyright (c) 2021-2024 Huawei Device Co., Ltd.
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15  when "ETS_LAUNCH_SHORT_PREF_V4_V4_ID16"
16    handle_ets_launch_static_short(op[1], as_id(op[0]))
17  when "ETS_LAUNCH_PREF_V4_V4_V4_V4_ID16"
18    handle_ets_launch_static_long(op[1], as_id(op[0]))
19  when "ETS_LAUNCH_RANGE_PREF_V8_ID16"
20    handle_ets_launch_static_range(op[1], as_id(op[0]))
21  when "ETS_LAUNCH_VIRT_SHORT_PREF_V4_V4_ID16"
22    handle_ets_launch_virt_short(op[1], as_id(op[0]))
23  when "ETS_LAUNCH_VIRT_PREF_V4_V4_V4_V4_ID16"
24    handle_ets_launch_virt_long(op[1], as_id(op[0]))
25  when "ETS_LAUNCH_VIRT_RANGE_PREF_V8_ID16"
26    handle_ets_launch_virt_range(op[1], as_id(op[0]))
27
28  when "ETS_LDUNDEFINED_PREF_NONE"
29    handle_ets_ldundefined()
30  when "ETS_MOVUNDEFINED_PREF_V8"
31    handle_ets_movundefined(vreg_ptr(op[0]))
32  when "ETS_ISUNDEFINED_PREF_NONE"
33    handle_ets_isundefined()
34
35  when "ETS_LDOBJ_NAME_PREF_V8_ID32"
36    handle_ets_ldobj_name_short(op[0], as_id(op[1]), i.format.size)
37  when "ETS_LDOBJ_NAME_64_PREF_V8_ID32"
38    handle_ets_ldobj_name_long(op[0], as_id(op[1]), i.format.size)
39  when "ETS_LDOBJ_NAME_OBJ_PREF_V8_ID32"
40    handle_ets_ldobj_name_obj(op[0], as_id(op[1]), i.format.size)
41  when "ETS_STOBJ_NAME_PREF_V8_ID32"
42    handle_ets_stobj_name_short(op[0], as_id(op[1]), i.format.size)
43  when "ETS_STOBJ_NAME_64_PREF_V8_ID32"
44    handle_ets_stobj_name_long(op[0], as_id(op[1]), i.format.size)
45  when "ETS_STOBJ_NAME_OBJ_PREF_V8_ID32"
46    handle_ets_stobj_name_obj(op[0], as_id(op[1]), i.format.size)
47
48  when "ETS_EQUALS_PREF_V4_V4"
49    handle_ets_equals(vreg_value(op[0]).ref, vreg_value(op[1]).ref)