mirror of
https://gitee.com/openharmony/arkcompiler_ets_runtime
synced 2024-11-23 10:09:54 +00:00
HClass changed but not Notify bugfix
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/IAXVKC Signed-off-by: jiachong <jiachong6@huawei.com> Change-Id: Ifb22b4876e223ebacaf3f4631cc610a76caebfc5
This commit is contained in:
parent
70cd0a34fe
commit
c42c84bd7d
@ -688,6 +688,10 @@ bool JSHClass::TransitToElementsKindUncheck(const JSThread *thread, const JSHand
|
||||
auto hclassVal = thread->GlobalConstants()->GetGlobalConstantObject(index);
|
||||
JSHClass *hclass = JSHClass::Cast(hclassVal.GetTaggedObject());
|
||||
obj->SynchronizedSetClass(thread, hclass);
|
||||
#if ECMASCRIPT_ENABLE_IC
|
||||
JSHClass::NotifyHclassChanged(thread, JSHandle<JSHClass>(thread, objHclass),
|
||||
JSHandle<JSHClass>(thread, hclass));
|
||||
#endif
|
||||
return true;
|
||||
}
|
||||
LOG_ECMA(FATAL) << "Unknown newKind: " << static_cast<int32_t>(newKind);
|
||||
|
@ -21,3 +21,4 @@ undefined
|
||||
1
|
||||
1
|
||||
1
|
||||
4
|
||||
|
@ -127,4 +127,12 @@ function fun1(n) {
|
||||
}
|
||||
|
||||
print(fun1(100));
|
||||
print(fun1(1));
|
||||
print(fun1(1));
|
||||
|
||||
const v0 = [4.0, 3.0, -1.7976931348623157e+308, 1000000000.0];
|
||||
const v3 = { __proto__: v0 };
|
||||
const v4 = { __proto__: v3 };
|
||||
v4[3] = v4;
|
||||
v0[1] = v0;
|
||||
v3.splice(0, 0);
|
||||
print(v3.length);
|
Loading…
Reference in New Issue
Block a user