From f66ae2d15bdc53d1595fe57511e7a583a2dfcacc Mon Sep 17 00:00:00 2001 From: Yan Churkin Date: Wed, 30 Nov 2022 14:21:46 +0300 Subject: [PATCH] Special Irtoc optimized regmask Signed-off-by: Yan Churkin --- ecmascript_plugin_options.yaml | 2 ++ libpandabase/regmask.inl | 17 +++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 libpandabase/regmask.inl diff --git a/ecmascript_plugin_options.yaml b/ecmascript_plugin_options.yaml index da7f8e684..9ef486b7b 100644 --- a/ecmascript_plugin_options.yaml +++ b/ecmascript_plugin_options.yaml @@ -83,6 +83,8 @@ irtoc_files: - plugins_interpreter_handlers: plugins/ecmascript/irtoc_scripts/interpreter_handlers.irt - plugins_main_loop: plugins/ecmascript/irtoc_scripts/interpreter_main_loop.irt + regmasks_defines: + - irtoc_optimized_regmask: plugins/ecmascript/libpandabase/regmask.inl logger: components: - name: ecmascript diff --git a/libpandabase/regmask.inl b/libpandabase/regmask.inl new file mode 100644 index 000000000..26654ce7b --- /dev/null +++ b/libpandabase/regmask.inl @@ -0,0 +1,17 @@ +/* + * Copyright (c) 2021-2022 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. + */ + +constexpr size_t ECMA_FP_REGMASK = 0x00000300; +regmask = ECMA_FP_REGMASK; -- Gitee