mirror of
https://gitee.com/openharmony/arkcompiler_ets_runtime
synced 2024-11-24 02:30:03 +00:00
commit
c04d25cdcd
@ -4744,7 +4744,9 @@ void JSObject::DumpForSnapshot(std::vector<Reference> &vec) const
|
||||
{
|
||||
DISALLOW_GARBAGE_COLLECTION;
|
||||
JSHClass *jshclass = GetJSHClass();
|
||||
vec.emplace_back(CString("__proto__"), jshclass->GetPrototype());
|
||||
if (jshclass != nullptr) {
|
||||
vec.emplace_back(CString("__proto__"), jshclass->GetPrototype());
|
||||
}
|
||||
|
||||
TaggedArray *elements = TaggedArray::Cast(GetElements().GetTaggedObject());
|
||||
|
||||
@ -4764,7 +4766,7 @@ void JSObject::DumpForSnapshot(std::vector<Reference> &vec) const
|
||||
return;
|
||||
}
|
||||
vec.emplace_back("(object properties)", JSTaggedValue(properties));
|
||||
if (!properties->IsDictionaryMode()) {
|
||||
if ((!properties->IsDictionaryMode()) && (jshclass != nullptr)) {
|
||||
JSTaggedValue attrs = jshclass->GetLayout();
|
||||
if (attrs.IsNull()) {
|
||||
return;
|
||||
|
@ -30,6 +30,7 @@ public:
|
||||
{
|
||||
return static_cast<TaggedObject *>(header);
|
||||
}
|
||||
TaggedObject(): class_(0) {}
|
||||
|
||||
void SynchronizedSetClass(const JSThread *thread, JSHClass *hclass);
|
||||
JSHClass *SynchronizedGetClass() const;
|
||||
|
Loading…
Reference in New Issue
Block a user