mirror of
https://gitee.com/openharmony/arkcompiler_ets_runtime
synced 2024-11-23 18:20:04 +00:00
!9828 Remove problem ut
Merge pull request !9828 from Sandee/bugfix/20241021
This commit is contained in:
commit
533cff09da
@ -60,38 +60,6 @@ HWTEST_F_L0(MachineCodeTest, SetMachineCodeObjectDataTest001)
|
||||
factory->SetMachineCodeObjectData(machineCode, 100, desc, method);
|
||||
}
|
||||
|
||||
HWTEST_F_L0(MachineCodeTest, SetMachineCodeObjectDataTest002)
|
||||
{
|
||||
ObjectFactory *factory = thread->GetEcmaVM()->GetFactory();
|
||||
JSHandle<JSFunction> func(thread->GetEcmaVM()->GetGlobalEnv()->GetArrayFunction());
|
||||
JSHandle<Method> method(thread, func->GetMethod());
|
||||
MachineCodeDesc desc;
|
||||
desc.codeType = MachineCodeType::BASELINE_CODE;
|
||||
desc.instructionsSize = 100;
|
||||
desc.instructionsAddr = 1000;
|
||||
desc.stackMapSizeAlign = 100;
|
||||
Jit::GetInstance()->SetEnableJitFort(false);
|
||||
ASSERT_EQ(Jit::GetInstance()->IsEnableJitFort(), false);
|
||||
TaggedObject *machineCode = factory->NewMachineCodeObject(100, desc);
|
||||
factory->SetMachineCodeObjectData(machineCode, 100, desc, method);
|
||||
}
|
||||
|
||||
HWTEST_F_L0(MachineCodeTest, SetMachineCodeObjectDataTest003)
|
||||
{
|
||||
ObjectFactory *factory = thread->GetEcmaVM()->GetFactory();
|
||||
JSHandle<JSFunction> func(thread->GetEcmaVM()->GetGlobalEnv()->GetArrayFunction());
|
||||
JSHandle<Method> method(thread, func->GetMethod());
|
||||
MachineCodeDesc desc;
|
||||
desc.codeType = MachineCodeType::FAST_JIT_CODE;
|
||||
desc.instructionsSize = 100;
|
||||
desc.instructionsAddr = 1000;
|
||||
desc.stackMapSizeAlign = 100;
|
||||
Jit::GetInstance()->SetEnableJitFort(false);
|
||||
ASSERT_EQ(Jit::GetInstance()->IsEnableJitFort(), false);
|
||||
TaggedObject *machineCode = factory->NewMachineCodeObject(100, desc);
|
||||
factory->SetMachineCodeObjectData(machineCode, 100, desc, method);
|
||||
}
|
||||
|
||||
HWTEST_F_L0(MachineCodeTest, SetMachineCodeObjectDataTest004)
|
||||
{
|
||||
ObjectFactory *factory = thread->GetEcmaVM()->GetFactory();
|
||||
@ -112,28 +80,6 @@ HWTEST_F_L0(MachineCodeTest, SetMachineCodeObjectDataTest004)
|
||||
factory->SetMachineCodeObjectData(machineCode, 100, desc, method);
|
||||
}
|
||||
|
||||
HWTEST_F_L0(MachineCodeTest, SetMachineCodeObjectDataTest005)
|
||||
{
|
||||
ObjectFactory *factory = thread->GetEcmaVM()->GetFactory();
|
||||
JSHandle<JSFunction> func(thread->GetEcmaVM()->GetGlobalEnv()->GetArrayFunction());
|
||||
JSHandle<Method> method(thread, func->GetMethod());
|
||||
MachineCodeDesc desc;
|
||||
desc.codeType = MachineCodeType::FAST_JIT_CODE;
|
||||
desc.instructionsSize = 100;
|
||||
desc.instructionsAddr = 1000;
|
||||
desc.stackMapSizeAlign = 100;
|
||||
desc.rodataSizeAfterTextAlign = 0;
|
||||
desc.rodataSizeBeforeTextAlign = 0;
|
||||
desc.isAsyncCompileMode = true;
|
||||
desc.stackMapOrOffsetTableSize = 100;
|
||||
desc.stackMapOrOffsetTableAddr = 100;
|
||||
Jit::GetInstance()->SetEnableJitFort(false);
|
||||
ASSERT_EQ(Jit::GetInstance()->IsEnableJitFort(), false);
|
||||
TaggedObject *machineCode = factory->NewMachineCodeObject(100, desc);
|
||||
MachineCode *code = MachineCode::Cast(machineCode);
|
||||
code->GetStackMapOrOffsetTableAddress();
|
||||
}
|
||||
|
||||
HWTEST_F_L0(MachineCodeTest, SetMachineCodeObjectDataTest006)
|
||||
{
|
||||
ObjectFactory *factory = thread->GetEcmaVM()->GetFactory();
|
||||
|
Loading…
Reference in New Issue
Block a user