mirror of
https://gitee.com/openharmony/arkcompiler_ets_runtime
synced 2024-10-06 23:54:03 +00:00
2990f9eb23
Signed-off-by: zhangyiwei <zhangyiwei11@huawei.com> Change-Id: Id1d6b22d966b7342f832b4ca197c751df791cf48
36 lines
1.1 KiB
C++
36 lines
1.1 KiB
C++
/*
|
|
* Copyright (c) 2024 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.
|
|
*/
|
|
#ifndef ECMASCRIPT_OHOS_PARAMS_H
|
|
#define ECMASCRIPT_OHOS_PARAMS_H
|
|
|
|
#if defined(OHOS_GET_PARAMETER)
|
|
#include "base/startup/init/interfaces/innerkits/include/syspara/parameters.h"
|
|
#endif
|
|
|
|
namespace panda::ecmascript::ohos {
|
|
|
|
class OhosParams {
|
|
public:
|
|
static bool IsEdenGCEnable()
|
|
{
|
|
#ifdef OHOS_GET_PARAMETER
|
|
return OHOS::system::GetBoolParameter("persist.ark.edengc.enable", false);
|
|
#endif
|
|
return false;
|
|
}
|
|
};
|
|
}
|
|
#endif // ECMASCRIPT_OHOS_PARAMS_H
|