!8729 修复gc dfx工具开启后编译失败的问题

Merge pull request !8729 from huangzhenghua/master20240816
This commit is contained in:
openharmony_ci 2024-08-17 16:25:34 +00:00 committed by Gitee
commit 3441c44076
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
4 changed files with 6 additions and 2 deletions

View File

@ -79,7 +79,7 @@ namespace panda::ecmascript {
#elif defined(ECMASCRIPT_ENABLE_GC_DFX_OPTIONS)
#define ECMASCRIPT_ENABLE_IC 1
#define ECMASCRIPT_ENABLE_ZAP_MEM 1
#define ECMASCRIPT_SWITCH_GC_MODE_TO_FULL_GC 1
#define ECMASCRIPT_SWITCH_GC_MODE_TO_FULL_GC 0
#define ECMASCRIPT_ENABLE_CAST_CHECK 1
#define ECMASCRIPT_ENABLE_NEW_HANDLE_CHECK 1
#define ECMASCRIPT_ENABLE_BARRIER_CHECK 1

View File

@ -14,6 +14,9 @@
*/
#include "ecmascript/builtins/builtins_cjs_require.h"
#if ECMASCRIPT_ENABLE_CAST_CHECK
#include "ecmascript/js_tagged_value-inl.h"
#endif
namespace panda::ecmascript::builtins {
JSTaggedValue BuiltinsCjsRequire::CjsRequireConstructor(EcmaRuntimeCallInfo *argv)

View File

@ -212,7 +212,7 @@ public:
return gcType_;
}
bool IsAlive(TaggedObject *object) const;
bool PUBLIC_API IsAlive(TaggedObject *object) const;
bool ContainObject(TaggedObject *object) const;

View File

@ -126,6 +126,7 @@
panda::ecmascript::AOTFileVersion::GetAOTVersion*;
panda::ecmascript::AOTFileVersion::CheckAOTVersion*;
panda::ecmascript::Barriers::Update*;
panda::ecmascript::BaseHeap::IsAlive*;
panda::ecmascript::BigInt::SameValue*;
panda::ecmascript::BigInt::DoubleToBigInt*;
panda::ecmascript::BigInt::Int32ToBigInt*;