diff --git a/ecmascript_plugin_options.yaml b/ecmascript_plugin_options.yaml index da7f8e684a7481b080ff8ebde451fb990880bc24..9ef486b7b86626e3a26394a02f3b3332508ce698 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 0000000000000000000000000000000000000000..26654ce7b39f7aa9a5207737edc9342e117fa085 --- /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;